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.8 to 1.0.9

16

lib/#model.js

@@ -8,3 +8,3 @@ module.exports = {

"#": function(el, path, mods) {
var event;
var event, o;
event = (function() {

@@ -21,8 +21,10 @@ switch (el.type) {

})();
o = this.$path.toNameAndParent({
path: path
});
el.addEventListener(event, (function(_this) {
return function(e) {
return _this.$path.setValue({
path: path,
value: e.target.value
});
if (o.parent[o.name] !== e.target.value) {
return o.parent[o.name] = e.target.value;
}
};

@@ -32,4 +34,4 @@ })(this));

path: path,
cbs: function(value, oldVal) {
if (oldVal !== value) {
cbs: function(value) {
if (el.value !== value) {
return el.value = value;

@@ -36,0 +38,0 @@ }

@@ -193,3 +193,3 @@ var easing, isArray, step;

if (!o.stopped) {
return o.start = Number.MIN_VALUE;
return o.start = -1e9;
}

@@ -196,0 +196,0 @@ };

@@ -0,1 +1,5 @@

var isString;
isString = require("./_helpers").isString;
module.exports = {

@@ -5,2 +9,5 @@ _name: "class",

_rebind: "$class",
_mergers: require("./_merger").copy({
source: "initClass"
}),
methods: {

@@ -42,2 +49,22 @@ $class: {

}
},
connectedCallback: function() {
var k, ref, results, v;
if (this._isFirstConnect && (this.initClass != null)) {
if (isString(this.initClass)) {
return this.$class.setStr(this, this.initClass);
} else {
ref = this.initClass;
results = [];
for (k in ref) {
v = ref[k];
if (k === "this") {
results.push(this.$class.setStr(this, v));
} else {
results.push(this.$class.setStr(this[k], v));
}
}
return results;
}
}
}

@@ -44,0 +71,0 @@ };

@@ -46,3 +46,2 @@ var arrayize, clone, isArray, isFunction, isString, noop, ref;

cb = function() {
console.log("toggle " + obj.name);
return obj.parent[obj.name] = !obj.parent[obj.name];

@@ -49,0 +48,0 @@ };

@@ -31,3 +31,3 @@ module.exports = {

}
this.toggleAnimate = animate !== false;
this.toggleAnimate = animate = animate !== false;
this.opening = true;

@@ -63,3 +63,3 @@ this.openingOrOpen = true;

}
this.toggleAnimate = animate !== false;
this.toggleAnimate = animate = animate !== false;
this.closing = true;

@@ -66,0 +66,0 @@ this.openingOrOpen = false;

@@ -175,5 +175,12 @@ var attach, clone, close, dEl, detach, getAnimateObj, getLastItem, isString, noop, overlay, ref, s, stack;

if (val) {
return this.__overlay = this.$overlay();
if (!this.__overlay) {
return this.__overlay = this.$overlay();
}
} else {
return (ref1 = this.__overlay) != null ? typeof ref1.close === "function" ? ref1.close() : void 0 : void 0;
if ((ref1 = this.__overlay) != null) {
if (typeof ref1.close === "function") {
ref1.close();
}
}
return this.__overlay = null;
}

@@ -183,3 +190,5 @@ });

if (w.parent[w.name]) {
return this.__overlay = this.$overlay();
if (!this.__overlay) {
return this.__overlay = this.$overlay();
}
}

@@ -194,4 +203,9 @@ }

var ref1;
return (ref1 = this.__overlay) != null ? typeof ref1.close === "function" ? ref1.close() : void 0 : void 0;
if ((ref1 = this.__overlay) != null) {
if (typeof ref1.close === "function") {
ref1.close();
}
}
return this.__overlay = null;
}
};

@@ -63,2 +63,4 @@ var arrayize, camelize, isElement, isString, ref,

}
} else {
mods = {};
}

@@ -88,5 +90,2 @@ if (lookupObj != null) {

case "@":
if (mods == null) {
mods = {};
}
if (mods.toggle) {

@@ -93,0 +92,0 @@ mods.toggle = value;

@@ -12,2 +12,5 @@ var camelize, capitalize, isArray, prefixes, ref;

_prio: 700,
_mergers: require("./_merger").copy({
source: "initStyle"
}),
methods: {

@@ -14,0 +17,0 @@ $style: {

{
"name": "ceri",
"description": "Custom Elements enRIched",
"version": "1.0.8",
"version": "1.0.9",
"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