exupery-core-bin 0.1.14 → 0.1.15
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 +4 -4
- package/dist/index.js +5 -5
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as _et from 'exupery-core-types';
|
|
2
2
|
import * as _easync from 'exupery-core-async';
|
|
3
|
-
export type
|
|
3
|
+
export type Guaranteed_Main = ($i: _easync.Guaranteed_Procedure_Context, $: {
|
|
4
4
|
'arguments': _et.Array<string>;
|
|
5
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
|
|
10
|
+
export declare const run_guaranteed_main_procedure: (main: Guaranteed_Main) => void;
|
|
11
11
|
export type Error = {
|
|
12
12
|
'exit code': number;
|
|
13
13
|
};
|
|
14
|
-
export type
|
|
14
|
+
export type Unguaranteed_Main = ($i: _easync.Unguaranteed_Procedure_Context<Error>, $: {
|
|
15
15
|
'arguments': _et.Array<string>;
|
|
16
16
|
}) => _easync.Unguaranteed_Procedure_Context<Error>;
|
|
17
17
|
/**
|
|
@@ -19,4 +19,4 @@ export type Run_Unguaranteed_Procedure_Main = ($i: _easync.Unguaranteed_Procedur
|
|
|
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
|
|
22
|
+
export declare const run_unguaranteed_main_procedure: (main: Unguaranteed_Main) => void;
|
package/dist/index.js
CHANGED
|
@@ -23,26 +23,26 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
26
|
+
exports.run_unguaranteed_main_procedure = exports.run_guaranteed_main_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
|
|
33
|
+
const run_guaranteed_main_procedure = (main) => {
|
|
34
34
|
main(_easync.initialize_guaranteed_procedure_context(), {
|
|
35
35
|
'arguments': _ei.array_literal(process.argv.slice(2))
|
|
36
36
|
}).__start(() => {
|
|
37
37
|
});
|
|
38
38
|
};
|
|
39
|
-
exports.
|
|
39
|
+
exports.run_guaranteed_main_procedure = run_guaranteed_main_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
|
|
45
|
+
const run_unguaranteed_main_procedure = (main) => {
|
|
46
46
|
main(_easync.initialize_unguaranteed_procedure_context(), {
|
|
47
47
|
'arguments': _ei.array_literal(process.argv.slice(2))
|
|
48
48
|
}).__start(() => {
|
|
@@ -50,4 +50,4 @@ const run_unguaranteed_procedure = (main) => {
|
|
|
50
50
|
process.exitCode = $['exit code'];
|
|
51
51
|
});
|
|
52
52
|
};
|
|
53
|
-
exports.
|
|
53
|
+
exports.run_unguaranteed_main_procedure = run_unguaranteed_main_procedure;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "exupery-core-bin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.15",
|
|
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.
|
|
30
|
+
"exupery-core-async": "^0.1.28",
|
|
31
31
|
"exupery-core-internals": "^0.1.8"
|
|
32
32
|
}
|
|
33
33
|
}
|