New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

card

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

card - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

2

bower.json

@@ -28,3 +28,3 @@ {

],
"version": "2.2.0"
"version": "2.2.1"
}

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

// Generated by CoffeeScript 1.7.1
// Generated by CoffeeScript 1.10.0
(function() {
var Card, QJ, extend, payment,
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };

@@ -66,3 +66,3 @@ require('./card.css');

function Card(opts) {
this.maskCardNumber = __bind(this.maskCardNumber, this);
this.maskCardNumber = bind(this.maskCardNumber, this);
var toInitialize;

@@ -91,12 +91,12 @@ this.options = extend(true, this.defaults, opts);

Card.prototype.render = function() {
var $cardContainer, baseWidth, name, obj, selector, ua, _ref, _ref1;
var $cardContainer, baseWidth, name, obj, ref, ref1, selector, ua;
QJ.append(this.$container, this.template(this.cardTemplate, extend({}, this.options.messages, this.options.placeholders)));
_ref = this.options.cardSelectors;
for (name in _ref) {
selector = _ref[name];
ref = this.options.cardSelectors;
for (name in ref) {
selector = ref[name];
this["$" + name] = QJ.find(this.$container, selector);
}
_ref1 = this.options.formSelectors;
for (name in _ref1) {
selector = _ref1[name];
ref1 = this.options.formSelectors;
for (name in ref1) {
selector = ref1[name];
selector = this.options[name] ? this.options[name] : selector;

@@ -173,18 +173,18 @@ obj = QJ.find(this.$el, selector);

Card.prototype.handleInitialPlaceholders = function() {
var el, name, selector, _ref, _results;
_ref = this.options.formSelectors;
_results = [];
for (name in _ref) {
selector = _ref[name];
var el, name, ref, results, selector;
ref = this.options.formSelectors;
results = [];
for (name in ref) {
selector = ref[name];
el = this["$" + name];
if (QJ.val(el)) {
QJ.trigger(el, 'paste');
_results.push(setTimeout(function() {
results.push(setTimeout(function() {
return QJ.trigger(el, 'keyup');
}));
} else {
_results.push(void 0);
results.push(void 0);
}
}
return _results;
return results;
};

@@ -296,9 +296,9 @@

outDefaults = (function() {
var _i, _len, _results;
_results = [];
for (_i = 0, _len = out.length; _i < _len; _i++) {
o = out[_i];
_results.push(o.textContent);
var j, len, results;
results = [];
for (j = 0, len = out.length; j < len; j++) {
o = out[j];
results.push(o.textContent);
}
return _results;
return results;
})();

@@ -312,11 +312,11 @@ QJ.on(el, 'focus', function() {

QJ.on(el, 'keyup change paste', function(e) {
var elem, filter, i, join, outEl, outVal, val, _i, _j, _len, _len1, _ref, _results;
var elem, filter, i, j, join, k, len, len1, outEl, outVal, ref, results, val;
val = (function() {
var _i, _len, _results;
_results = [];
for (_i = 0, _len = el.length; _i < _len; _i++) {
elem = el[_i];
_results.push(QJ.val(elem));
var j, len, results;
results = [];
for (j = 0, len = el.length; j < len; j++) {
elem = el[j];
results.push(QJ.val(elem));
}
return _results;
return results;
})();

@@ -328,9 +328,9 @@ join = opts.join(val);

}
_ref = opts.filters;
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
filter = _ref[_i];
ref = opts.filters;
for (j = 0, len = ref.length; j < len; j++) {
filter = ref[j];
val = filter(val, el, out);
}
_results = [];
for (i = _j = 0, _len1 = out.length; _j < _len1; i = ++_j) {
results = [];
for (i = k = 0, len1 = out.length; k < len1; i = ++k) {
outEl = out[i];

@@ -342,5 +342,5 @@ if (opts.fill) {

}
_results.push(outEl.textContent = outVal);
results.push(outEl.textContent = outVal);
}
return _results;
return results;
});

@@ -347,0 +347,0 @@ return el;

{
"name": "card",
"version": "2.2.0",
"version": "2.2.1",
"author": "Jesse Pollak <jpollak92@gmail.com>",

@@ -55,4 +55,4 @@ "description": "Card lets you add an interactive, CSS3 credit card animation to your credit card form to help your users through the process.",

"qj": "^2.0.0",
"payment": "^2.2.0"
"payment": "^2.2.1"
}
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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