Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

chore: update hapi #2015

Merged
merged 1 commit into from
May 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
"./src/core/runtime/repo-nodejs.js": "./src/core/runtime/repo-browser.js",
"./src/core/runtime/ipld-nodejs.js": "./src/core/runtime/ipld-browser.js",
"./test/utils/create-repo-nodejs.js": "./test/utils/create-repo-browser.js",
"stream": "readable-stream",
"joi": "joi-browser"
"stream": "readable-stream"
},
"browser-all-ipld-formats": {
"./src/core/runtime/ipld-browser.js": "./src/core/runtime/ipld-browser-all.js"
Expand Down Expand Up @@ -83,6 +82,8 @@
"stream-to-promise": "^2.2.0"
},
"dependencies": {
"@hapi/hapi": "^18.3.1",
"@hapi/joi": "^15.0.1",
"async": "^2.6.1",
"bignumber.js": "^8.0.2",
"binary-querystring": "~0.1.2",
Expand All @@ -103,8 +104,7 @@
"fsm-event": "^2.1.0",
"get-folder-size": "^2.0.0",
"glob": "^7.1.3",
"hapi": "^18.0.0",
"hapi-pino": "^5.2.0",
"hapi-pino": "^5.4.1",
"human-to-milliseconds": "^1.0.0",
"interface-datastore": "~0.6.0",
"ipfs-bitswap": "~0.23.0",
Expand All @@ -131,7 +131,6 @@
"is-pull-stream": "~0.0.0",
"is-stream": "^1.1.0",
"iso-url": "~0.4.6",
"joi": "^14.3.0",
"just-flatten-it": "^2.1.0",
"just-safe-set": "^2.1.0",
"libp2p": "~0.25.0",
Expand Down
2 changes: 1 addition & 1 deletion src/http/api/resources/bitswap.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const Joi = require('joi')
const Joi = require('@hapi/joi')
const multibase = require('multibase')
const { cidToString } = require('../../../utils/cid')
const { parseKey } = require('./block')
Expand Down
2 changes: 1 addition & 1 deletion src/http/api/resources/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const CID = require('cids')
const multipart = require('ipfs-multipart')
const Joi = require('joi')
const Joi = require('@hapi/joi')
const multibase = require('multibase')
const Boom = require('boom')
const { cidToString } = require('../../../utils/cid')
Expand Down
2 changes: 1 addition & 1 deletion src/http/api/resources/dag.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const promisify = require('promisify-es6')
const CID = require('cids')
const multipart = require('ipfs-multipart')
const mh = require('multihashes')
const Joi = require('joi')
const Joi = require('@hapi/joi')
const multibase = require('multibase')
const Boom = require('boom')
const debug = require('debug')
Expand Down
2 changes: 1 addition & 1 deletion src/http/api/resources/dht.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const Joi = require('joi')
const Joi = require('@hapi/joi')
const Boom = require('boom')

const CID = require('cids')
Expand Down
2 changes: 1 addition & 1 deletion src/http/api/resources/files-regular.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const toPull = require('stream-to-pull-stream')
const pushable = require('pull-pushable')
const toStream = require('pull-stream-to-stream')
const abortable = require('pull-abortable')
const Joi = require('joi')
const Joi = require('@hapi/joi')
const Boom = require('boom')
const ndjson = require('pull-ndjson')
const { PassThrough } = require('readable-stream')
Expand Down
2 changes: 1 addition & 1 deletion src/http/api/resources/name.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const Joi = require('joi')
const Joi = require('@hapi/joi')

exports.resolve = {
validate: {
Expand Down
2 changes: 1 addition & 1 deletion src/http/api/resources/object.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const { DAGNode, DAGLink } = dagPB
const calculateCid = promisify(dagPB.util.cid)
const deserialize = promisify(dagPB.util.deserialize)
const createDagNode = promisify(DAGNode.create)
const Joi = require('joi')
const Joi = require('@hapi/joi')
const multibase = require('multibase')
const Boom = require('boom')
const { cidToString } = require('../../../utils/cid')
Expand Down
2 changes: 1 addition & 1 deletion src/http/api/resources/pin.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

const multibase = require('multibase')
const Joi = require('joi')
const Joi = require('@hapi/joi')
const Boom = require('boom')
const isIpfs = require('is-ipfs')
const { cidToString } = require('../../../utils/cid')
Expand Down
2 changes: 1 addition & 1 deletion src/http/api/resources/ping.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const Joi = require('joi')
const Joi = require('@hapi/joi')
const pull = require('pull-stream')
const ndjson = require('pull-ndjson')
const { PassThrough } = require('readable-stream')
Expand Down
2 changes: 1 addition & 1 deletion src/http/api/resources/resolve.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const Joi = require('joi')
const Joi = require('@hapi/joi')
const debug = require('debug')
const multibase = require('multibase')

Expand Down
2 changes: 1 addition & 1 deletion src/http/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const Hapi = require('hapi')
const Hapi = require('@hapi/hapi')
const Pino = require('hapi-pino')
const debug = require('debug')
const multiaddr = require('multiaddr')
Expand Down