credit-card-type
Advanced tools
Comparing version 9.0.0 to 9.0.1
@@ -0,1 +1,5 @@ | ||
# 9.0.1 | ||
- Correct issue where ELO cards were misidentified as Maestro cards (thanks @gabrielozaki) | ||
# 9.0.0 | ||
@@ -2,0 +6,0 @@ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.addMatchingCardsToResults = void 0; | ||
var clone_1 = require("./clone"); | ||
@@ -4,0 +5,0 @@ var matches_1 = require("./matches"); |
@@ -109,3 +109,12 @@ "use strict"; | ||
type: "maestro", | ||
patterns: [493698, [500000, 506698], [506779, 508999], [56, 59], 63, 67, 6], | ||
patterns: [ | ||
493698, | ||
[500000, 504174], | ||
[504176, 506698], | ||
[506779, 508999], | ||
[56, 59], | ||
63, | ||
67, | ||
6, | ||
], | ||
gaps: [4, 8, 12], | ||
@@ -112,0 +121,0 @@ lengths: [12, 13, 14, 15, 16, 17, 18, 19], |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.clone = void 0; | ||
function clone(originalObject) { | ||
@@ -4,0 +5,0 @@ if (!originalObject) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.findBestMatch = void 0; | ||
function hasEnoughResultsToDetermineBestMatch(results) { | ||
@@ -4,0 +5,0 @@ var numberOfResultsWithMaxStrengthProperty = results.filter(function (result) { return result.matchStrength; }).length; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isValidInputType = void 0; | ||
function isValidInputType(cardNumber) { | ||
@@ -4,0 +5,0 @@ return typeof cardNumber === "string" || cardNumber instanceof String; |
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.matches = void 0; | ||
function matchesRange(cardNumber, min, max) { | ||
@@ -8,0 +9,0 @@ var maxLengthToCheck = String(min).length; |
{ | ||
"name": "credit-card-type", | ||
"version": "9.0.0", | ||
"version": "9.0.1", | ||
"description": "A library for determining credit card type", | ||
@@ -23,9 +23,9 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@types/jest": "^25.2.1", | ||
"eslint": "^6.8.0", | ||
"@types/jest": "^26.0.5", | ||
"eslint": "^7.5.0", | ||
"eslint-config-braintree": "5.0.0-typescript-prep-rc.17", | ||
"jest": "^25.3.0", | ||
"prettier": "^2.0.4", | ||
"ts-jest": "^25.3.1", | ||
"typescript": "^3.8.3" | ||
"jest": "^26.1.0", | ||
"prettier": "^2.0.5", | ||
"ts-jest": "^26.1.3", | ||
"typescript": "^3.9.7" | ||
}, | ||
@@ -32,0 +32,0 @@ "jest": { |
@@ -110,3 +110,12 @@ import type { BuiltInCreditCardType, CardCollection } from "../types"; | ||
type: "maestro", | ||
patterns: [493698, [500000, 506698], [506779, 508999], [56, 59], 63, 67, 6], | ||
patterns: [ | ||
493698, | ||
[500000, 504174], | ||
[504176, 506698], | ||
[506779, 508999], | ||
[56, 59], | ||
63, | ||
67, | ||
6, | ||
], | ||
gaps: [4, 8, 12], | ||
@@ -113,0 +122,0 @@ lengths: [12, 13, 14, 15, 16, 17, 18, 19], |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
42805
957
0