Comparing version 0.3.0 to 0.4.0
@@ -10,2 +10,3 @@ "use strict"; | ||
}); | ||
exports.match = match; | ||
exports.cleanNumber = cleanNumber; | ||
@@ -28,3 +29,4 @@ exports.validateNumber = validateNumber; | ||
validateExpiryMonth: validateExpiryMonth, | ||
formatNumber: formatNumber | ||
formatNumber: formatNumber, | ||
match: match | ||
}; | ||
@@ -103,5 +105,6 @@ | ||
// Guess the card type from the given card number | ||
function match(number) { | ||
// Strip any non-digit characters | ||
number = (number + "").replace(/\D/g, ""); | ||
number = cleanNumber(number); | ||
@@ -108,0 +111,0 @@ // Iterate through each card type schema |
{ | ||
"name": "dosh", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/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
11225
274