Comparing version 22.5.0 to 22.7.0
18
json.js
@@ -151,3 +151,3 @@ | ||
sub[0].charAt(0) === "@" ? "o[p(" + quote(sub[0].slice(1)) + ")(d)]" : | ||
(arr ? "I" : "J") + "(o,m(" + quote(sub[0]) + "))" | ||
(arr ? "I" : "J") + "(o,m(" + quote(sub[0]) + "),0,b)" | ||
) + ")" : | ||
@@ -181,3 +181,3 @@ v + "o[" + quote(path) + "])" + ( | ||
op = "o[t]" | ||
out += "(t=" + (arr ? "I" : "J") + "(o,m(" + quote(sub) + "),1))!=null&&" | ||
out += "(t=" + (arr ? "I" : "J") + "(o,m(" + quote(sub) + "),1,b))!=null&&" | ||
} | ||
@@ -323,3 +323,3 @@ } | ||
a.push( | ||
isArray || attr === "c" ? (isArray == "{}" ? "J(" : "I(") + attr + "," + idd + "))" : | ||
isArray || attr === "c" ? (isArray == "{}" ? "J(" : "I(") + attr + "," + idd + "),0,b)" : | ||
m[2] || m[3] ? idd + ")(" + attr + ")" : | ||
@@ -386,12 +386,14 @@ isRe ? "typeof " + attr + "==='string'&&" + v + ".test(" + attr + ")" : | ||
function inArray(a, fn, idx) { | ||
function inArray(a, fn, idx, params) { | ||
for (var i = -1, len = a.length; ++i < len; ) { | ||
if (fn(a[i])) return idx == null ? a[i] : i | ||
if (fn(a[i], params)) { | ||
return idx === 0 ? a[i] : i | ||
} | ||
} | ||
return idx != null && len | ||
return idx !== 0 && len | ||
} | ||
function inObject(o, fn, idx) { | ||
function inObject(o, fn, idx, params) { | ||
for (var key in o) { | ||
if (fn(o[key])) return idx == null ? o[key] : key | ||
if (fn(o[key], params)) return idx === 0 ? o[key] : key | ||
} | ||
@@ -398,0 +400,0 @@ return null |
{ | ||
"name": "litejs", | ||
"version": "22.5.0", | ||
"version": "22.7.0", | ||
"description": "Full-stack web framework in a tiny package", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
75389
2410