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

creditable

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

creditable - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

9

creditablesecuritycode.js

@@ -15,2 +15,3 @@ // Input a credit card number string, returns a key signifying the type of credit card it is

this.$creditCard = this.$el.closest( "form" ).find( "[data-creditable-creditcard]" );
this.originalMaxlength = parseInt( this.$el.attr( "maxlength" ), 10 );

@@ -26,8 +27,4 @@ var self = this;

var maxlen = this.getMaxlength();
if( maxlen ) {
this.$el.attr( "maxlength", maxlen );
} else {
this.$el.removeAttr( "maxlength" );
}
this.$el.attr( "placeholder", this.getPlaceholder( maxlen || 4 ) );
this.$el.attr( "maxlength", maxlen || this.originalMaxlength );
this.$el.attr( "placeholder", this.getPlaceholder( maxlen || this.originalMaxLength ) );
};

@@ -34,0 +31,0 @@

{
"name": "creditable",
"version": "1.0.6",
"version": "1.0.7",
"description": "Utilities for working with credit card form input.",

@@ -5,0 +5,0 @@ "main": "creditablecardtype.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