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

credit-card-type

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

credit-card-type - npm Package Compare versions

Comparing version 9.0.0 to 9.0.1

4

CHANGELOG.md

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

14

package.json
{
"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],

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