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 7.0.0 to 7.0.1

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# 7.0.1
- Fixup export for credit-card-type for typescript projects (closes #79)
# 7.0.0

@@ -2,0 +6,0 @@

3

dist/index.d.ts

@@ -0,1 +1,2 @@

import * as creditCardType from "credit-card-type";
export { cardNumber as number } from "./card-number";

@@ -7,2 +8,2 @@ export { expirationDate } from "./expiration-date";

export { postalCode } from "./postal-code";
export * as creditCardType from "credit-card-type";
export { creditCardType };
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var creditCardType = require("credit-card-type");
exports.creditCardType = creditCardType;
var card_number_1 = require("./card-number");

@@ -15,2 +17,1 @@ exports.number = card_number_1.cardNumber;

exports.postalCode = postal_code_1.postalCode;
exports.creditCardType = require("credit-card-type");
{
"name": "card-validator",
"version": "7.0.0",
"version": "7.0.1",
"description": "A library for validating credit card fields",

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

@@ -249,3 +249,3 @@ # Credit Card Validator [![Build Status](https://travis-ci.org/braintree/card-validator.svg)](https://travis-ci.org/braintree/card-validator) [![npm version](https://badge.fury.io/js/card-validator.svg)](http://badge.fury.io/js/card-validator)

The `maxElapsedYear` has a default value of 19. It can be overridden by passing in an `integer` as a second argument.
The `maxElapsedYear` parameter determines how many years in the future a card's expiration date should be considered valid. It has a default value of 19, so cards with an expiration date 20 or more years in the future would not be considered valid. It can be overridden by passing in an `integer` as a second argument.

@@ -291,3 +291,3 @@ ```javascript

The `maxElapsedYear` has a default value of 19. It can be overridden by passing in an `integer` as a second argument.
The `maxElapsedYear` parameter determines how many years in the future a card's expiration date should be considered valid. It has a default value of 19, so cards with an expiration date 20 or more years in the future would not be considered valid. It can be overridden by passing in an `integer` as a second argument.

@@ -294,0 +294,0 @@ ```javascript

@@ -0,1 +1,3 @@

import * as creditCardType from "credit-card-type";
export { cardNumber as number } from "./card-number";

@@ -7,2 +9,3 @@ export { expirationDate } from "./expiration-date";

export { postalCode } from "./postal-code";
export * as creditCardType from "credit-card-type";
export { creditCardType };
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