Comparing version 0.0.9-beta.2 to 0.0.9-beta.3
@@ -1,2 +0,2 @@ | ||
import Solid, { Utils, Queue } from 'solid-js'; | ||
import Solid, { Core, Utils, Queue, run } from 'solid-js'; | ||
@@ -28,3 +28,3 @@ var DEFINED, Handler; | ||
} | ||
if (!((ref = Solid.Core.context) != null ? ref.exec : void 0) || property === 'length' || typeof property === 'symbol') { | ||
if (!((ref = Core.context) != null ? ref.exec : void 0) || property === 'length' || typeof property === 'symbol') { | ||
return target[property]; | ||
@@ -42,3 +42,3 @@ } | ||
} | ||
Solid.Core.context.disposables.push(this.on(property, Solid.Core.context.exec).unsubscribe); | ||
Core.context.disposables.push(this.on(property, Core.context.exec).unsubscribe); | ||
return value; | ||
@@ -208,3 +208,3 @@ } | ||
} | ||
if ((ref = Solid.Core.context) != null) { | ||
if ((ref = Core.context) != null) { | ||
ref.disposables.push(this.dispose.bind(this)); | ||
@@ -216,7 +216,7 @@ } | ||
var args, ref; | ||
if ((ref = Solid.Core.context) != null ? ref.pure : void 0) { | ||
if ((ref = Core.context) != null ? ref.pure : void 0) { | ||
return console.log('Cannot update in a Selector'); | ||
} | ||
args = arguments; | ||
Solid.run(() => { | ||
run(() => { | ||
var change, changes, current, i, j, len, property, ref1, ref2, temp, value; | ||
@@ -257,3 +257,3 @@ if (args.length === 1) { | ||
changes = arguments[0]; | ||
Solid.run(() => { | ||
run(() => { | ||
var change, j, len; | ||
@@ -354,3 +354,3 @@ if (!Array.isArray(changes)) { | ||
var ref, value; | ||
if (!((ref = Solid.Core.context) != null ? ref.exec : void 0)) { | ||
if (!((ref = Core.context) != null ? ref.exec : void 0)) { | ||
return this._target[property]; | ||
@@ -368,3 +368,3 @@ } | ||
} | ||
Solid.Core.context.disposables.push(this.on(property, Solid.Core.context.exec).unsubscribe); | ||
Core.context.disposables.push(this.on(property, Core.context.exec).unsubscribe); | ||
return value; | ||
@@ -398,3 +398,3 @@ }, | ||
} | ||
this.stateClock = target.clock || Solid.Core.clock; | ||
this.stateClock = target.clock || Core.clock; | ||
} | ||
@@ -412,10 +412,10 @@ | ||
property = property.slice(0, -1); | ||
if (Solid.Core.context.exec) { | ||
if (Core.context.exec) { | ||
target[property] || (target[property] = { | ||
_subs: new Set(), | ||
clock: Solid.Core.clock | ||
clock: Core.clock | ||
}); | ||
(base = target[property])._subPath || (base._subPath = new Set()); | ||
target[property]._subPath.add(Solid.Core.context.exec); | ||
Solid.Core.context.disposables.push(target[property]._subPath.delete(Solid.Core.context.exec)); | ||
target[property]._subPath.add(Core.context.exec); | ||
Core.context.disposables.push(target[property]._subPath.delete(Core.context.exec)); | ||
} | ||
@@ -427,3 +427,3 @@ return this._target[property]; | ||
} | ||
if (!((ref = Solid.Core.context) != null ? ref.exec : void 0)) { | ||
if (!((ref = Core.context) != null ? ref.exec : void 0)) { | ||
return this._target[property]; | ||
@@ -436,3 +436,3 @@ } | ||
target[property] || (target[property] = { | ||
clock: Solid.Core.clock | ||
clock: Core.clock | ||
}); | ||
@@ -442,3 +442,3 @@ (base1 = target[property]).path || (base1.path = target.path.concat([property])); | ||
} | ||
Solid.Core.context.disposables.push(this.on(property, Solid.Core.context.exec).unsubscribe); | ||
Core.context.disposables.push(this.on(property, Core.context.exec).unsubscribe); | ||
return value; | ||
@@ -458,3 +458,3 @@ } | ||
target[property] || (target[property] = { | ||
clock: Solid.Core.clock | ||
clock: Core.clock | ||
}); | ||
@@ -511,3 +511,3 @@ (base = target[property])._subs || (base._subs = new Set()); | ||
this._target = current; | ||
return this.stateClock = Solid.Core.clock; | ||
return this.stateClock = Core.clock; | ||
} | ||
@@ -540,3 +540,3 @@ | ||
} | ||
if ((ref = Solid.Core.context) != null) { | ||
if ((ref = Core.context) != null) { | ||
ref.disposables.push(this.dispose.bind(this)); | ||
@@ -548,7 +548,7 @@ } | ||
var args, ref; | ||
if ((ref = Solid.Core.context) != null ? ref.pure : void 0) { | ||
if ((ref = Core.context) != null ? ref.pure : void 0) { | ||
return console.log('Cannot update in a Selector'); | ||
} | ||
args = arguments; | ||
return Solid.run(() => { | ||
return run(() => { | ||
var change, changes, j, k, l, len, len1, notify, path, property, ref1, ref2, ref3, state, subKeys, subPaths, subs, value; | ||
@@ -617,3 +617,3 @@ if (args.length === 1) { | ||
changes = arguments[0]; | ||
Solid.run(() => { | ||
run(() => { | ||
var change, j, len; | ||
@@ -707,3 +707,3 @@ if (!Array.isArray(changes)) { | ||
(base = this._subscriptions)[property] || (base[property] = { | ||
clock: Solid.Core.clock | ||
clock: Core.clock | ||
}); | ||
@@ -754,5 +754,5 @@ (base1 = this._subscriptions[property])._subs || (base1._subs = new Set()); | ||
if (currentState != null) { | ||
if (currentSubs.clock !== Solid.Core.clock) { | ||
if (currentSubs.clock !== Core.clock) { | ||
currentState[path[i]] = Utils.clone(currentState[path[i]]); | ||
currentSubs.clock = Solid.Core.clock; | ||
currentSubs.clock = Core.clock; | ||
} | ||
@@ -805,3 +805,3 @@ currentState = currentState[path[i]]; | ||
var base, base1, ref, value; | ||
if (!((ref = Solid.Core.context) != null ? ref.exec : void 0)) { | ||
if (!((ref = Core.context) != null ? ref.exec : void 0)) { | ||
return this._target[property]; | ||
@@ -814,3 +814,3 @@ } | ||
(base = this._subscriptions)[property] || (base[property] = { | ||
clock: Solid.Core.clock | ||
clock: Core.clock | ||
}); | ||
@@ -820,3 +820,3 @@ (base1 = this._subscriptions[property]).path || (base1.path = [property]); | ||
} | ||
Solid.Core.context.disposables.push(this.on(property, Solid.Core.context.exec).unsubscribe); | ||
Core.context.disposables.push(this.on(property, Core.context.exec).unsubscribe); | ||
return value; | ||
@@ -829,10 +829,10 @@ }, | ||
var base, base1, fn; | ||
if (fn = Solid.Core.context.exec) { | ||
if (fn = Core.context.exec) { | ||
(base = this._subscriptions)[property] || (base[property] = { | ||
_subs: new Set(), | ||
clock: Solid.Core.clock | ||
clock: Core.clock | ||
}); | ||
(base1 = this._subscriptions[property])._subPath || (base1._subPath = new Set()); | ||
this._subscriptions[property]._subPath.add(Solid.Core.context.exec); | ||
Solid.Core.context.disposables.push(() => { | ||
this._subscriptions[property]._subPath.add(Core.context.exec); | ||
Core.context.disposables.push(() => { | ||
return this._subscriptions[property]._subPath.delete(fn); | ||
@@ -839,0 +839,0 @@ }); |
@@ -35,3 +35,3 @@ 'use strict'; | ||
} | ||
if (!((ref = Solid__default.Core.context) != null ? ref.exec : void 0) || property === 'length' || typeof property === 'symbol') { | ||
if (!((ref = Solid.Core.context) != null ? ref.exec : void 0) || property === 'length' || typeof property === 'symbol') { | ||
return target[property]; | ||
@@ -49,3 +49,3 @@ } | ||
} | ||
Solid__default.Core.context.disposables.push(this.on(property, Solid__default.Core.context.exec).unsubscribe); | ||
Solid.Core.context.disposables.push(this.on(property, Solid.Core.context.exec).unsubscribe); | ||
return value; | ||
@@ -215,3 +215,3 @@ } | ||
} | ||
if ((ref = Solid__default.Core.context) != null) { | ||
if ((ref = Solid.Core.context) != null) { | ||
ref.disposables.push(this.dispose.bind(this)); | ||
@@ -223,7 +223,7 @@ } | ||
var args, ref; | ||
if ((ref = Solid__default.Core.context) != null ? ref.pure : void 0) { | ||
if ((ref = Solid.Core.context) != null ? ref.pure : void 0) { | ||
return console.log('Cannot update in a Selector'); | ||
} | ||
args = arguments; | ||
Solid__default.run(() => { | ||
Solid.run(() => { | ||
var change, changes, current, i, j, len, property, ref1, ref2, temp, value; | ||
@@ -264,3 +264,3 @@ if (args.length === 1) { | ||
changes = arguments[0]; | ||
Solid__default.run(() => { | ||
Solid.run(() => { | ||
var change, j, len; | ||
@@ -361,3 +361,3 @@ if (!Array.isArray(changes)) { | ||
var ref, value; | ||
if (!((ref = Solid__default.Core.context) != null ? ref.exec : void 0)) { | ||
if (!((ref = Solid.Core.context) != null ? ref.exec : void 0)) { | ||
return this._target[property]; | ||
@@ -375,3 +375,3 @@ } | ||
} | ||
Solid__default.Core.context.disposables.push(this.on(property, Solid__default.Core.context.exec).unsubscribe); | ||
Solid.Core.context.disposables.push(this.on(property, Solid.Core.context.exec).unsubscribe); | ||
return value; | ||
@@ -405,3 +405,3 @@ }, | ||
} | ||
this.stateClock = target.clock || Solid__default.Core.clock; | ||
this.stateClock = target.clock || Solid.Core.clock; | ||
} | ||
@@ -419,10 +419,10 @@ | ||
property = property.slice(0, -1); | ||
if (Solid__default.Core.context.exec) { | ||
if (Solid.Core.context.exec) { | ||
target[property] || (target[property] = { | ||
_subs: new Set(), | ||
clock: Solid__default.Core.clock | ||
clock: Solid.Core.clock | ||
}); | ||
(base = target[property])._subPath || (base._subPath = new Set()); | ||
target[property]._subPath.add(Solid__default.Core.context.exec); | ||
Solid__default.Core.context.disposables.push(target[property]._subPath.delete(Solid__default.Core.context.exec)); | ||
target[property]._subPath.add(Solid.Core.context.exec); | ||
Solid.Core.context.disposables.push(target[property]._subPath.delete(Solid.Core.context.exec)); | ||
} | ||
@@ -434,3 +434,3 @@ return this._target[property]; | ||
} | ||
if (!((ref = Solid__default.Core.context) != null ? ref.exec : void 0)) { | ||
if (!((ref = Solid.Core.context) != null ? ref.exec : void 0)) { | ||
return this._target[property]; | ||
@@ -443,3 +443,3 @@ } | ||
target[property] || (target[property] = { | ||
clock: Solid__default.Core.clock | ||
clock: Solid.Core.clock | ||
}); | ||
@@ -449,3 +449,3 @@ (base1 = target[property]).path || (base1.path = target.path.concat([property])); | ||
} | ||
Solid__default.Core.context.disposables.push(this.on(property, Solid__default.Core.context.exec).unsubscribe); | ||
Solid.Core.context.disposables.push(this.on(property, Solid.Core.context.exec).unsubscribe); | ||
return value; | ||
@@ -465,3 +465,3 @@ } | ||
target[property] || (target[property] = { | ||
clock: Solid__default.Core.clock | ||
clock: Solid.Core.clock | ||
}); | ||
@@ -518,3 +518,3 @@ (base = target[property])._subs || (base._subs = new Set()); | ||
this._target = current; | ||
return this.stateClock = Solid__default.Core.clock; | ||
return this.stateClock = Solid.Core.clock; | ||
} | ||
@@ -547,3 +547,3 @@ | ||
} | ||
if ((ref = Solid__default.Core.context) != null) { | ||
if ((ref = Solid.Core.context) != null) { | ||
ref.disposables.push(this.dispose.bind(this)); | ||
@@ -555,7 +555,7 @@ } | ||
var args, ref; | ||
if ((ref = Solid__default.Core.context) != null ? ref.pure : void 0) { | ||
if ((ref = Solid.Core.context) != null ? ref.pure : void 0) { | ||
return console.log('Cannot update in a Selector'); | ||
} | ||
args = arguments; | ||
return Solid__default.run(() => { | ||
return Solid.run(() => { | ||
var change, changes, j, k, l, len, len1, notify, path, property, ref1, ref2, ref3, state, subKeys, subPaths, subs, value; | ||
@@ -624,3 +624,3 @@ if (args.length === 1) { | ||
changes = arguments[0]; | ||
Solid__default.run(() => { | ||
Solid.run(() => { | ||
var change, j, len; | ||
@@ -714,3 +714,3 @@ if (!Array.isArray(changes)) { | ||
(base = this._subscriptions)[property] || (base[property] = { | ||
clock: Solid__default.Core.clock | ||
clock: Solid.Core.clock | ||
}); | ||
@@ -761,5 +761,5 @@ (base1 = this._subscriptions[property])._subs || (base1._subs = new Set()); | ||
if (currentState != null) { | ||
if (currentSubs.clock !== Solid__default.Core.clock) { | ||
if (currentSubs.clock !== Solid.Core.clock) { | ||
currentState[path[i]] = Solid.Utils.clone(currentState[path[i]]); | ||
currentSubs.clock = Solid__default.Core.clock; | ||
currentSubs.clock = Solid.Core.clock; | ||
} | ||
@@ -812,3 +812,3 @@ currentState = currentState[path[i]]; | ||
var base, base1, ref, value; | ||
if (!((ref = Solid__default.Core.context) != null ? ref.exec : void 0)) { | ||
if (!((ref = Solid.Core.context) != null ? ref.exec : void 0)) { | ||
return this._target[property]; | ||
@@ -821,3 +821,3 @@ } | ||
(base = this._subscriptions)[property] || (base[property] = { | ||
clock: Solid__default.Core.clock | ||
clock: Solid.Core.clock | ||
}); | ||
@@ -827,3 +827,3 @@ (base1 = this._subscriptions[property]).path || (base1.path = [property]); | ||
} | ||
Solid__default.Core.context.disposables.push(this.on(property, Solid__default.Core.context.exec).unsubscribe); | ||
Solid.Core.context.disposables.push(this.on(property, Solid.Core.context.exec).unsubscribe); | ||
return value; | ||
@@ -836,10 +836,10 @@ }, | ||
var base, base1, fn; | ||
if (fn = Solid__default.Core.context.exec) { | ||
if (fn = Solid.Core.context.exec) { | ||
(base = this._subscriptions)[property] || (base[property] = { | ||
_subs: new Set(), | ||
clock: Solid__default.Core.clock | ||
clock: Solid.Core.clock | ||
}); | ||
(base1 = this._subscriptions[property])._subPath || (base1._subPath = new Set()); | ||
this._subscriptions[property]._subPath.add(Solid__default.Core.context.exec); | ||
Solid__default.Core.context.disposables.push(() => { | ||
this._subscriptions[property]._subPath.add(Solid.Core.context.exec); | ||
Solid.Core.context.disposables.push(() => { | ||
return this._subscriptions[property]._subPath.delete(fn); | ||
@@ -846,0 +846,0 @@ }); |
{ | ||
"name": "solid-js", | ||
"description": "A declarative JavaScript library for building user interfaces.", | ||
"version": "0.0.9-beta.2", | ||
"version": "0.0.9-beta.3", | ||
"author": "Ryan Carniato", | ||
@@ -6,0 +6,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
111288