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

ceri

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ceri - npm Package Compare versions

Comparing version 1.0.19 to 1.0.20

10

lib/_helpers.js

@@ -1,2 +0,2 @@

var h, id, isArray, isFunction, isObject, isPlainObject,
var concat, h, id, isArray, isFunction, isObject, isPlainObject,
slice = [].slice,

@@ -19,2 +19,6 @@ hasProp = {}.hasOwnProperty;

concat = function(arr1, arr2) {
return Array.prototype.push.apply(arr1, arr2);
};
h = /([^-])([A-Z])/g;

@@ -67,5 +71,3 @@

},
concat: function(arr1, arr2) {
return Array.prototype.push.apply(arr1, arr2);
},
concat: concat,
identity: function(val) {

@@ -72,0 +74,0 @@ return val;

6

lib/animate.js

@@ -244,4 +244,6 @@ var easing, isArray, procesPreserve, processStyle, step;

},
created: function() {
return this.$animations = [];
data: function() {
return {
$animations: []
};
},

@@ -248,0 +250,0 @@ destroy: function() {

@@ -19,3 +19,3 @@ var isFunction;

this.$nextTick(function() {
var objs, ref1, ref2, ref3, ref4, ref5, tap;
var objs, ref1, ref2, ref3, ref4, ref5, ref6, tap;
objs = this.$for({

@@ -26,5 +26,6 @@ anchor: comment,

names: (ref2 = o.names) != null ? (ref3 = ref2[""]) != null ? ref3.split(",") : void 0 : void 0,
computed: (ref4 = o.computed) != null ? ref4[""] : void 0
computed: (ref4 = o.computed) != null ? ref4[""] : void 0,
id: (ref5 = o.id) != null ? ref5[""] : void 0
});
if ((tap = (ref5 = o.tap) != null ? ref5[""] : void 0) != null) {
if ((tap = (ref6 = o.tap) != null ? ref6[""] : void 0) != null) {
return this.$path.setValue({

@@ -31,0 +32,0 @@ path: tap,

@@ -11,4 +11,4 @@ var clone, isArray, isObject, isString, noop, ref;

$for: function(arg) {
var _computed, addComputed, anchor, c, computed, getEls, names, objs, template, tmpl, valname, value;
anchor = arg.anchor, template = arg.template, names = arg.names, value = arg.value, computed = arg.computed;
var _computed, addComputed, anchor, c, computed, getEls, id, names, objs, template, tmpl, valname, value;
anchor = arg.anchor, template = arg.template, names = arg.names, value = arg.value, computed = arg.computed, id = arg.id;
if(process.env.NODE_ENV!=='production' && !names || !isArray(names)){throw new Error('$for called without array of names')};

@@ -21,13 +21,13 @@ if(process.env.NODE_ENV!=='production' && !value){throw new Error('$for called without iteratable')};

cbs: function(fn) {
var el, j, k, len, len1, newEls, obj, oldEls, results;
var el, k, l, len, len1, newEls, obj, oldEls, results;
tmpl = fn;
if (objs) {
results = [];
for (j = 0, len = objs.length; j < len; j++) {
obj = objs[j];
for (k = 0, len = objs.length; k < len; k++) {
obj = objs[k];
oldEls = obj._els;
if (fn) {
newEls = obj._els = fn.call(obj);
for (k = 0, len1 = newEls.length; k < len1; k++) {
el = newEls[k];
for (l = 0, len1 = newEls.length; l < len1; l++) {
el = newEls[l];
o.el.insertBefore(el, oldEls[0]);

@@ -39,6 +39,6 @@ }

results.push((function() {
var l, len2, results1;
var len2, m, results1;
results1 = [];
for (l = 0, len2 = oldEls.length; l < len2; l++) {
el = oldEls[l];
for (m = 0, len2 = oldEls.length; m < len2; m++) {
el = oldEls[m];
results1.push(el.remove());

@@ -74,3 +74,3 @@ }

c = this.$computed.orWatch(value, function(value) {
var append, appendComments, getNext, i, indexname, j, k, key, keyname, keys, l, last, len, len1, m, parent, ref1, remove, results, results1, tmp, val;
var append, appendComments, getNext, i, indexname, j, k, key, keyname, keys, l, last, len, len1, len2, len3, m, n, obj, p, parent, q, ref1, remove, results, results1, tmp, val;
if (value != null) {

@@ -81,3 +81,3 @@ last = null;

if (last != null) {
return objs[last]._start;
return last._start;
}

@@ -87,17 +87,19 @@ return anchor;

appendComments = function(tmp) {
var el;
el = tmp._start = document.createComment("for-item-start");
return parent.insertBefore(el, getNext());
var el, el2, next;
el = tmp._start != null ? tmp._start : tmp._start = document.createComment("for-item-start");
el2 = tmp._end != null ? tmp._end : tmp._end = document.createComment("for-item-end");
next = getNext();
parent.insertBefore(el, next);
return parent.insertBefore(el2, next);
};
append = function(tmp) {
var el, els, j, len, next, results;
var el, els, end, k, len, results;
if (!tmp._appended) {
tmp._appended = true;
els = tmp._els;
next = getNext();
tmp._end = next;
end = tmp._end;
results = [];
for (j = 0, len = els.length; j < len; j++) {
el = els[j];
results.push(parent.insertBefore(el, next));
for (k = 0, len = els.length; k < len; k++) {
el = els[k];
results.push(parent.insertBefore(el, end));
}

@@ -110,3 +112,3 @@ return results;

if (tmp._appended) {
val._appended = false;
tmp._appended = false;
els = tmp._els = [];

@@ -132,5 +134,15 @@ el = tmp._start.nextSibling;

}
for (i = j = value.length - 1; j >= 0; i = j += -1) {
for (i = k = value.length - 1; k >= 0; i = k += -1) {
val = value[i];
if ((tmp = objs[i]) != null) {
if (id != null) {
for (j = l = 0, len = objs.length; l < len; j = ++l) {
obj = objs[j];
if (i > j && (obj != null) && val[id] === obj[valname][id]) {
objs[j] = objs[i];
tmp = objs[i] = obj;
break;
}
}
}
if ((tmp != null) || ((tmp = objs[i]) != null)) {
if (val !== tmp[valname]) {

@@ -170,10 +182,15 @@ tmp[valname] = val;

addComputed(tmp);
appendComments(tmp);
tmp._els = getEls(tmp);
}
if (tmp._last !== i) {
remove(tmp);
appendComments(tmp);
}
append(tmp);
last = i;
tmp._last = i;
last = tmp;
tmp = null;
}
results = [];
for (i = k = 0, len = objs.length; k < len; i = ++k) {
for (i = m = 0, len1 = objs.length; m < len1; i = ++m) {
val = objs[i];

@@ -195,5 +212,15 @@ if (!value[i]) {

keys = Object.keys(value);
for (i = l = keys.length - 1; l >= 0; i = l += -1) {
for (i = n = keys.length - 1; n >= 0; i = n += -1) {
key = keys[i];
val = value[key];
if (id != null) {
for (j = p = 0, len2 = objs.length; p < len2; j = ++p) {
obj = objs[j];
if (i > j && (obj != null) && val[id] === obj[valname][id]) {
objs[j] = objs[i];
tmp = objs[i] = obj;
break;
}
}
}
if ((tmp = objs[i]) != null) {

@@ -234,12 +261,17 @@ if (val !== tmp[valname]) {

addComputed(tmp);
appendComments(tmp);
tmp._els = getEls(tmp);
}
if (tmp._last !== i) {
remove(tmp);
appendComments(tmp);
}
append(tmp);
last = i;
tmp._last = i;
last = tmp;
tmp = null;
}
ref1 = objs.slice(keys.length);
results1 = [];
for (m = 0, len1 = ref1.length; m < len1; m++) {
val = ref1[m];
for (q = 0, len3 = ref1.length; q < len3; q++) {
val = ref1[q];
results1.push(remove(val));

@@ -246,0 +278,0 @@ }

{
"name": "ceri",
"description": "Custom Elements enRIched",
"version": "1.0.19",
"version": "1.0.20",
"homepage": "https://github.com/cerijs/",

@@ -6,0 +6,0 @@ "author": {

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