exupery-core-async 0.3.11 → 0.3.12

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/index.d.ts CHANGED
@@ -5,6 +5,7 @@ export * from "./algorithms/procedure/initialize_procedure";
5
5
  export * from "./shorthands";
6
6
  export * from "./procedure/assert_async";
7
7
  export * from "./procedure/assert_sync";
8
+ export * from "./procedure/execute_with_async_data";
8
9
  export * from "./procedure/conditional_async";
9
10
  export * from "./procedure/conditional_multiple";
10
11
  export * from "./procedure/conditional_sync";
package/dist/index.js CHANGED
@@ -24,6 +24,7 @@ __exportStar(require("./shorthands"), exports);
24
24
  // procedure exports
25
25
  __exportStar(require("./procedure/assert_async"), exports);
26
26
  __exportStar(require("./procedure/assert_sync"), exports);
27
+ __exportStar(require("./procedure/execute_with_async_data"), exports);
27
28
  __exportStar(require("./procedure/conditional_async"), exports);
28
29
  __exportStar(require("./procedure/conditional_multiple"), exports);
29
30
  __exportStar(require("./procedure/conditional_sync"), exports);
@@ -0,0 +1,2 @@
1
+ import * as _et from "exupery-core-types";
2
+ export declare const execute_with_async_data: <Parameters, Error>(procedure: _et.Procedure_Primed_With_Resources<Parameters, Error>, query: _et.Query_Promise<Parameters, Error>) => _et.Procedure_Promise<Error>;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.execute_with_async_data = void 0;
4
+ const initialize_procedure_1 = require("../algorithms/procedure/initialize_procedure");
5
+ const execute_with_async_data = (procedure, query) => {
6
+ return (0, initialize_procedure_1.__create_procedure)({
7
+ 'execute': (on_success, on_exception) => {
8
+ query.__start((query_result) => {
9
+ procedure(query_result).__start(on_success, on_exception);
10
+ }, on_exception);
11
+ }
12
+ });
13
+ };
14
+ exports.execute_with_async_data = execute_with_async_data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exupery-core-async",
3
- "version": "0.3.11",
3
+ "version": "0.3.12",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Corno",
6
6
  "description": "async types for Exupery",