exupery-core-bin 0.1.11 → 0.1.13

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,8 +1,8 @@
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_Program_Main = ($i: _easync.Guaranteed_Procedure_Context, $: {
4
4
  'arguments': _et.Array<string>;
5
- }, init: _easync.Safe_Command_Result) => _easync.Safe_Command_Result;
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)
@@ -11,12 +11,12 @@ export declare const run_program: (main: Run_Safe_Program_Main) => void;
11
11
  export type Error = {
12
12
  'exit code': number;
13
13
  };
14
- export type Run_Unsafe_Program_Main = ($i: _easync.Unsafe_Command_Result<Error>, $: {
14
+ export type Run_Unguaranteed_Program_Main = ($i: _easync.Unguaranteed_Procedure_Context<Error>, $: {
15
15
  'arguments': _et.Array<string>;
16
- }) => _easync.Unsafe_Command_Result<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_unsafe_program: (main: Run_Unguaranteed_Program_Main) => void;
package/dist/index.js CHANGED
@@ -31,9 +31,9 @@ const _easync = __importStar(require("exupery-core-async"));
31
31
  * `node` and the script name)
32
32
  */
33
33
  const run_program = (main) => {
34
- main({
34
+ main(_easync.initialize_guaranteed_procedure_context(), {
35
35
  'arguments': _ei.array_literal(process.argv.slice(2))
36
- }, _easync.initialize_safe_command()).__start(() => {
36
+ }).__start(() => {
37
37
  });
38
38
  };
39
39
  exports.run_program = run_program;
@@ -43,7 +43,7 @@ exports.run_program = run_program;
43
43
  * returned value when the async value completes.
44
44
  */
45
45
  const run_unsafe_program = (main) => {
46
- main(_easync.initialize_unsafe_command(), {
46
+ main(_easync.initialize_unguaranteed_procedure_context(), {
47
47
  'arguments': _ei.array_literal(process.argv.slice(2))
48
48
  }).__start(() => {
49
49
  }, ($) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exupery-core-bin",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
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.23",
30
+ "exupery-core-async": "^0.1.27",
31
31
  "exupery-core-internals": "^0.1.8"
32
32
  }
33
33
  }