exupery-core-bin 0.1.10 → 0.1.11

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
@@ -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_Command_Result<Error>, $: {
15
15
  'arguments': _et.Array<string>;
16
- }, init: _easync.Unsafe_Command_Result<Error>) => _easync.Unsafe_Command_Result<Error>;
16
+ }) => _easync.Unsafe_Command_Result<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
@@ -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_command(), {
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.11",
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.23",
31
31
  "exupery-core-internals": "^0.1.8"
32
32
  }
33
33
  }