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.3 to 7.0.4

3

CHANGELOG.md

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

### Version 7.0.4
- Ensuring unusual but valid simple selectors are handled properly
### Version 7.0.3

@@ -2,0 +5,0 @@ - Updated “EleLoose” type

2

dist/cash.esm.js

@@ -27,3 +27,3 @@ /* MIT https://github.com/fabiospampinato/cash */

const doc = document, win = window, docEle = doc.documentElement, createElement = doc.createElement.bind(doc), div = createElement('div'), table = createElement('table'), tbody = createElement('tbody'), tr = createElement('tr'), { isArray, prototype: ArrayPrototype } = Array, { concat, filter, indexOf, map, push, slice, some, splice } = ArrayPrototype;
const idRe = /^#[\w-]*$/, classRe = /^\.[\w-]*$/, htmlRe = /<.+>/, tagRe = /^\w+$/;
const idRe = /^#(?:[\w-]|\\.|[^\x00-\xa0])*$/, classRe = /^\.(?:[\w-]|\\.|[^\x00-\xa0])*$/, htmlRe = /<.+>/, tagRe = /^\w+$/;
// @require ./variables.ts

@@ -30,0 +30,0 @@ function find(selector, context) {

@@ -52,4 +52,4 @@ /* MIT https://github.com/fabiospampinato/cash */

splice = ArrayPrototype.splice;
var idRe = /^#[\w-]*$/,
classRe = /^\.[\w-]*$/,
var idRe = /^#(?:[\w-]|\\.|[^\x00-\xa0])*$/,
classRe = /^\.(?:[\w-]|\\.|[^\x00-\xa0])*$/,
htmlRe = /<.+>/,

@@ -56,0 +56,0 @@ tagRe = /^\w+$/; // @require ./variables.ts

/* MIT https://github.com/fabiospampinato/cash */
(function(){
'use strict';var e={"class":"className",contenteditable:"contentEditable","for":"htmlFor",readonly:"readOnly",maxlength:"maxLength",tabindex:"tabIndex",colspan:"colSpan",rowspan:"rowSpan",usemap:"useMap"};function g(a,b){try{return a(b)}catch(c){return b}}
var m=document,n=window,aa=m.documentElement,p=m.createElement.bind(m),ba=p("div"),r=p("table"),ca=p("tbody"),da=p("tr"),t=Array.isArray,u=Array.prototype,ea=u.concat,v=u.filter,fa=u.indexOf,ha=u.map,ia=u.push,ja=u.slice,w=u.some,ka=u.splice,la=/^#[\w-]*$/,ma=/^\.[\w-]*$/,na=/<.+>/,oa=/^\w+$/;function x(a,b){return a&&(y(b)||B(b))?ma.test(a)?b.getElementsByClassName(a.slice(1)):oa.test(a)?b.getElementsByTagName(a):b.querySelectorAll(a):[]}
var m=document,n=window,aa=m.documentElement,p=m.createElement.bind(m),ba=p("div"),r=p("table"),ca=p("tbody"),da=p("tr"),t=Array.isArray,u=Array.prototype,ea=u.concat,v=u.filter,fa=u.indexOf,ha=u.map,ia=u.push,ja=u.slice,w=u.some,ka=u.splice,la=/^#(?:[\w-]|\\.|[^\x00-\xa0])*$/,ma=/^\.(?:[\w-]|\\.|[^\x00-\xa0])*$/,na=/<.+>/,oa=/^\w+$/;function x(a,b){return a&&(y(b)||B(b))?ma.test(a)?b.getElementsByClassName(a.slice(1)):oa.test(a)?b.getElementsByTagName(a):b.querySelectorAll(a):[]}
var C=function(){function a(a,c){if(a){if(a instanceof C)return a;var b=a;if(D(a)){if(b=(c instanceof C?c[0]:c)||m,b=la.test(a)?b.getElementById(a.slice(1)):na.test(a)?pa(a):x(a,b),!b)return}else if(E(a))return this.ready(a);if(b.nodeType||b===n)b=[b];this.length=b.length;a=0;for(c=this.length;a<c;a++)this[a]=b[a]}}a.prototype.init=function(b,c){return new a(b,c)};return a}(),F=C.prototype,G=F.init;G.fn=G.prototype=F;F.length=0;F.splice=ka;"function"===typeof Symbol&&(F[Symbol.iterator]=u[Symbol.iterator]);

@@ -6,0 +6,0 @@ F.map=function(a){return G(ea.apply([],ha.call(this,function(b,c){return a.call(b,c,b)})))};F.slice=function(a,b){return G(ja.call(this,a,b))};var ra=/-([a-z])/g;function H(a){return a.replace(ra,function(a,c){return c.toUpperCase()})}function I(a,b,c){if(c)for(c=a.length;c--&&!1!==b.call(a[c],c,a[c]););else{c=0;for(var d=a.length;c<d&&!1!==b.call(a[c],c,a[c]);c++);}return a}G.each=I;F.each=function(a){return I(this,a)};F.removeProp=function(a){return this.each(function(b,c){delete c[e[a]||a]})};

@@ -81,4 +81,4 @@

const idRe = /^#[\w-]*$/,
classRe = /^\.[\w-]*$/,
const idRe = /^#(?:[\w-]|\\.|[^\x00-\xa0])*$/,
classRe = /^\.(?:[\w-]|\\.|[^\x00-\xa0])*$/,
htmlRe = /<.+>/,

@@ -85,0 +85,0 @@ tagRe = /^\w+$/;

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

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

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

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

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

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