@hapi/hapi
Advanced tools
Comparing version 21.0.0-beta.0 to 21.0.0-beta.1
@@ -5,2 +5,3 @@ 'use strict'; | ||
const Somever = require('@hapi/somever'); | ||
const Validate = require('@hapi/validate'); | ||
@@ -42,2 +43,3 @@ | ||
exports.versionMatch = (version, range) => Somever.match(version, range, { includePrerelease: true }); | ||
@@ -44,0 +46,0 @@ internals.access = Validate.object({ |
@@ -17,3 +17,2 @@ 'use strict'; | ||
const Podium = require('@hapi/podium'); | ||
const Somever = require('@hapi/somever'); | ||
const Statehood = require('@hapi/statehood'); | ||
@@ -390,3 +389,3 @@ | ||
Hoek.assert(this.registrations[dep], 'Plugin', plugin, 'missing dependency', dep); | ||
Hoek.assert(version === '*' || Somever.match(this.registrations[dep].version, version), 'Plugin', plugin, 'requires', dep, 'version', version, 'but found', this.registrations[dep].version); | ||
Hoek.assert(version === '*' || Config.versionMatch(this.registrations[dep].version, version), 'Plugin', plugin, 'requires', dep, 'version', version, 'but found', this.registrations[dep].version); | ||
} | ||
@@ -393,0 +392,0 @@ } |
@@ -5,3 +5,2 @@ 'use strict'; | ||
const Shot = require('@hapi/shot'); | ||
const Somever = require('@hapi/somever'); | ||
const Teamwork = require('@hapi/teamwork'); | ||
@@ -467,4 +466,4 @@ | ||
const requirements = item.plugin.requirements; | ||
Hoek.assert(!requirements.node || Somever.match(process.version, requirements.node), 'Plugin', name, 'requires node version', requirements.node, 'but found', process.version); | ||
Hoek.assert(!requirements.hapi || Somever.match(this.version, requirements.hapi), 'Plugin', name, 'requires hapi version', requirements.hapi, 'but found', this.version); | ||
Hoek.assert(!requirements.node || Config.versionMatch(process.version, requirements.node), 'Plugin', name, 'requires node version', requirements.node, 'but found', process.version); | ||
Hoek.assert(!requirements.hapi || Config.versionMatch(this.version, requirements.hapi), 'Plugin', name, 'requires hapi version', requirements.hapi, 'but found', this.version); | ||
@@ -471,0 +470,0 @@ // Protect against multiple registrations |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://hapi.dev", | ||
"version": "21.0.0-beta.0", | ||
"version": "21.0.0-beta.1", | ||
"repository": "git://github.com/hapijs/hapi", | ||
@@ -39,3 +39,3 @@ "main": "lib/index.js", | ||
"@hapi/shot": "^6.0.0", | ||
"@hapi/somever": "^4.0.0", | ||
"@hapi/somever": "^4.1.0", | ||
"@hapi/statehood": "^8.0.0", | ||
@@ -42,0 +42,0 @@ "@hapi/subtext": "^8.0.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
182165
Updated@hapi/somever@^4.1.0