exupery-core-async 0.3.49 → 0.3.51

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.
@@ -8,18 +8,18 @@ export declare namespace p {
8
8
  namespace conditional {
9
9
  const direct: <Error>(precondition: boolean, procedure: _et.Command_Promise<Error>, else_procedure?: _et.Command_Promise<Error>) => _et.Command_Promise<Error>;
10
10
  const query: <Error>(precondition: _et.Data_Preparation_Result<boolean, Error>, procedure: _et.Command_Promise<Error>, else_procedure?: _et.Command_Promise<Error>) => _et.Command_Promise<Error>;
11
- const procedure: <Procedure_Input, Error>(precondition: _et.Data_Preparation_Result<Procedure_Input, Error>, procedure: Basic_Command<Procedure_Input, Error>) => _et.Command_Promise<Error>;
11
+ const procedure: <Procedure_Input, Error>(precondition: _et.Data_Preparation_Result<Procedure_Input, Error>, procedure: Basic_Command<Error, Procedure_Input>) => _et.Command_Promise<Error>;
12
12
  }
13
13
  namespace list {
14
- 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>;
14
+ const parallel: <Error, Element_Error>(the_array: _et.Array<_et.Command_Promise<Element_Error>>, aggregate_errors: _et.Transformer_Without_Parameters<Error, _et.Array<Element_Error>>) => _et.Command_Promise<Error>;
15
15
  const serie: <Error>(array: _et.Array<_et.Command_Promise<Error>>) => _et.Command_Promise<Error>;
16
16
  }
17
17
  namespace dictionary {
18
18
  namespace parallel {
19
- const direct: <T, Error, Entry_Error>(dictionary: _et.Dictionary<T>, callback: (value: T, key: string) => _et.Command_Promise<Entry_Error>, aggregate_errors: _et.Transformer_Without_Parameters<_et.Dictionary<Entry_Error>, Error>) => _et.Command_Promise<Error>;
20
- const query: <T, Error, Entry_Error>(query: _et.Data_Preparation_Result<_et.Dictionary<T>, Error>, callback: (value: T, key: string) => _et.Command_Promise<Entry_Error>, aggregate_errors: _et.Transformer_Without_Parameters<_et.Dictionary<Entry_Error>, Error>) => _et.Command_Promise<Error>;
19
+ const direct: <T, Error, Entry_Error>(dictionary: _et.Dictionary<T>, callback: (value: T, key: string) => _et.Command_Promise<Entry_Error>, aggregate_errors: _et.Transformer_Without_Parameters<Error, _et.Dictionary<Entry_Error>>) => _et.Command_Promise<Error>;
20
+ const query: <T, Error, Entry_Error>(query: _et.Data_Preparation_Result<_et.Dictionary<T>, Error>, callback: (value: T, key: string) => _et.Command_Promise<Entry_Error>, aggregate_errors: _et.Transformer_Without_Parameters<Error, _et.Dictionary<Entry_Error>>) => _et.Command_Promise<Error>;
21
21
  }
22
- const serie: <Error, Entry_Error>(dictionary: _et.Dictionary<_et.Command_Promise<Entry_Error>>, transform_error: _et.Transformer_Without_Parameters<_et.Key_Value_Pair<Entry_Error>, Error>) => _et.Command_Promise<Error>;
22
+ const serie: <Error, Entry_Error>(dictionary: _et.Dictionary<_et.Command_Promise<Entry_Error>>, transform_error: _et.Transformer_Without_Parameters<Error, _et.Key_Value_Pair<Entry_Error>>) => _et.Command_Promise<Error>;
23
23
  const parallel_without_transforming_the_error: <Error, Entry_Error>(dictionary: _et.Dictionary<_et.Command_Promise<Entry_Error>>) => _et.Command_Promise<_et.Dictionary<Entry_Error>>;
24
24
  }
25
25
  const sequence: <Error>(steps: _et.Command_Promise<Error>[]) => _et.Command_Promise<Error>;
@@ -1,2 +1,2 @@
1
1
  import * as _et from 'exupery-core-types';
2
- export declare const create_command_procedure: <Parameters, Error, Variables, Query_Resources, Command_Resources>(variables_handler: ($q: Query_Resources, $p: Parameters) => _et.Data_Preparation_Result<Variables, Error>, execution_handler: ($c: Command_Resources, $p: Parameters, $v: Variables) => _et.Command_Promise<Error>) => _et.Command_Procedure<Parameters, Error, Query_Resources, Command_Resources>;
2
+ export declare const create_command_procedure: <Error, Parameters, Command_Resources, Query_Resources>(execution_handler: ($c: Command_Resources, $p: Parameters) => _et.Command_Promise<Error>) => _et.Command_Procedure<Error, Parameters, Command_Resources, Query_Resources>;
@@ -2,17 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.create_command_procedure = void 0;
4
4
  const create_command_promise_1 = require("./create_command_promise");
5
- const create_command_procedure = (variables_handler, execution_handler) => {
5
+ const create_command_procedure = (execution_handler) => {
6
6
  return ($q, $c) => {
7
7
  return {
8
8
  'execute': (parameters, transform_error) => {
9
9
  return (0, create_command_promise_1.__create_command_promise)({
10
10
  'execute': (on_success, on_error) => {
11
- variables_handler($q, parameters).__extract_data(($) => {
12
- execution_handler($c, parameters, $).__start(on_success, ($) => {
13
- on_error(transform_error($));
14
- });
15
- }, ($) => {
11
+ execution_handler($c, parameters).__start(on_success, ($) => {
16
12
  on_error(transform_error($));
17
13
  });
18
14
  }
@@ -22,4 +18,4 @@ const create_command_procedure = (variables_handler, execution_handler) => {
22
18
  };
23
19
  };
24
20
  exports.create_command_procedure = create_command_procedure;
25
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JlYXRlX2NvbW1hbmRfcHJvY2VkdXJlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NvbW1hbmQvY3JlYXRlcnMvY3JlYXRlX2NvbW1hbmRfcHJvY2VkdXJlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUdBLHFFQUFtRTtBQUU1RCxNQUFNLHdCQUF3QixHQUFHLENBQ3BDLGlCQUdrRCxFQUNsRCxpQkFJK0IsRUFDNkMsRUFBRTtJQUM5RSxPQUFPLENBQUMsRUFBRSxFQUFFLEVBQUUsRUFBRSxFQUFFO1FBQ2QsT0FBTztZQUVILFNBQVMsRUFBRSxDQUFDLFVBQVUsRUFBRSxlQUFlLEVBQUUsRUFBRTtnQkFDdkMsT0FBTyxJQUFBLGlEQUF3QixFQUFDO29CQUM1QixTQUFTLEVBQUUsQ0FBQyxVQUFVLEVBQUUsUUFBUSxFQU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xFQUFFLGVBQWUsRUFBRSxFQUFFO2dCQUN2QyxPQUFPLElBQUEsaURBQXdCLEVBQUM7b0JBQzVCLFNBQVMsRUFBRSxDQUFDLFVBQVUsRUFBRSxRQUFRLEVBQUUsRUFBRTt3QkFDaEMsaUJBQWlCLENBQUMsRUFBRSxFQUFFLFVBQVUsQ0FBQyxDQUFDLE9BQU8sQ0FDckMsVUFBVSxFQUNWLENBQUMsQ0FBQyxFQUFFLEVBQUU7NEJBQ0YsUUFBUSxDQUNKLGVBQWUsQ0FBQyxDQUFDLENBQUMsQ0FDckIsQ0FBQTt3QkFDTCxDQUFDLENBQ0osQ0FBQTtvQkFDTCxDQUFDO2lCQUNKLENBQUMsQ0FBQTtZQUNOLENBQUM7U0FDSixDQUFBO0lBQ0wsQ0FBQyxDQUFBO0FBQ0wsQ0FBQyxDQUFBO0FBeEJZLFFBQUEsd0JBQXdCLDRCQXdCcEMifQ==
@@ -1,3 +1,3 @@
1
1
  import * as _et from 'exupery-core-types';
2
- export type Basic_Command<Parameters, Error> = ($: Parameters) => _et.Command_Promise<Error>;
3
- export declare const __create_resource_command: <Parameters, Error, Query_Resources, Command_Resources>(handler: Basic_Command<Parameters, Error>) => _et.Command<Parameters, Error>;
2
+ export type Basic_Command<Error, Parameters> = ($: Parameters) => _et.Command_Promise<Error>;
3
+ export declare const __create_resource_command: <Error, Parameters, Query_Resources, Command_Resources>(handler: Basic_Command<Error, Parameters>) => _et.Command<Error, Parameters>;
@@ -1,6 +1,6 @@
1
1
  import * as _et from 'exupery-core-types';
2
2
  export declare namespace q {
3
- const dictionary_parallel: <Result, Error, Entry_Error>(dictionary: _et.Dictionary<_et.Data_Preparation_Result<Result, Entry_Error>>, aggregate_errors: _et.Transformer_Without_Parameters<_et.Dictionary<Entry_Error>, Error>) => _et.Data_Preparation_Result<_et.Dictionary<Result>, Error>;
3
+ const dictionary_parallel: <Result, Error, Entry_Error>(dictionary: _et.Dictionary<_et.Data_Preparation_Result<Result, Entry_Error>>, aggregate_errors: _et.Transformer_Without_Parameters<Error, _et.Dictionary<Entry_Error>>) => _et.Data_Preparation_Result<_et.Dictionary<Result>, Error>;
4
4
  const dictionary_parallel_without_error_aggregation: <Result, Error>($: _et.Dictionary<_et.Data_Preparation_Result<Result, Error>>) => _et.Data_Preparation_Result<_et.Dictionary<Result>, _et.Dictionary<Error>>;
5
5
  const fixed: <Result, Error>(result: Result) => _et.Data_Preparation_Result<Result, Error>;
6
6
  const raise_error: <T, E>($: E) => _et.Data_Preparation_Result<T, E>;
@@ -1,2 +1,2 @@
1
1
  import * as _et from 'exupery-core-types';
2
- export declare const create_query_procedure: <Parameters, Result, Error, Queries>(handler: ($q: Queries, $p: Parameters) => _et.Data_Preparation_Result<Result, Error>) => _et.Query_Procedure<Parameters, Result, Error, Queries>;
2
+ export declare const create_query_procedure: <Result, Error, Parameters, Queries>(handler: ($q: Queries, $p: Parameters) => _et.Data_Preparation_Result<Result, Error>) => _et.Query_Procedure<Result, Error, Parameters, Queries>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exupery-core-async",
3
- "version": "0.3.49",
3
+ "version": "0.3.51",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Corno",
6
6
  "description": "async types for Exupery",
@@ -22,7 +22,7 @@
22
22
  "url": "git+https://github.com/corno/exupery-core.git"
23
23
  },
24
24
  "dependencies": {
25
- "exupery-core-internals": "^0.3.8",
26
- "exupery-core-types": "^0.3.34"
25
+ "exupery-core-internals": "^0.3.9",
26
+ "exupery-core-types": "^0.3.38"
27
27
  }
28
28
  }