ghost-payment-service
Advanced tools
Comparing version 1.2.4 to 1.2.5
@@ -33,3 +33,3 @@ const Joi = require('joi'); | ||
Schemata.creditCard = { | ||
number: Joi.string().creditCard().required().error(new Error('Invalid credit card number.')), | ||
number: Joi.string().regex(/^\d+$/).required().error(new Error('Invalid credit card number.')), | ||
exp_year: Joi.string().regex(/^[12][0-9]{3}$/).error(new Error('Invalid expiration year.')), | ||
@@ -36,0 +36,0 @@ exp_month: Joi.string().regex(/^(0?[1-9]|1[012])$/).required().error(new Error('Invalid expiration month.')), |
{ | ||
"name": "ghost-payment-service", | ||
"version": "1.2.4", | ||
"version": "1.2.5", | ||
"description": "nodejs client to interact with the authorize.net & stripe apis", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
43534