hapi-paypal
Advanced tools
Comparing version 0.0.22 to 0.0.23
@@ -30,3 +30,3 @@ "use strict"; | ||
paypal.configure(options.sdk); | ||
server.expose("paypal", paypal); | ||
this.server.expose("paypal", paypal); | ||
if (options.routes && options.routes.length > 0) { | ||
@@ -44,3 +44,3 @@ this.buildRoutes(options.routes); | ||
} | ||
const webhookRoute = server.lookup("paypal_webhooks_listen"); | ||
const webhookRoute = this.server.lookup("paypal_webhooks_listen"); | ||
if (!webhookRoute) { | ||
@@ -47,0 +47,0 @@ throw new Error("You enabled webhooks without a route listener."); |
{ | ||
"name": "hapi-paypal", | ||
"version": "0.0.22", | ||
"version": "0.0.23", | ||
"description": "A hapi plugin to interface with PayPal Rest API's and webhooks.", | ||
@@ -35,5 +35,5 @@ "license": "MIT", | ||
"dependencies": { | ||
"@types/paypal-rest-sdk": "^1.7.0", | ||
"joi": "^10.6.0", | ||
"paypal-rest-sdk": "^1.7.1", | ||
"@types/paypal-rest-sdk": "^1.7.0" | ||
"paypal-rest-sdk": "^1.7.1" | ||
}, | ||
@@ -40,0 +40,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
22069