hapi-paypal
Advanced tools
Comparing version 0.0.88 to 0.0.89
@@ -42,3 +42,5 @@ "use strict"; | ||
event_types: Joi.array().min(1).required(), | ||
url: Joi.string().uri({ scheme: ["https"] }).required(), | ||
url: Joi.string() | ||
.replace(/^https:\/\/(www\.)?localhost/gi, "").uri({ scheme: ["https"] }).required() | ||
.error(new Error("Webhook url must be https and cannot be localhost.")), | ||
}); | ||
@@ -45,0 +47,0 @@ const validate = Joi.validate(options.webhook, webhooksSchema); |
{ | ||
"name": "hapi-paypal", | ||
"version": "0.0.88", | ||
"version": "0.0.89", | ||
"description": "A hapi plugin to interface with PayPal Rest API's and webhooks.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
39402
543