🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

hapi-peel

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapi-peel - npm Package Compare versions

Comparing version

to
2.0.0

9

index.js

@@ -8,5 +8,10 @@ 'use strict';

var server = Hapi.createServer(config.host, config.port, config.options);
var server = new Hapi.Server(config.options);
server.pack.register(plugin, function (err) {
server.connection({
host: config.host,
port: config.port
});
server.register(plugin, function (err) {
if (err) {

@@ -13,0 +18,0 @@ return callback(err);

{
"name": "hapi-peel",
"version": "1.0.0",
"version": "2.0.0",
"description": "",

@@ -23,3 +23,3 @@ "main": "index.js",

"dependencies": {
"hapi": "^7.2.0",
"hapi": "^8.0.0",
"hoek": "^2.8.1"

@@ -26,0 +26,0 @@ },

@@ -24,3 +24,3 @@ /*jshint expr: true*/

beforeEach(function (done) {
hapiStart = Hapi.Pack.prototype.start;
hapiStart = Hapi.Server.prototype.start;
done();

@@ -30,3 +30,3 @@ });

afterEach(function (done) {
Hapi.Pack.prototype.start = hapiStart;
Hapi.Server.prototype.start = hapiStart;
done();

@@ -62,3 +62,3 @@ });

Hapi.Pack.prototype.start = function () {
Hapi.Server.prototype.start = function () {
throw new Error('start should not be called');

@@ -82,3 +82,3 @@ };

// If not called, test will time out and fail
Hapi.Pack.prototype.start = function () {
Hapi.Server.prototype.start = function () {
done();

@@ -85,0 +85,0 @@ };