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

dosh

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dosh - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

7

lib/index.js

@@ -10,2 +10,3 @@ "use strict";

});
exports.match = match;
exports.cleanNumber = cleanNumber;

@@ -28,3 +29,4 @@ exports.validateNumber = validateNumber;

validateExpiryMonth: validateExpiryMonth,
formatNumber: formatNumber
formatNumber: formatNumber,
match: match
};

@@ -103,5 +105,6 @@

// Guess the card type from the given card number
function match(number) {
// Strip any non-digit characters
number = (number + "").replace(/\D/g, "");
number = cleanNumber(number);

@@ -108,0 +111,0 @@ // Iterate through each card type schema

{
"name": "dosh",
"version": "0.3.0",
"version": "0.4.0",
"description": "",

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

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