Comparing version 7.0.0 to 8.0.0
@@ -7,3 +7,3 @@ 'use strict'; | ||
const Hoek = require('@hapi/hoek'); | ||
const Joi = require('@hapi/joi'); | ||
const Validate = require('@hapi/validate'); | ||
@@ -15,11 +15,11 @@ | ||
internals.schema = { | ||
options: Joi.object({ | ||
relativeTo: Joi.string(), | ||
preRegister: Joi.func().allow(false) | ||
options: Validate.object({ | ||
relativeTo: Validate.string(), | ||
preRegister: Validate.func().allow(false) | ||
}), | ||
manifest: Joi.object({ | ||
server: Joi.object(), | ||
register: Joi.object({ | ||
plugins: Joi.array(), | ||
options: Joi.any() | ||
manifest: Validate.object({ | ||
server: Validate.object(), | ||
register: Validate.object({ | ||
plugins: Validate.array(), | ||
options: Validate.any() | ||
}) | ||
@@ -32,4 +32,4 @@ }) | ||
Joi.assert(options, internals.schema.options, 'Invalid options'); | ||
Joi.assert(manifest, internals.schema.manifest, 'Invalid manifest'); | ||
Validate.assert(options, internals.schema.options, 'Invalid options'); | ||
Validate.assert(manifest, internals.schema.manifest, 'Invalid manifest'); | ||
@@ -36,0 +36,0 @@ const serverOpts = internals.parseServer(manifest.server || {}, options.relativeTo); |
{ | ||
"name": "@hapi/glue", | ||
"description": "Server composer for hapi.js", | ||
"version": "7.0.0", | ||
"version": "8.0.0", | ||
"repository": { | ||
@@ -21,5 +21,5 @@ "type": "git", | ||
"dependencies": { | ||
"@hapi/hapi": "19.x.x", | ||
"@hapi/hapi": "20.x.x", | ||
"@hapi/hoek": "9.x.x", | ||
"@hapi/joi": "17.x.x" | ||
"@hapi/validate": "1.x.x" | ||
}, | ||
@@ -29,3 +29,3 @@ "devDependencies": { | ||
"@hapi/code": "8.x.x", | ||
"@hapi/lab": "22.x.x" | ||
"@hapi/lab": "23.x.x" | ||
}, | ||
@@ -32,0 +32,0 @@ "scripts": { |
@@ -0,0 +0,0 @@ <a href="https://hapi.dev"><img src="https://raw.githubusercontent.com/hapijs/assets/master/images/family.png" width="180px" align="right" /></a> |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
6080
1
+ Added@hapi/validate@1.x.x
+ Added@hapi/hapi@20.3.0(transitive)
+ Added@hapi/mimos@6.0.0(transitive)
- Removed@hapi/joi@17.x.x
- Removed@hapi/address@4.1.0(transitive)
- Removed@hapi/formula@2.0.0(transitive)
- Removed@hapi/hapi@19.2.0(transitive)
- Removed@hapi/joi@17.1.1(transitive)
- Removed@hapi/mimos@5.0.0(transitive)
- Removed@hapi/pinpoint@2.0.1(transitive)
- Removed@hapi/teamwork@4.0.0(transitive)
Updated@hapi/hapi@20.x.x