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

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 7.0.0 to 7.0.1

3

CHANGELOG.md

@@ -0,1 +1,4 @@

### Version 7.0.1
- $.fn.css: added support for retrieving properties of disconnected nodes
### Version 7.0.0

@@ -2,0 +5,0 @@ - focus|blur|mouseenter|mouseleave: ensuring namespaces are handled properly

2

dist/cash.esm.js

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

const style = win.getComputedStyle(ele, null);
return isVariable ? style.getPropertyValue(prop) || undefined : style[prop];
return isVariable ? style.getPropertyValue(prop) || undefined : style[prop] || ele.style[prop];
}

@@ -319,0 +319,0 @@ // @require ./compute_style.ts

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

var style = win.getComputedStyle(ele, null);
return isVariable ? style.getPropertyValue(prop) || undefined : style[prop];
return isVariable ? style.getPropertyValue(prop) || undefined : style[prop] || ele.style[prop];
} // @require ./compute_style.ts

@@ -406,0 +406,0 @@

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

F.toggleClass=function(a,b){var c=N(a),d=void 0!==b;return this.each(function(a,f){B(f)&&I(c,function(a,c){d?b?f.classList.add(c):f.classList.remove(c):f.classList.toggle(c)})})};F.addClass=function(a){return this.toggleClass(a,!0)};F.removeClass=function(a){return arguments.length?this.toggleClass(a,!1):this.attr("class","")};
function O(a,b,c,d){for(var h=[],f=E(b),l=d&&L(d),q=0,z=a.length;q<z;q++)if(f){var k=b(a[q]);k.length&&ia.apply(h,k)}else for(k=a[q][b];!(null==k||d&&l(-1,k));)h.push(k),k=c?k[b]:null;return h}function P(a){return 1<a.length?v.call(a,function(a,c,d){return fa.call(d,a)===c}):a}G.unique=P;F.add=function(a,b){return G(P(this.get().concat(G(a,b).get())))};function Q(a,b,c){if(B(a))return a=n.getComputedStyle(a,null),c?a.getPropertyValue(b)||void 0:a[b]}function R(a,b){return parseInt(Q(a,b),10)||0}
var S=/^--/,T={},va=ba.style,wa=["webkit","moz","ms"];function xa(a,b){void 0===b&&(b=S.test(a));if(b)return a;if(!T[a]){b=H(a);var c=""+b[0].toUpperCase()+b.slice(1);b=(b+" "+wa.join(c+" ")+c).split(" ");I(b,function(b,c){if(c in va)return T[a]=c,!1})}return T[a]}
function O(a,b,c,d){for(var h=[],f=E(b),l=d&&L(d),q=0,z=a.length;q<z;q++)if(f){var k=b(a[q]);k.length&&ia.apply(h,k)}else for(k=a[q][b];!(null==k||d&&l(-1,k));)h.push(k),k=c?k[b]:null;return h}function P(a){return 1<a.length?v.call(a,function(a,c,d){return fa.call(d,a)===c}):a}G.unique=P;F.add=function(a,b){return G(P(this.get().concat(G(a,b).get())))};function Q(a,b,c){if(B(a)){var d=n.getComputedStyle(a,null);return c?d.getPropertyValue(b)||void 0:d[b]||a.style[b]}}
function R(a,b){return parseInt(Q(a,b),10)||0}var S=/^--/,T={},va=ba.style,wa=["webkit","moz","ms"];function xa(a,b){void 0===b&&(b=S.test(a));if(b)return a;if(!T[a]){b=H(a);var c=""+b[0].toUpperCase()+b.slice(1);b=(b+" "+wa.join(c+" ")+c).split(" ");I(b,function(b,c){if(c in va)return T[a]=c,!1})}return T[a]}
var ya={animationIterationCount:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0};function za(a,b,c){void 0===c&&(c=S.test(a));return c||ya[a]||!ta(b)?b:b+"px"}

@@ -16,0 +16,0 @@ F.css=function(a,b){if(D(a)){var c=S.test(a);a=xa(a,c);if(2>arguments.length)return this[0]&&Q(this[0],a,c);if(!a)return this;b=za(a,b,c);return this.each(function(d,f){B(f)&&(c?f.style.setProperty(a,b):f.style[a]=b)})}for(var d in a)this.css(d,a[d]);return this};var Aa=/^\s+|\s+$/;function Ba(a,b){a=a.dataset[b]||a.dataset[H(b)];return Aa.test(a)?a:g(JSON.parse,a)}

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

@@ -53,8 +53,8 @@ "browser": "./dist/cash.js",

"jquery": "^3.3.1",
"karma": "^3.0.0",
"karma-chrome-launcher": "^2.2.0",
"karma": "^4.0.0",
"karma-chrome-launcher": "^3.0.0",
"karma-coverage": "^2.0.1",
"karma-firefox-launcher": "^1.1.0",
"karma-qunit": "^2.1.0",
"karma-sauce-launcher": "^1.2.0",
"karma-qunit": "^4.0.0",
"karma-sauce-launcher": "^4.0.0",
"karma-spec-reporter": "0.0.32",

@@ -61,0 +61,0 @@ "opn-cli": "^3.1.0",

@@ -34,6 +34,6 @@

Get Cash from [CloudFlare](https://cdnjs.cloudflare.com/ajax/libs/cash/7.0.0/cash.min.js) or [jsDelivr](https://cdn.jsdelivr.net/npm/cash-dom@7.0.0/dist/cash.min.js) and use it like this:
Get Cash from [CloudFlare](https://cdnjs.cloudflare.com/ajax/libs/cash/7.0.1/cash.min.js) or [jsDelivr](https://cdn.jsdelivr.net/npm/cash-dom@7.0.1/dist/cash.min.js) and use it like this:
```html
<script src="https://cdnjs.cloudflare.com/ajax/libs/cash/7.0.0/cash.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/cash/7.0.1/cash.min.js"></script>
<script>

@@ -40,0 +40,0 @@ $(function () {

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