exupery-core-bin 0.1.10 → 0.1.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
@@ -2,7 +2,7 @@ import * as _et from 'exupery-core-types';
2
2
  import * as _easync from 'exupery-core-async';
3
3
  export type Run_Safe_Program_Main = ($: {
4
4
  'arguments': _et.Array<string>;
5
- }, init: _easync.Safe_Command_Result) => _easync.Safe_Command_Result;
5
+ }, init: _easync.Safe_Procedure_Context) => _easync.Safe_Procedure_Context;
6
6
  /**
7
7
  * Runs a program main function, passing command line arguments (excluding
8
8
  * `node` and the script name)
@@ -11,9 +11,9 @@ 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 = ($: {
14
+ export type Run_Unsafe_Program_Main = ($i: _easync.Unsafe_Procedure_Context<Error>, $: {
15
15
  'arguments': _et.Array<string>;
16
- }, init: _easync.Unsafe_Command_Result<Error>) => _easync.Unsafe_Command_Result<Error>;
16
+ }) => _easync.Unsafe_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
package/dist/index.js CHANGED
@@ -33,7 +33,7 @@ const _easync = __importStar(require("exupery-core-async"));
33
33
  const run_program = (main) => {
34
34
  main({
35
35
  'arguments': _ei.array_literal(process.argv.slice(2))
36
- }, _easync.initialize_safe_command()).__start(() => {
36
+ }, _easync.initialize_safe_procedure_context()).__start(() => {
37
37
  });
38
38
  };
39
39
  exports.run_program = run_program;
@@ -43,9 +43,9 @@ 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({
46
+ main(_easync.initialize_unsafe_procedure_context(), {
47
47
  'arguments': _ei.array_literal(process.argv.slice(2))
48
- }, _easync.initialize_unsafe_command()).__start(() => {
48
+ }).__start(() => {
49
49
  }, ($) => {
50
50
  process.exitCode = $['exit code'];
51
51
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exupery-core-bin",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
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.21",
30
+ "exupery-core-async": "^0.1.25",
31
31
  "exupery-core-internals": "^0.1.8"
32
32
  }
33
33
  }