New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

electrode-hapi-compat

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electrode-hapi-compat - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

5

CHANGELOG.md

@@ -0,1 +1,6 @@

## [v1.3.2] 01-10-2020
- Fix `_testSet` API edge case
- Instead of failing eagerly, fail on registration for fastify-incompatible plugins
## [v1.3.1] 01-02-2020

@@ -2,0 +7,0 @@

7

lib/util.js

@@ -46,3 +46,3 @@ "use strict";

HAPI_MAJOR_VERSION = 17;
} else if (HAPI_MAJOR_VERSION === 17) {
} else if (hapiMajor() === 17) {
HAPI_MAJOR_VERSION = 16;

@@ -55,3 +55,3 @@ }

HAPI_MAJOR_VERSION = 18;
} else if (HAPI_MAJOR_VERSION === 18) {
} else if (hapiMajor() === 18) {
HAPI_MAJOR_VERSION = 17;

@@ -77,3 +77,4 @@ }

if (!registers.fastify) {
throw new Error("Plugin is not compatible with fastify");
// Lazily fail if the user tries to register this plugin with fastify.
return () => Promise.reject(new Error("Plugin is not compatible with fastify"));
}

@@ -80,0 +81,0 @@ // allow modifying of parent fastify instance

{
"name": "electrode-hapi-compat",
"version": "1.3.1",
"version": "1.3.2",
"description": "Electrode Hapi 16/17/18 utility",

@@ -5,0 +5,0 @@ "main": "lib/util.js",

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