Comparing version 1.0.0 to 2.0.0
@@ -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 @@ }; |
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
6377
165
+ Addedammo@1.0.1(transitive)
+ Addedcall@2.0.2(transitive)
+ Addedh2o2@4.0.2(transitive)
+ Addedhapi@8.8.1(transitive)
+ Addedheavy@3.0.1(transitive)
+ Addedinert@2.1.6(transitive)
+ Addedlru-cache@2.6.5(transitive)
+ Addedmimos@2.0.2(transitive)
+ Addedpeekaboo@1.0.0(transitive)
+ Addedstatehood@2.1.1(transitive)
+ Addedvision@2.0.1(transitive)
- Removedbossy@1.0.3(transitive)
- Removedcall@1.0.0(transitive)
- Removedglue@1.0.0(transitive)
- Removedh2o2@2.0.1(transitive)
- Removedhapi@7.5.3(transitive)
- Removedheavy@1.0.0(transitive)
- Removedinert@1.1.1(transitive)
- Removedjoi@4.9.0(transitive)
- Removedlru-cache@2.5.2(transitive)
- Removedmimos@1.0.1(transitive)
- Removedqs@2.4.2(transitive)
- Removedrejoice@1.0.0(transitive)
- Removedstatehood@1.2.0(transitive)
- Removedvision@1.2.2(transitive)
- Removedwreck@5.6.1(transitive)
Updatedhapi@^8.0.0