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

card-validator

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

card-validator - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

5

CHANGELOG.md

@@ -0,1 +1,6 @@

3.0.1
=====
- Fix postal code validation to be valid if 3 or more characters
3.0.0

@@ -2,0 +7,0 @@ =====

2

package.json
{
"name": "card-validator",
"version": "3.0.0",
"version": "3.0.1",
"description": "A library for validating credit card fields",

@@ -5,0 +5,0 @@ "main": "index.js",

'use strict';
var isString = require('lodash/lang/isString');
var MIN_POSTAL_CODE_LENGTH = 3;

@@ -12,3 +13,3 @@ function verification(isValid, isPotentiallyValid) {

return verification(false, false);
} else if (value.length < 4) {
} else if (value.length < MIN_POSTAL_CODE_LENGTH) {
return verification(false, true);

@@ -15,0 +16,0 @@ }

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