Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hapi-paypal

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapi-paypal - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

lib/models/index.d.ts

6

lib/index.d.ts

@@ -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;

2

lib/index.js

@@ -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

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