Skip to content

Commit 2d046d3

Browse files
author
Alan M
committed
update joi
1 parent 5a7ca69 commit 2d046d3

18 files changed

Lines changed: 19 additions & 19 deletions

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@dataparty/api",
33
"private": false,
4-
"version": "1.2.20",
4+
"version": "1.2.21",
55
"main": "dist/dataparty.js",
66
"frontend": "dist/dataparty-browser.js",
77
"backend": "dist/dataparty.js",

src/comms/host/host-protocol-scheme.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const Joi = require('@hapi/joi')
1+
const Joi = require('joi')
22
Joi.objectId = require('joi-objectid')(Joi)
33

44
const ID_SCHEME = Joi.alternatives().try(Joi.string(), Joi.number())

src/comms/peer-comms.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const HttpMocks = require('node-mocks-http')
55
const SocketOp = require('./op/socket-op')
66
const ISocketComms = require('./isocket-comms')
77

8-
const Joi = require('@hapi/joi')
8+
const Joi = require('joi')
99
const HostOp = require('./host/host-op')
1010
const HostProtocolScheme = require('./host/host-protocol-scheme')
1111

src/sandbox/sandbox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Sandbox {
3333
sandbox,
3434
require: {
3535
external: {
36-
modules: ['debug', '@dataparty/crypto', '@hapi/joi', '@hapi/hoek']
36+
modules: ['debug', '@dataparty/crypto', 'joi', '@hapi/hoek']
3737
},
3838
//builtin: ['*']
3939
}

src/service/endpoints/echo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const Joi = require('@hapi/joi')
1+
const Joi = require('joi')
22
const debug = require('debug')('dataparty.endpoint.echo')
33

44
const IEndpoint = require('../iendpoint')

src/service/endpoints/secure-echo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const Joi = require('@hapi/joi')
1+
const Joi = require('joi')
22
const Hoek = require('@hapi/hoek')
33
const {Message, Routines} = require('@dataparty/crypto')
44
const debug = require('debug')('dataparty.endpoint.secure-echo')

src/service/endpoints/service-identity.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const Joi = require('@hapi/joi')
1+
const Joi = require('joi')
22
const Hoek = require('@hapi/hoek')
33
const {Message, Routines} = require('@dataparty/crypto')
44
const debug = require('debug')('dataparty.endpoint.identity')

src/service/endpoints/service-version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const Joi = require('@hapi/joi')
1+
const Joi = require('joi')
22
const Hoek = require('@hapi/hoek')
33
const {Message, Routines} = require('@dataparty/crypto')
44
const debug = require('debug')('dataparty.endpoint.version')

src/service/iservice.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const {JSONPath} = require('jsonpath-plus')
66
const gitRepoInfo = require('git-repo-info')
77
const BouncerDb = require('@dataparty/bouncer-db')
88
const mongoose = BouncerDb.mongoose()
9-
const { build } = require('@hapi/joi')
9+
const { build } = require('joi')
1010
const debug = require('debug')('dataparty.service.IService')
1111

1212
module.exports = class IService {
@@ -79,7 +79,7 @@ module.exports = class IService {
7979
// provide a custom cache path or disable caching
8080
cache: false,
8181
// externals to leave as requires of the build
82-
externals: ['debug', '@dataparty/crypto', '@dataparty/tasker', '@hapi/joi', '@hapi/hoek'],
82+
externals: ['debug', '@dataparty/crypto', '@dataparty/tasker', 'joi', '@hapi/hoek'],
8383
// directory outside of which never to emit assets
8484
//filterAssetBase: process.cwd(), // default
8585
minify: false, // default

src/service/middleware/post/encrypt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const Joi = require('@hapi/joi')
1+
const Joi = require('joi')
22
const Hoek = require('@hapi/hoek')
33
const {Message, Identity} = require('@dataparty/crypto')
44
const debug = require('debug')('dataparty.middleware.post.encrypt')

0 commit comments

Comments
 (0)