Socket
Socket
Sign inDemoInstall

cash-dom

Package Overview
Dependencies
Maintainers
3
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cash-dom - npm Package Compare versions

Comparing version 2.3.4 to 2.3.5

src/core/export.js

2

dist/cash.esm.js

@@ -381,3 +381,3 @@ /* MIT https://github.com/kenwheeler/cash */

// @optional ./each.js
// @optional ./export_window.js
// @optional ./export.js
// @optional ./extend.js

@@ -384,0 +384,0 @@ // @optional ./find.js

@@ -146,4 +146,11 @@ /* MIT https://github.com/kenwheeler/cash */

win.cash = win.$ = cash; // @require ./cash.js
if (typeof exports !== 'undefined') {
// Node.js
module.exports = cash;
} else {
// Browser
win.cash = win.$ = cash;
} // @require ./cash.js
function extend(target) {

@@ -386,3 +393,3 @@ if (target === void 0) {

// @optional ./each.js
// @optional ./export_window.js
// @optional ./export.js
// @optional ./extend.js

@@ -389,0 +396,0 @@ // @optional ./find.js

@@ -6,8 +6,9 @@ /* MIT https://github.com/kenwheeler/cash */

y.eq=function(a){return x(this.get(a))};y.first=function(){return this.eq(0)};y.last=function(){return this.eq(-1)};y.map=function(a){return x(ba.call(this,function(b,c){return a.call(b,c,b)}))};y.slice=function(){return x(q.apply(this,arguments))};var ha=/(?:^\w|[A-Z]|\b\w)/g,ia=/[\s-_]+/g;function z(a){return a.replace(ha,function(a,c){return a[c?"toUpperCase":"toLowerCase"]()}).replace(ia,"")}x.camelCase=z;function A(a,b){for(var c=0,d=a.length;c<d&&!1!==b.call(a[c],a[c],c,a);c++);}x.each=A;
y.each=function(a){A(this,function(b,c){return a.call(b,c,b)});return this};y.removeProp=function(a){return this.each(function(b,c){delete c[a]})};g.cash=g.$=x;x.extend=y.extend=function(a){void 0===a&&(a=this);for(var b=arguments,c=b.length,d=2>c?0:1;d<c;d++)for(var f in b[d])a[f]=b[d][f];return a};var B=1;x.guid=B;function C(a,b){var c=a&&(a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector);return!!c&&c.call(a,b)}x.matches=C;
function w(a){return"function"===typeof a}x.isFunction=w;function u(a){return"string"===typeof a}x.isString=u;function D(a){return!isNaN(parseFloat(a))&&isFinite(a)}x.isNumeric=D;var E=Array.isArray;x.isArray=E;y.prop=function(a,b){if(a){if(u(a))return 2>arguments.length?this[0]&&this[0][a]:this.each(function(c,f){f[a]=b});for(var c in a)this.prop(c,a[c]);return this}};function F(a){return u(a)?function(b,c){return C(c,a)}:a.__cash?function(b,c){return a.is(c)}:function(a,c,d){return c===d}}
y.filter=function(a){if(!a)return x();var b=w(a)?a:F(a);return x(l.call(this,function(c,d){return b.call(c,d,c,a)}))};var ja=/\S+/g;function G(a){return u(a)?a.match(ja)||[]:[]}y.hasClass=function(a){var b=G(a),c=!1;b.length&&this.each(function(a,f){c=f.classList.contains(b[0]);return!c});return c};y.removeAttr=function(a){var b=G(a);return b.length?this.each(function(a,d){A(b,function(a){d.removeAttribute(a)})}):this};
y.attr=function(a,b){if(a){if(u(a)){if(2>arguments.length){if(!this[0])return;var c=this[0].getAttribute(a);return null===c?void 0:c}return null===b?this.removeAttr(a):this.each(function(c,f){f.setAttribute(a,b)})}for(c in a)this.attr(c,a[c]);return this}};y.toggleClass=function(a,b){var c=G(a),d=void 0!==b;return c.length?this.each(function(a,k){A(c,function(a){d?b?k.classList.add(a):k.classList.remove(a):k.classList.toggle(a)})}):this};y.addClass=function(a){return this.toggleClass(a,!0)};
y.removeClass=function(a){return arguments.length?this.toggleClass(a,!1):this.attr("class","")};var H;function v(a){if(!H){H=e.implementation.createHTMLDocument("");var b=H.createElement("base");b.href=e.location.href;H.head.appendChild(b)}u(a)||(a="");H.body.innerHTML=a;return q.call(H.body.childNodes)}x.parseHTML=v;function J(a){return a.filter(function(a,c,d){return d.indexOf(a)===c})}x.unique=J;y.add=function(a,b){return x(J(this.get().concat(x(a,b).get())))};
function K(a,b,c){if(1===a.nodeType)return a=g.getComputedStyle(a,null),b?c?a.getPropertyValue(b):a[b]:a}function L(a,b){return parseInt(K(a,b),10)||0}var M=/^--/,N={},ka=e.createElement("div").style,la=["webkit","moz","ms","o"];function O(a,b){void 0===b&&(b=M.test(a));if(b)return a;if(!N[a]){b=z(a);var c=""+b.charAt(0).toUpperCase()+b.slice(1);b=(b+" "+la.join(c+" ")+c).split(" ");A(b,function(b){if(b in ka)return N[a]=b,!1})}return N[a]}x.prefixedProp=O;
y.each=function(a){A(this,function(b,c){return a.call(b,c,b)});return this};y.removeProp=function(a){return this.each(function(b,c){delete c[a]})};"undefined"!==typeof exports?module.exports=x:g.cash=g.$=x;x.extend=y.extend=function(a){void 0===a&&(a=this);for(var b=arguments,c=b.length,d=2>c?0:1;d<c;d++)for(var f in b[d])a[f]=b[d][f];return a};var B=1;x.guid=B;
function C(a,b){var c=a&&(a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector);return!!c&&c.call(a,b)}x.matches=C;function w(a){return"function"===typeof a}x.isFunction=w;function u(a){return"string"===typeof a}x.isString=u;function D(a){return!isNaN(parseFloat(a))&&isFinite(a)}x.isNumeric=D;var E=Array.isArray;x.isArray=E;
y.prop=function(a,b){if(a){if(u(a))return 2>arguments.length?this[0]&&this[0][a]:this.each(function(c,f){f[a]=b});for(var c in a)this.prop(c,a[c]);return this}};function F(a){return u(a)?function(b,c){return C(c,a)}:a.__cash?function(b,c){return a.is(c)}:function(a,c,d){return c===d}}y.filter=function(a){if(!a)return x();var b=w(a)?a:F(a);return x(l.call(this,function(c,d){return b.call(c,d,c,a)}))};var ja=/\S+/g;function G(a){return u(a)?a.match(ja)||[]:[]}
y.hasClass=function(a){var b=G(a),c=!1;b.length&&this.each(function(a,f){c=f.classList.contains(b[0]);return!c});return c};y.removeAttr=function(a){var b=G(a);return b.length?this.each(function(a,d){A(b,function(a){d.removeAttribute(a)})}):this};y.attr=function(a,b){if(a){if(u(a)){if(2>arguments.length){if(!this[0])return;var c=this[0].getAttribute(a);return null===c?void 0:c}return null===b?this.removeAttr(a):this.each(function(c,f){f.setAttribute(a,b)})}for(c in a)this.attr(c,a[c]);return this}};
y.toggleClass=function(a,b){var c=G(a),d=void 0!==b;return c.length?this.each(function(a,k){A(c,function(a){d?b?k.classList.add(a):k.classList.remove(a):k.classList.toggle(a)})}):this};y.addClass=function(a){return this.toggleClass(a,!0)};y.removeClass=function(a){return arguments.length?this.toggleClass(a,!1):this.attr("class","")};var H;
function v(a){if(!H){H=e.implementation.createHTMLDocument("");var b=H.createElement("base");b.href=e.location.href;H.head.appendChild(b)}u(a)||(a="");H.body.innerHTML=a;return q.call(H.body.childNodes)}x.parseHTML=v;function J(a){return a.filter(function(a,c,d){return d.indexOf(a)===c})}x.unique=J;y.add=function(a,b){return x(J(this.get().concat(x(a,b).get())))};function K(a,b,c){if(1===a.nodeType)return a=g.getComputedStyle(a,null),b?c?a.getPropertyValue(b):a[b]:a}
function L(a,b){return parseInt(K(a,b),10)||0}var M=/^--/,N={},ka=e.createElement("div").style,la=["webkit","moz","ms","o"];function O(a,b){void 0===b&&(b=M.test(a));if(b)return a;if(!N[a]){b=z(a);var c=""+b.charAt(0).toUpperCase()+b.slice(1);b=(b+" "+la.join(c+" ")+c).split(" ");A(b,function(b){if(b in ka)return N[a]=b,!1})}return N[a]}x.prefixedProp=O;
var ma={animationIterationCount:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0};function P(a,b,c){void 0===c&&(c=M.test(a));return c||ma[a]||!D(b)?b:b+"px"}y.css=function(a,b){if(u(a)){var c=M.test(a);a=O(a,c);if(2>arguments.length)return this[0]&&K(this[0],a,c);if(!a)return this;b=P(a,b,c);return this.each(function(d,k){1===k.nodeType&&(c?k.style.setProperty(a,b):k.style[a]=b)})}for(var d in a)this.css(d,a[d]);return this};

@@ -14,0 +15,0 @@ var na=/^data-(.*)/;x.hasData=function(a){return"__cashData"in a};function Q(a){return a.__cashData=a.__cashData||{}}function R(a,b){var c=Q(a);if(b){if(!(b in c)&&(a=a.dataset?a.dataset[b]||a.dataset[z(b)]:x(a).attr("data-"+b),void 0!==a)){try{a=JSON.parse(a)}catch(d){}c[b]=a}return c[b]}return c}

@@ -27,3 +27,3 @@ {

"components": {
"core/export_window": false
"core/export": false
},

@@ -30,0 +30,0 @@ "paths": {

{
"name": "cash-dom",
"description": "An absurdly small jQuery alternative for modern browsers.",
"version": "2.3.4",
"version": "2.3.5",
"license": "MIT",

@@ -6,0 +6,0 @@ "main": "./dist/cash.js",

// @optional ./camel_case.js
// @optional ./each.js
// @optional ./export_window.js
// @optional ./export.js
// @optional ./extend.js

@@ -6,0 +6,0 @@ // @optional ./find.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