exupery-core-async 0.3.39 → 0.3.40
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/command/actions.d.ts +3 -3
- package/dist/command/actions.js +15 -15
- package/package.json +1 -1
|
@@ -9,11 +9,10 @@ export declare namespace p {
|
|
|
9
9
|
const direct: <Error>(precondition: boolean, procedure: _et.Command_Promise<Error>) => _et.Command_Promise<Error>;
|
|
10
10
|
const query: <Error>(precondition: _et.Query_Promise<boolean, Error>, procedure: _et.Command_Promise<Error>) => _et.Command_Promise<Error>;
|
|
11
11
|
const procedure: <Procedure_Input, Error>(precondition: _et.Process_Result<Procedure_Input, Error>, procedure: Basic_Command<Procedure_Input, Error>) => _et.Command_Promise<Error>;
|
|
12
|
-
const transformer: <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>;
|
|
13
12
|
}
|
|
14
13
|
namespace execute {
|
|
15
|
-
const direct: <Parameters, Error>(procedure: _et.Command<Parameters, Error>, parameters: Parameters) => _et.Command_Promise<Error>;
|
|
16
|
-
const query: <Parameters, Error>(procedure: _et.Command<Parameters, Error>, query: _et.Query_Promise<Parameters, Error>) => _et.Command_Promise<Error>;
|
|
14
|
+
const direct: <Parameters, Error, Procedure_Error>(procedure: _et.Command<Parameters, Procedure_Error>, error_transformer: _et.Transformer_Without_Parameters<Procedure_Error, Error>, parameters: Parameters) => _et.Command_Promise<Error>;
|
|
15
|
+
const query: <Parameters, Error, Procedure_Error>(procedure: _et.Command<Parameters, Procedure_Error>, error_transformer: _et.Transformer_Without_Parameters<Procedure_Error, Error>, query: _et.Query_Promise<Parameters, Error>) => _et.Command_Promise<Error>;
|
|
17
16
|
}
|
|
18
17
|
namespace list {
|
|
19
18
|
const parallel: <Error, Element_Error>(the_array: _et.Array<_et.Command_Promise<Element_Error>>, aggregate_errors: _et.Transformer_Without_Parameters<_et.Array<Element_Error>, Error>) => _et.Command_Promise<Error>;
|
|
@@ -25,4 +24,5 @@ export declare namespace p {
|
|
|
25
24
|
const parallel_without_transforming_the_error: <Error, Entry_Error>(dictionary: _et.Dictionary<_et.Command_Promise<Entry_Error>>) => _et.Command_Promise<_et.Dictionary<Entry_Error>>;
|
|
26
25
|
}
|
|
27
26
|
const sequence: <Error>(steps: _et.Command_Promise<Error>[]) => _et.Command_Promise<Error>;
|
|
27
|
+
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>;
|
|
28
28
|
}
|
package/dist/command/actions.js
CHANGED
|
@@ -96,28 +96,17 @@ var p;
|
|
|
96
96
|
}
|
|
97
97
|
});
|
|
98
98
|
};
|
|
99
|
-
conditional.transformer = (precondition, error_transformer, procedure) => {
|
|
100
|
-
return (0, create_command_promise_1.__create_command_promise)({
|
|
101
|
-
'execute': (on_success, on_error) => {
|
|
102
|
-
precondition.process(($) => {
|
|
103
|
-
procedure($).__start(on_success, on_error);
|
|
104
|
-
}, (e) => {
|
|
105
|
-
on_error(error_transformer(e));
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
|
-
};
|
|
110
99
|
})(conditional = p.conditional || (p.conditional = {}));
|
|
111
100
|
let execute;
|
|
112
101
|
(function (execute) {
|
|
113
|
-
execute.direct = (procedure, parameters) => {
|
|
114
|
-
return procedure['execute with synchronous data
|
|
102
|
+
execute.direct = (procedure, error_transformer, parameters) => {
|
|
103
|
+
return procedure['execute with synchronous data'](parameters, error_transformer);
|
|
115
104
|
};
|
|
116
|
-
execute.query = (procedure, query) => {
|
|
105
|
+
execute.query = (procedure, error_transformer, query) => {
|
|
117
106
|
return (0, create_command_promise_1.__create_command_promise)({
|
|
118
107
|
'execute': (on_success, on_error) => {
|
|
119
108
|
query.__start((query_result) => {
|
|
120
|
-
procedure['execute with synchronous data
|
|
109
|
+
procedure['execute with synchronous data'](query_result, error_transformer).__start(on_success, on_error);
|
|
121
110
|
}, on_error);
|
|
122
111
|
}
|
|
123
112
|
});
|
|
@@ -270,4 +259,15 @@ var p;
|
|
|
270
259
|
}
|
|
271
260
|
});
|
|
272
261
|
};
|
|
262
|
+
p.if_refiner_succeeds_deprecated = (precondition, error_transformer, procedure) => {
|
|
263
|
+
return (0, create_command_promise_1.__create_command_promise)({
|
|
264
|
+
'execute': (on_success, on_error) => {
|
|
265
|
+
precondition.process(($) => {
|
|
266
|
+
procedure($).__start(on_success, on_error);
|
|
267
|
+
}, (e) => {
|
|
268
|
+
on_error(error_transformer(e));
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
});
|
|
272
|
+
};
|
|
273
273
|
})(p || (exports.p = p = {}));
|