@webkrafters/eagleeye 1.0.0-beta.3 → 1.0.0-beta.4
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/dist/main/index.js +9 -20
- package/package.json +1 -1
package/dist/main/index.js
CHANGED
|
@@ -566,22 +566,11 @@ var EagleEyeContext = function () {
|
|
|
566
566
|
this.prehooks = prehooks;
|
|
567
567
|
this.storage = storage;
|
|
568
568
|
this._store = this._createInternalStore();
|
|
569
|
-
var ctx = this;
|
|
570
569
|
this._storeRef = {
|
|
571
|
-
getState:
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
resetState: function resetState() {
|
|
576
|
-
var propertyPaths = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
577
|
-
return ctx._store.resetState(propertyPaths);
|
|
578
|
-
},
|
|
579
|
-
setState: function setState(changes) {
|
|
580
|
-
return ctx._store.setState(changes);
|
|
581
|
-
},
|
|
582
|
-
subscribe: function subscribe(eventType, listener) {
|
|
583
|
-
return ctx._store.subscribe(eventType, listener);
|
|
584
|
-
}
|
|
570
|
+
getState: this._store.getState,
|
|
571
|
+
resetState: this._store.resetState,
|
|
572
|
+
setState: this._store.setState,
|
|
573
|
+
subscribe: this._store.subscribe
|
|
585
574
|
};
|
|
586
575
|
}
|
|
587
576
|
return _createClass(EagleEyeContext, [{
|
|
@@ -759,18 +748,18 @@ var EagleEyeContext = function () {
|
|
|
759
748
|
get closed() {
|
|
760
749
|
return !connection;
|
|
761
750
|
},
|
|
762
|
-
getState: function getState(
|
|
751
|
+
getState: function getState() {
|
|
752
|
+
var propertyPaths = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
763
753
|
return ctx.getState(connection, propertyPaths);
|
|
764
754
|
},
|
|
765
|
-
resetState: function resetState(
|
|
755
|
+
resetState: function resetState() {
|
|
756
|
+
var propertyPaths = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
766
757
|
return ctx.resetState(connection, propertyPaths);
|
|
767
758
|
},
|
|
768
759
|
setState: function setState(changes) {
|
|
769
760
|
return ctx.setState(connection, changes);
|
|
770
761
|
},
|
|
771
|
-
subscribe:
|
|
772
|
-
return ctx.subscribe(eventType, listener);
|
|
773
|
-
}
|
|
762
|
+
subscribe: ctx.subscribe.bind(ctx)
|
|
774
763
|
};
|
|
775
764
|
}
|
|
776
765
|
}, {
|
package/package.json
CHANGED