Socket
Socket
Sign inDemoInstall

credit-card

Package Overview
Dependencies
1
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 3.0.0

4

lib/index.js

@@ -14,4 +14,4 @@ 'use strict';

cardType: 'MASTERCARD',
cardPattern: /^5[1-5][0-9]{14}$/,
partialPattern: /^5[1-5]/,
cardPattern: /^(?:5[1-5][0-9]{2}|222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[0-1][0-9]|2720)[0-9]{12}$/,
partialPattern: /^(?:5[1-5]|222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[0-1][0-9]|2720)/,
cvvPattern: /^\d{3}$/

@@ -18,0 +18,0 @@ },

{
"name": "credit-card",
"version": "2.0.0",
"version": "3.0.0",
"description": "credit card validation",

@@ -17,3 +17,3 @@ "author": "Continuation Labs <contact@continuation.io> (http://continuation.io/)",

"scripts": {
"test": "belly-button && lab -v -t 100 -a code"
"test": "belly-button -f && lab -v -t 100 -a code"
},

@@ -24,8 +24,8 @@ "engines": {

"dependencies": {
"reach": "1.x.x"
"reach": "1.0.0"
},
"devDependencies": {
"belly-button": "1.x.x",
"code": "2.x.x",
"lab": "8.x.x"
"belly-button": "3.x.x",
"code": "3.x.x",
"lab": "11.x.x"
},

@@ -32,0 +32,0 @@ "keywords": [

@@ -280,2 +280,2 @@ # credit-card

A list of test credit cards is available from [http://www.paypalobjects.com/en_US/vhelp/paypalmanager_help/credit_card_numbers.htm](PayPal).
A list of test credit cards is available from [PayPal](http://www.paypalobjects.com/en_US/vhelp/paypalmanager_help/credit_card_numbers.htm).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc