1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-23 00:22:19 +01:00

fix: replace @hapi/joi with joi

This commit is contained in:
Ivar Conradi Østhus 2020-07-31 22:15:09 +02:00
parent c5a23db451
commit acc674c0e7
11 changed files with 25 additions and 25 deletions

View File

@ -1,6 +1,6 @@
'use strict';
const joi = require('@hapi/joi');
const joi = require('joi');
const { nameType } = require('./util');
const nameSchema = joi.object().keys({ name: nameType });

View File

@ -1,6 +1,6 @@
'use strict';
const joi = require('@hapi/joi');
const joi = require('joi');
const { nameType } = require('./util');
const nameSchema = joi.object().keys({ name: nameType });

View File

@ -1,6 +1,6 @@
'use strict';
const joi = require('@hapi/joi');
const joi = require('joi');
const { nameType } = require('./util');
const applicationSchema = joi

View File

@ -1,6 +1,6 @@
'use strict';
const joi = require('@hapi/joi');
const joi = require('joi');
const { nameType } = require('./util');
const strategySchema = joi.object().keys({

View File

@ -1,6 +1,6 @@
'use strict';
const joi = require('@hapi/joi');
const joi = require('joi');
const customJoi = joi.extend(j => ({
type: 'isUrlFriendly',

View File

@ -1,6 +1,6 @@
'use strict';
const joi = require('@hapi/joi');
const joi = require('joi');
const countSchema = joi
.object()

View File

@ -1,6 +1,6 @@
'use strict';
const joi = require('@hapi/joi');
const joi = require('joi');
const clientRegisterSchema = joi
.object()

View File

@ -1,6 +1,6 @@
'use strict';
const joi = require('@hapi/joi');
const joi = require('joi');
const fs = require('fs');
const mime = require('mime');
const YAML = require('js-yaml');

View File

@ -1,7 +1,7 @@
'use strict';
const gravatarUrl = require('gravatar-url');
const Joi = require('@hapi/joi');
const Joi = require('joi');
module.exports = class User {
constructor({

View File

@ -62,7 +62,6 @@
]
},
"dependencies": {
"@hapi/joi": "^17.1.0",
"async": "^3.1.0",
"compression": "^1.7.3",
"cookie-parser": "^1.4.4",
@ -75,6 +74,7 @@
"errorhandler": "^1.5.1",
"express": "^4.17.1",
"gravatar-url": "^3.1.0",
"joi": "^17.1.1",
"js-yaml": "^3.12.2",
"knex": "0.20.10",
"log4js": "^6.0.0",

View File

@ -135,10 +135,10 @@
dependencies:
arrify "^1.0.1"
"@hapi/address@^4.0.0":
version "4.0.0"
resolved "https://registry.yarnpkg.com/@hapi/address/-/address-4.0.0.tgz#36affb4509b5a6adc628bcc394450f2a7d51d111"
integrity sha512-GDDpkCdSUfkQCznmWUHh9dDN85BWf/V8TFKQ2JLuHdGB4Yy3YTEGBzZxoBNxfNBEvreSR/o+ZxBBSNNEVzY+lQ==
"@hapi/address@^4.0.1":
version "4.1.0"
resolved "https://registry.yarnpkg.com/@hapi/address/-/address-4.1.0.tgz#d60c5c0d930e77456fdcde2598e77302e2955e1d"
integrity sha512-SkszZf13HVgGmChdHo/PxchnSaCJ6cetVqLzyciudzZRT0jcOouIF/Q93mgjw8cce+D+4F4C1Z/WrfFN+O3VHQ==
dependencies:
"@hapi/hoek" "^9.0.0"
@ -152,17 +152,6 @@
resolved "https://registry.yarnpkg.com/@hapi/hoek/-/hoek-9.0.3.tgz#e49e637d5de8faa4f0d313c2590b455d7c00afd7"
integrity sha512-jKtjLLDiH95b002sJVc5c74PE6KKYftuyVdVmsuYId5stTaWcRFqE+5ukZI4gDUKjGn8wv2C3zPn3/nyjEI7gg==
"@hapi/joi@^17.1.0":
version "17.1.0"
resolved "https://registry.yarnpkg.com/@hapi/joi/-/joi-17.1.0.tgz#cc4000b6c928a6a39b9bef092151b6bdee10ce55"
integrity sha512-ob67RcPlwRWxBzLCnWvcwx5qbwf88I3ykD7gcJLWOTRfLLgosK7r6aeChz4thA3XRvuBfI0KB1tPVl2EQFlPXw==
dependencies:
"@hapi/address" "^4.0.0"
"@hapi/formula" "^2.0.0"
"@hapi/hoek" "^9.0.0"
"@hapi/pinpoint" "^2.0.0"
"@hapi/topo" "^5.0.0"
"@hapi/pinpoint@^2.0.0":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@hapi/pinpoint/-/pinpoint-2.0.0.tgz#805b40d4dbec04fc116a73089494e00f073de8df"
@ -3038,6 +3027,17 @@ istanbul-reports@^3.0.2:
html-escaper "^2.0.0"
istanbul-lib-report "^3.0.0"
joi@^17.1.1:
version "17.1.1"
resolved "https://registry.yarnpkg.com/joi/-/joi-17.1.1.tgz#b7339e8a509510a04ce9cdeccb35a6e188080287"
integrity sha512-fww3Ae9cRyj6yHy90cpxvL2y39V5JCY2KaXV3KfALhoFfFcAuyQBPOq+2q6EZ2QNMn1FhkDy+eRkGVG7J+BvyA==
dependencies:
"@hapi/address" "^4.0.1"
"@hapi/formula" "^2.0.0"
"@hapi/hoek" "^9.0.0"
"@hapi/pinpoint" "^2.0.0"
"@hapi/topo" "^5.0.0"
js-string-escape@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/js-string-escape/-/js-string-escape-1.0.1.tgz#e2625badbc0d67c7533e9edc1068c587ae4137ef"