Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hapi/hapi

Package Overview
Dependencies
Maintainers
6
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hapi/hapi - npm Package Compare versions

Comparing version 21.0.0-beta.0 to 21.0.0-beta.1

2

lib/config.js

@@ -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({

3

lib/core.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc