hapi-paypal
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -7,8 +7,12 @@ import * as hapi from "hapi"; | ||
export interface IHapiPayPalOptions { | ||
models?: string[]; | ||
sdk: any; | ||
routes: [Partial<IPayPalRouteConfiguration>]; | ||
webhook: paypal.notification.webhook.Webhook; | ||
webhook?: paypal.notification.webhook.Webhook; | ||
} | ||
export interface IPayPalRouteConfiguration extends hapi.RouteConfiguration { | ||
handler?: hapi.RouteHandler | IPayPalRouteHandler; | ||
config?: { | ||
id?: string; | ||
}; | ||
} | ||
@@ -15,0 +19,0 @@ export declare type IPayPalRouteHandler = (request: hapi.Request, reply: hapi.ReplyNoContinue, error: any, response: any) => void; |
@@ -59,3 +59,3 @@ "use strict"; | ||
let nHandler; | ||
if (!route.config.id) { | ||
if (!route.config || !route.config.id) { | ||
throw new Error("You must set route.config.id"); | ||
@@ -62,0 +62,0 @@ } |
{ | ||
"name": "hapi-paypal", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "A hapi plugin to interface with PayPal Rest API's and webhooks.", | ||
@@ -42,2 +42,3 @@ "license": "MIT", | ||
"@types/mocha": "^2.0.0", | ||
"@types/mongoose": "^4.7.19", | ||
"@types/node": "^7.0.0", | ||
@@ -48,2 +49,3 @@ "chai": "^3.0.0", | ||
"mocha": "^3.0.0", | ||
"mongoose": "^4.11.3", | ||
"nyc": "^10.0.0", | ||
@@ -50,0 +52,0 @@ "rimraf": "^2.0.0", |
Sorry, the diff of this file is not supported yet
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
21698
15
285
16