@nlozgachev/pipelined 0.30.0 → 0.31.0
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/{chunk-PV7JOUKL.mjs → chunk-VIC54JR4.mjs} +0 -4
- package/dist/core.d.mts +0 -15
- package/dist/core.d.ts +0 -15
- package/dist/core.js +0 -4
- package/dist/core.mjs +1 -1
- package/dist/index.js +0 -4
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -956,10 +956,6 @@ var Op;
|
|
|
956
956
|
Op2.wire = (source, f) => source.subscribe((state) => {
|
|
957
957
|
if ((0, Op2.isOk)(state)) f(state.value);
|
|
958
958
|
});
|
|
959
|
-
Op2.wireAll = (...pairs) => {
|
|
960
|
-
const cleanups = pairs.map(([source, f]) => (0, Op2.wire)(source, f));
|
|
961
|
-
return () => cleanups.forEach((c) => c());
|
|
962
|
-
};
|
|
963
959
|
function interpret(op, options) {
|
|
964
960
|
const { strategy, retry: retryOptions, timeout: timeoutOptions } = options;
|
|
965
961
|
switch (strategy) {
|
package/dist/core.d.mts
CHANGED
|
@@ -1053,21 +1053,6 @@ declare namespace Op {
|
|
|
1053
1053
|
* ```
|
|
1054
1054
|
*/
|
|
1055
1055
|
const wire: <I, E, A, S extends State<E, A>>(source: Manager<I, E, A, S>, f: (a: A) => void) => () => void;
|
|
1056
|
-
/**
|
|
1057
|
-
* Wires multiple source-handler pairs, returning a combined cleanup function.
|
|
1058
|
-
* When any source reaches `OpOk`, its corresponding handler is called.
|
|
1059
|
-
*
|
|
1060
|
-
* @example
|
|
1061
|
-
* ```ts
|
|
1062
|
-
* const stop = Op.wireAll(
|
|
1063
|
-
* [userManager, (u) => render(u)],
|
|
1064
|
-
* [settingsManager, (s) => applySettings(s)],
|
|
1065
|
-
* );
|
|
1066
|
-
* // ... later
|
|
1067
|
-
* stop(); // removes all subscriptions
|
|
1068
|
-
* ```
|
|
1069
|
-
*/
|
|
1070
|
-
const wireAll: <I, E, A, S extends State<E, A>>(...pairs: Array<[Manager<I, E, A, S>, (a: A) => void]>) => () => void;
|
|
1071
1056
|
/**
|
|
1072
1057
|
* Attaches a concurrency strategy to an `Op`, returning a `Manager`.
|
|
1073
1058
|
*
|
package/dist/core.d.ts
CHANGED
|
@@ -1053,21 +1053,6 @@ declare namespace Op {
|
|
|
1053
1053
|
* ```
|
|
1054
1054
|
*/
|
|
1055
1055
|
const wire: <I, E, A, S extends State<E, A>>(source: Manager<I, E, A, S>, f: (a: A) => void) => () => void;
|
|
1056
|
-
/**
|
|
1057
|
-
* Wires multiple source-handler pairs, returning a combined cleanup function.
|
|
1058
|
-
* When any source reaches `OpOk`, its corresponding handler is called.
|
|
1059
|
-
*
|
|
1060
|
-
* @example
|
|
1061
|
-
* ```ts
|
|
1062
|
-
* const stop = Op.wireAll(
|
|
1063
|
-
* [userManager, (u) => render(u)],
|
|
1064
|
-
* [settingsManager, (s) => applySettings(s)],
|
|
1065
|
-
* );
|
|
1066
|
-
* // ... later
|
|
1067
|
-
* stop(); // removes all subscriptions
|
|
1068
|
-
* ```
|
|
1069
|
-
*/
|
|
1070
|
-
const wireAll: <I, E, A, S extends State<E, A>>(...pairs: Array<[Manager<I, E, A, S>, (a: A) => void]>) => () => void;
|
|
1071
1056
|
/**
|
|
1072
1057
|
* Attaches a concurrency strategy to an `Op`, returning a `Manager`.
|
|
1073
1058
|
*
|
package/dist/core.js
CHANGED
|
@@ -1067,10 +1067,6 @@ var Op;
|
|
|
1067
1067
|
Op2.wire = (source, f) => source.subscribe((state) => {
|
|
1068
1068
|
if ((0, Op2.isOk)(state)) f(state.value);
|
|
1069
1069
|
});
|
|
1070
|
-
Op2.wireAll = (...pairs) => {
|
|
1071
|
-
const cleanups = pairs.map(([source, f]) => (0, Op2.wire)(source, f));
|
|
1072
|
-
return () => cleanups.forEach((c) => c());
|
|
1073
|
-
};
|
|
1074
1070
|
function interpret(op, options) {
|
|
1075
1071
|
const { strategy, retry: retryOptions, timeout: timeoutOptions } = options;
|
|
1076
1072
|
switch (strategy) {
|
package/dist/core.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -1312,10 +1312,6 @@ var Op;
|
|
|
1312
1312
|
Op2.wire = (source, f) => source.subscribe((state) => {
|
|
1313
1313
|
if ((0, Op2.isOk)(state)) f(state.value);
|
|
1314
1314
|
});
|
|
1315
|
-
Op2.wireAll = (...pairs) => {
|
|
1316
|
-
const cleanups = pairs.map(([source, f]) => (0, Op2.wire)(source, f));
|
|
1317
|
-
return () => cleanups.forEach((c) => c());
|
|
1318
|
-
};
|
|
1319
1315
|
function interpret(op, options) {
|
|
1320
1316
|
const { strategy, retry: retryOptions, timeout: timeoutOptions } = options;
|
|
1321
1317
|
switch (strategy) {
|
package/dist/index.mjs
CHANGED