exupery-core-bin 0.1.12 → 0.1.14

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
@@ -1,22 +1,22 @@
1
1
  import * as _et from 'exupery-core-types';
2
2
  import * as _easync from 'exupery-core-async';
3
- export type Run_Safe_Program_Main = ($: {
3
+ export type Run_Safe_Procedure_Main = ($i: _easync.Guaranteed_Procedure_Context, $: {
4
4
  'arguments': _et.Array<string>;
5
- }, init: _easync.Safe_Procedure_Context) => _easync.Safe_Procedure_Context;
5
+ }) => _easync.Guaranteed_Procedure_Context;
6
6
  /**
7
7
  * Runs a program main function, passing command line arguments (excluding
8
8
  * `node` and the script name)
9
9
  */
10
- export declare const run_program: (main: Run_Safe_Program_Main) => void;
10
+ export declare const run_guaranteed_procedure: (main: Run_Safe_Procedure_Main) => void;
11
11
  export type Error = {
12
12
  'exit code': number;
13
13
  };
14
- export type Run_Unsafe_Program_Main = ($i: _easync.Unsafe_Procedure_Context<Error>, $: {
14
+ export type Run_Unguaranteed_Procedure_Main = ($i: _easync.Unguaranteed_Procedure_Context<Error>, $: {
15
15
  'arguments': _et.Array<string>;
16
- }) => _easync.Unsafe_Procedure_Context<Error>;
16
+ }) => _easync.Unguaranteed_Procedure_Context<Error>;
17
17
  /**
18
18
  * Runs a program main function, passing command line arguments (excluding
19
19
  * `node` and the script name), and setting the process exit code to the
20
20
  * returned value when the async value completes.
21
21
  */
22
- export declare const run_unsafe_program: (main: Run_Unsafe_Program_Main) => void;
22
+ export declare const run_unguaranteed_procedure: (main: Run_Unguaranteed_Procedure_Main) => void;
package/dist/index.js CHANGED
@@ -23,31 +23,31 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.run_unsafe_program = exports.run_program = void 0;
26
+ exports.run_unguaranteed_procedure = exports.run_guaranteed_procedure = void 0;
27
27
  const _ei = __importStar(require("exupery-core-internals"));
28
28
  const _easync = __importStar(require("exupery-core-async"));
29
29
  /**
30
30
  * Runs a program main function, passing command line arguments (excluding
31
31
  * `node` and the script name)
32
32
  */
33
- const run_program = (main) => {
34
- main({
33
+ const run_guaranteed_procedure = (main) => {
34
+ main(_easync.initialize_guaranteed_procedure_context(), {
35
35
  'arguments': _ei.array_literal(process.argv.slice(2))
36
- }, _easync.initialize_safe_procedure_context()).__start(() => {
36
+ }).__start(() => {
37
37
  });
38
38
  };
39
- exports.run_program = run_program;
39
+ exports.run_guaranteed_procedure = run_guaranteed_procedure;
40
40
  /**
41
41
  * Runs a program main function, passing command line arguments (excluding
42
42
  * `node` and the script name), and setting the process exit code to the
43
43
  * returned value when the async value completes.
44
44
  */
45
- const run_unsafe_program = (main) => {
46
- main(_easync.initialize_unsafe_procedure_context(), {
45
+ const run_unguaranteed_procedure = (main) => {
46
+ main(_easync.initialize_unguaranteed_procedure_context(), {
47
47
  'arguments': _ei.array_literal(process.argv.slice(2))
48
48
  }).__start(() => {
49
49
  }, ($) => {
50
50
  process.exitCode = $['exit code'];
51
51
  });
52
52
  };
53
- exports.run_unsafe_program = run_unsafe_program;
53
+ exports.run_unguaranteed_procedure = run_unguaranteed_procedure;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exupery-core-bin",
3
- "version": "0.1.12",
3
+ "version": "0.1.14",
4
4
  "license": "ISC",
5
5
  "description": "this is one of the core packages for Exupery. it provides functionality to create executables",
6
6
  "author": "Corno",
@@ -27,7 +27,7 @@
27
27
  "url": "git+https://github.com/corno/exupery-core.git"
28
28
  },
29
29
  "dependencies": {
30
- "exupery-core-async": "^0.1.25",
30
+ "exupery-core-async": "^0.1.27",
31
31
  "exupery-core-internals": "^0.1.8"
32
32
  }
33
33
  }