@mollahdev/cssom-lite
Advanced tools
Comparing version 1.0.7 to 1.0.8
var f = Object.defineProperty; | ||
var d = (a, e, t) => e in a ? f(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t; | ||
var h = (a, e, t) => (d(a, typeof e != "symbol" ? e + "" : e, t), t); | ||
var d = (c, e, t) => e in c ? f(c, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[e] = t; | ||
var h = (c, e, t) => (d(c, typeof e != "symbol" ? e + "" : e, t), t); | ||
class v { | ||
@@ -53,14 +53,14 @@ constructor() { | ||
return t; | ||
s.sort(function(n, l) { | ||
s.sort(function(n, a) { | ||
if (n === "all") | ||
return -1; | ||
if (l === "all") | ||
if (a === "all") | ||
return 1; | ||
let o = r.call(e, n), c = r.call(e, l); | ||
if (o.max && c.max) | ||
return c.max - o.max; | ||
if (o.min && c.min) | ||
return c.min - o.min; | ||
const u = o.max ?? o.min; | ||
return (c.max ?? c.min) - u; | ||
let o = r.call(e, n), l = r.call(e, a); | ||
if (o.max && l.max) | ||
return l.max - o.max; | ||
if (o.min && l.min) | ||
return l.min - o.min; | ||
const u = o.max !== null && o.max !== void 0 ? o.max : o.min; | ||
return (l.max !== null && l.max !== void 0 ? l.max : l.min) - u; | ||
}); | ||
@@ -105,8 +105,8 @@ const i = {}; | ||
n = t.split(";").filter(String); | ||
const l = {}; | ||
const a = {}; | ||
try { | ||
let o; | ||
for (o in n) { | ||
const [c, u] = n[o].split(/:(.*)?/); | ||
c.trim() === "remove" && this.removeOldProperties(u.trim(), s.rules[i][e]), !this.canIgnore(c) && !this.canIgnore(u) && (l[c.trim()] = u.trim().replace(";", "")); | ||
const [l, u] = n[o].split(/:(.*)?/); | ||
l.trim() === "remove" && this.removeOldProperties(u.trim(), s.rules[i][e]), !this.canIgnore(l) && !this.canIgnore(u) && (a[l.trim()] = u.trim().replace(";", "")); | ||
} | ||
@@ -116,3 +116,3 @@ } catch { | ||
} | ||
n = l; | ||
n = a; | ||
} | ||
@@ -127,7 +127,7 @@ Object.assign(s.rules[i][e], n); | ||
let n = ""; | ||
for (let l in e) | ||
n += e[l]; | ||
for (let l in i) { | ||
let o = t.call(this, i[l]); | ||
l !== "all" && (o = r.call(this, l) + "{" + o + "}"), n += o; | ||
for (let a in e) | ||
n += e[a]; | ||
for (let a in i) { | ||
let o = t.call(this, i[a]); | ||
a !== "all" && (o = r.call(this, a) + "{" + o + "}"), n += o; | ||
} | ||
@@ -134,0 +134,0 @@ return n.replace(/\s+/g, " "); |
{ | ||
"name": "@mollahdev/cssom-lite", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"author": "Ashraf Mollah <mollah.dev@gmail.com> (https://mollah.dev)", | ||
@@ -5,0 +5,0 @@ "description": "Generate css with javascript", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10710