exupery-core-async 0.3.17 → 0.3.18

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.
@@ -0,0 +1,2 @@
1
+ import * as _et from 'exupery-core-types';
2
+ export declare const create_procedure: <Parameters, Error, Resources>(handler: ($r: Resources, $p: Parameters) => _et.Procedure_Promise<Error>) => _et.Procedure<Parameters, Error, Resources>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.create_procedure = void 0;
4
+ const create_procedure_primed_with_resources_1 = require("./create_procedure_primed_with_resources");
5
+ const create_procedure = (handler) => {
6
+ return ($r) => (0, create_procedure_primed_with_resources_1.__create_procedure_primed_with_resources)(($p) => handler($r, $p));
7
+ };
8
+ exports.create_procedure = create_procedure;
@@ -1,2 +1,2 @@
1
1
  import * as _et from 'exupery-core-types';
2
- export declare const create_procedure_primed_with_resources: <Parameters, Error, Resources>(handler: ($: Parameters) => _et.Procedure_Promise<Error>) => _et.Procedure_Primed_With_Resources<Parameters, Error>;
2
+ export declare const __create_procedure_primed_with_resources: <Parameters, Error, Resources>(handler: ($: Parameters) => _et.Procedure_Promise<Error>) => _et.Procedure_Primed_With_Resources<Parameters, Error>;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.create_procedure_primed_with_resources = void 0;
3
+ exports.__create_procedure_primed_with_resources = void 0;
4
4
  const create_procedure_promise_1 = require("./create_procedure_promise");
5
- const create_procedure_primed_with_resources = (handler) => {
5
+ const __create_procedure_primed_with_resources = (handler) => {
6
6
  return {
7
7
  'execute with synchronous data': handler,
8
8
  'execute with asynchronous data': (query) => {
@@ -16,4 +16,4 @@ const create_procedure_primed_with_resources = (handler) => {
16
16
  }
17
17
  };
18
18
  };
19
- exports.create_procedure_primed_with_resources = create_procedure_primed_with_resources;
19
+ exports.__create_procedure_primed_with_resources = __create_procedure_primed_with_resources;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as _et from "exupery-core-types";
2
2
  export * from "./types/Basic_Query";
3
3
  export * from "./algorithms/query/create_query_promise";
4
+ export * from "./algorithms/procedure/create_procedure";
4
5
  export * from "./algorithms/procedure/create_procedure_promise";
5
6
  export * from "./algorithms/procedure/create_procedure_primed_with_resources";
6
7
  export * from "./shorthands";
package/dist/index.js CHANGED
@@ -19,6 +19,7 @@ exports.query = void 0;
19
19
  __exportStar(require("./types/Basic_Query"), exports);
20
20
  //functions
21
21
  __exportStar(require("./algorithms/query/create_query_promise"), exports);
22
+ __exportStar(require("./algorithms/procedure/create_procedure"), exports);
22
23
  __exportStar(require("./algorithms/procedure/create_procedure_promise"), exports);
23
24
  __exportStar(require("./algorithms/procedure/create_procedure_primed_with_resources"), exports);
24
25
  __exportStar(require("./shorthands"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exupery-core-async",
3
- "version": "0.3.17",
3
+ "version": "0.3.18",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Corno",
6
6
  "description": "async types for Exupery",