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

@types/credit-card-type

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/credit-card-type - npm Package Compare versions

Comparing version 5.0.1 to 7.0.0

credit-card-type/LICENSE

42

credit-card-type/index.d.ts

@@ -1,31 +0,39 @@

// Type definitions for Credit Card Type v5.0.0
// Type definitions for Credit Card Type v7.0.0
// Project: https://github.com/braintree/credit-card-type
// Definitions by: Karol Janyst <https://github.com/LKay>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.9
declare namespace creditCardType {
type CardBrand =
| "american-express"
| "diners-club"
| "discover"
| "jcb"
| "maestro"
| "mastercard"
| "unionpay"
| "visa";
type CardBrand = "american-express" | "diners-club" | "discover" | "jcb" | "maestro" | "master-card" | "unionpay" | "visa"
interface CreditCardTypeInfo {
niceType?: string
type?: CardBrand
prefixPattern?: RegExp
exactPattern?: RegExp
gaps?: Array<number>
lengths?: Array<number>
niceType?: string;
type?: CardBrand;
prefixPattern?: RegExp;
exactPattern?: RegExp;
gaps?: Array<number>;
lengths?: Array<number>;
code?: {
name?: string
size?: number
}
name?: string;
size?: number;
};
}
interface CreditCardType {
(number: string): Array<CreditCardTypeInfo>
getTypeInfo (type: string): CreditCardTypeInfo
types: { [type: string]: string }
(number: string): Array<CreditCardTypeInfo>;
getTypeInfo(type: string): CreditCardTypeInfo;
types: { [type: string]: string };
}
}
declare const creditCardType: creditCardType.CreditCardType
export = creditCardType
declare const creditCardType: creditCardType.CreditCardType;
export = creditCardType;
{
"name": "@types/credit-card-type",
"version": "5.0.1",
"version": "7.0.0",
"description": "TypeScript definitions for Credit Card Type",
"license": "MIT",
"author": "Karol Janyst <https://github.com/LKay>",
"contributors": [
{
"name": "Karol Janyst",
"url": "https://github.com/LKay",
"githubUsername": "LKay"
}
],
"main": "",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
},
"scripts": {},
"dependencies": {},
"peerDependencies": {},
"typesPublisherContentHash": "bb580837d0ec419ab342e5b53b2558ac72544163d76593f2c50bcfdf9183c6e6",
"typeScriptVersion": "2.0"
"typesPublisherContentHash": "5168dd4843627fcb8f3233fac036b61eb9ee4db76075850677b46a59d96ac457",
"typeScriptVersion": "2.9"
}

@@ -8,6 +8,6 @@ # Installation

# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/credit-card-type
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/credit-card-type
Additional Details
* Last updated: Fri, 27 Jan 2017 00:03:31 GMT
* Last updated: Wed, 05 Sep 2018 18:20:01 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: none

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