exupery-core-bin 0.2.1 → 0.3.1

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
@@ -6,14 +6,15 @@ export type Parameters = {
6
6
  export type Error = {
7
7
  'exit code': number;
8
8
  };
9
+ export type Resources = null;
9
10
  /**
10
11
  * Runs a program main function, passing command line arguments (excluding
11
12
  * `node` and the script name)
12
13
  */
13
- export declare const run_guaranteed_main_procedure: (main: _easync.Guaranteed_Procedure_Initializer<Parameters>) => void;
14
+ export declare const run_guaranteed_main_procedure: (main: _easync.Guaranteed_Procedure_Initializer<Parameters, Resources>) => void;
14
15
  /**
15
16
  * Runs a program main function, passing command line arguments (excluding
16
17
  * `node` and the script name), and setting the process exit code to the
17
18
  * returned value when the async value completes.
18
19
  */
19
- export declare const run_unguaranteed_main_procedure: (main: _easync.Unguaranteed_Procedure_Initializer<Parameters, Error>) => void;
20
+ export declare const run_unguaranteed_main_procedure: (main: _easync.Unguaranteed_Procedure_Initializer<Parameters, Resources, Error>) => void;
package/dist/index.js CHANGED
@@ -32,7 +32,7 @@ const _ei = __importStar(require("exupery-core-internals"));
32
32
  const run_guaranteed_main_procedure = (main) => {
33
33
  main({
34
34
  'arguments': _ei.array_literal(process.argv.slice(2))
35
- }).__start(() => { });
35
+ }, null).__start(() => { });
36
36
  };
37
37
  exports.run_guaranteed_main_procedure = run_guaranteed_main_procedure;
38
38
  /**
@@ -43,7 +43,7 @@ exports.run_guaranteed_main_procedure = run_guaranteed_main_procedure;
43
43
  const run_unguaranteed_main_procedure = (main) => {
44
44
  main({
45
45
  'arguments': _ei.array_literal(process.argv.slice(2))
46
- }).__start(() => {
46
+ }, null).__start(() => {
47
47
  }, ($) => {
48
48
  process.exitCode = $['exit code'];
49
49
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exupery-core-bin",
3
- "version": "0.2.1",
3
+ "version": "0.3.1",
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.2.0",
31
- "exupery-core-internals": "^0.2.0"
30
+ "exupery-core-async": "^0.3.1",
31
+ "exupery-core-internals": "^0.3.0"
32
32
  }
33
33
  }