@ngxs/store 18.1.5-dev.master-c73c22f → 18.1.5-dev.master-e14b71b

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngxs/store",
3
- "version": "18.1.5-dev.master-c73c22f",
3
+ "version": "18.1.5-dev.master-e14b71b",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
@@ -32,18 +32,18 @@
32
32
  "esm": "./esm2022/internals/ngxs-store-internals.mjs",
33
33
  "default": "./fesm2022/ngxs-store-internals.mjs"
34
34
  },
35
- "./plugins": {
36
- "types": "./plugins/index.d.ts",
37
- "esm2022": "./esm2022/plugins/ngxs-store-plugins.mjs",
38
- "esm": "./esm2022/plugins/ngxs-store-plugins.mjs",
39
- "default": "./fesm2022/ngxs-store-plugins.mjs"
40
- },
41
35
  "./operators": {
42
36
  "types": "./operators/index.d.ts",
43
37
  "esm2022": "./esm2022/operators/ngxs-store-operators.mjs",
44
38
  "esm": "./esm2022/operators/ngxs-store-operators.mjs",
45
39
  "default": "./fesm2022/ngxs-store-operators.mjs"
46
40
  },
41
+ "./plugins": {
42
+ "types": "./plugins/index.d.ts",
43
+ "esm2022": "./esm2022/plugins/ngxs-store-plugins.mjs",
44
+ "esm": "./esm2022/plugins/ngxs-store-plugins.mjs",
45
+ "default": "./fesm2022/ngxs-store-plugins.mjs"
46
+ },
47
47
  "./internals/testing": {
48
48
  "types": "./internals/testing/index.d.ts",
49
49
  "esm2022": "./esm2022/internals/testing/ngxs-store-internals-testing.mjs",
@@ -1,26 +0,0 @@
1
- /**
2
- * Composes a array of functions from left to right. Example:
3
- *
4
- * compose([fn, final])(state, action);
5
- *
6
- * then the funcs have a signature like:
7
- *
8
- * function fn (state, action, next) {
9
- * console.log('here', state, action, next);
10
- * return next(state, action);
11
- * }
12
- *
13
- * function final (state, action) {
14
- * console.log('here', state, action);
15
- * return state;
16
- * }
17
- *
18
- * the last function should not call `next`.
19
- *
20
- * @ignore
21
- */
22
- export const compose = (funcs) => (...args) => {
23
- const curr = funcs.shift();
24
- return curr(...args, (...nextArgs) => compose(funcs)(...nextArgs));
25
- };
26
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9zZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3N0b3JlL3NyYy91dGlscy9jb21wb3NlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBOzs7Ozs7Ozs7Ozs7Ozs7Ozs7OztHQW9CRztBQUNILE1BQU0sQ0FBQyxNQUFNLE9BQU8sR0FDbEIsQ0FBQyxLQUFnQixFQUFFLEVBQUUsQ0FDckIsQ0FBQyxHQUFHLElBQVcsRUFBRSxFQUFFO0lBQ2pCLE1BQU0sSUFBSSxHQUFHLEtBQUssQ0FBQyxLQUFLLEVBQUcsQ0FBQztJQUM1QixPQUFPLElBQUksQ0FBQyxHQUFHLElBQUksRUFBRSxDQUFDLEdBQUcsUUFBZSxFQUFFLEVBQUUsQ0FBQyxPQUFPLENBQUMsS0FBSyxDQUFDLENBQUMsR0FBRyxRQUFRLENBQUMsQ0FBQyxDQUFDO0FBQzVFLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB0eXBlIFN0YXRlRm4gPSAoLi4uYXJnczogYW55W10pID0+IGFueTtcblxuLyoqXG4gKiBDb21wb3NlcyBhIGFycmF5IG9mIGZ1bmN0aW9ucyBmcm9tIGxlZnQgdG8gcmlnaHQuIEV4YW1wbGU6XG4gKlxuICogICAgICBjb21wb3NlKFtmbiwgZmluYWxdKShzdGF0ZSwgYWN0aW9uKTtcbiAqXG4gKiB0aGVuIHRoZSBmdW5jcyBoYXZlIGEgc2lnbmF0dXJlIGxpa2U6XG4gKlxuICogICAgICBmd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