@expressive/mvc 0.6.1 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.esm.js +4 -3
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +4 -3
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -760,7 +760,8 @@ function factoryMode(self, output, key, required) {
|
|
|
760
760
|
}
|
|
761
761
|
|
|
762
762
|
const Oops$7 = issues({
|
|
763
|
-
BadSource: (model, property, got) =>
|
|
763
|
+
// BadSource: (model, property, got) =>
|
|
764
|
+
// `Bad from-instruction provided to ${model}.${property}. Expects an arrow-function or a Model as source. Got ${got}.`,
|
|
764
765
|
PeerNotAllowed: (model, property) => `Attempted to use an instruction result (probably use or tap) as computed source for ${model}.${property}. This is not possible.`,
|
|
765
766
|
ComputeFailed: (model, key) => `Generating initial value for ${model}.${key} failed.`,
|
|
766
767
|
NotReady: (model, key) => `Value ${model}.${key} value is not yet available.`,
|
|
@@ -776,8 +777,8 @@ function get(arg0, arg1, arg2) {
|
|
|
776
777
|
// Easy mistake, using a peer, will always be unresolved.
|
|
777
778
|
if (typeof arg0 == "symbol")
|
|
778
779
|
throw Oops$7.PeerNotAllowed(subject, key);
|
|
779
|
-
if
|
|
780
|
-
|
|
780
|
+
// if(typeof arg0 == "function" && /^[A-Z]/.test(arg0.name))
|
|
781
|
+
// throw Oops.BadSource(subject, key, arg0);
|
|
781
782
|
this.state.set(key, undefined);
|
|
782
783
|
const init = () => {
|
|
783
784
|
let source = this;
|