exupery-core-async 0.3.41 → 0.3.43
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.
|
@@ -20,5 +20,4 @@ export declare namespace p {
|
|
|
20
20
|
const parallel_without_transforming_the_error: <Error, Entry_Error>(dictionary: _et.Dictionary<_et.Command_Promise<Entry_Error>>) => _et.Command_Promise<_et.Dictionary<Entry_Error>>;
|
|
21
21
|
}
|
|
22
22
|
const sequence: <Error>(steps: _et.Command_Promise<Error>[]) => _et.Command_Promise<Error>;
|
|
23
|
-
const if_refiner_succeeds_deprecated: <Procedure_Input, Refinement_Error, Error>(precondition: _et.Refinement_Result<Procedure_Input, Refinement_Error>, error_transformer: _et.Transformer_Without_Parameters<Refinement_Error, Error>, procedure: Basic_Command<Procedure_Input, Error>) => _et.Command_Promise<Error>;
|
|
24
23
|
}
|
package/dist/command/actions.js
CHANGED
|
@@ -244,15 +244,4 @@ var p;
|
|
|
244
244
|
}
|
|
245
245
|
});
|
|
246
246
|
};
|
|
247
|
-
p.if_refiner_succeeds_deprecated = (precondition, error_transformer, procedure) => {
|
|
248
|
-
return (0, create_command_promise_1.__create_command_promise)({
|
|
249
|
-
'execute': (on_success, on_error) => {
|
|
250
|
-
precondition.process(($) => {
|
|
251
|
-
procedure($).__start(on_success, on_error);
|
|
252
|
-
}, (e) => {
|
|
253
|
-
on_error(error_transformer(e));
|
|
254
|
-
});
|
|
255
|
-
}
|
|
256
|
-
});
|
|
257
|
-
};
|
|
258
247
|
})(p || (exports.p = p = {}));
|
|
@@ -21,9 +21,18 @@ const __create_command = (handler) => {
|
|
|
21
21
|
handler($).__start(on_success, (error) => {
|
|
22
22
|
on_error(transform_error(error));
|
|
23
23
|
});
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
}, on_error);
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
},
|
|
28
|
+
'refiner': (transform_error, refiner) => {
|
|
29
|
+
return (0, create_command_promise_1.__create_command_promise)({
|
|
30
|
+
'execute': (on_success, on_error) => {
|
|
31
|
+
refiner.process(($) => {
|
|
32
|
+
handler($).__start(on_success, (error) => {
|
|
33
|
+
on_error(transform_error(error));
|
|
34
|
+
});
|
|
35
|
+
}, on_error);
|
|
27
36
|
}
|
|
28
37
|
});
|
|
29
38
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "exupery-core-async",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.43",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"author": "Corno",
|
|
6
6
|
"description": "async types for Exupery",
|
|
@@ -22,6 +22,6 @@
|
|
|
22
22
|
"url": "git+https://github.com/corno/exupery-core.git"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"exupery-core-internals": "^0.3.
|
|
25
|
+
"exupery-core-internals": "^0.3.2"
|
|
26
26
|
}
|
|
27
27
|
}
|