exupery-core-bin 0.3.11 → 0.3.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/algorithms/procedures/guaranteed/do_nothing.d.ts +2 -2
- package/dist/algorithms/procedures/guaranteed/do_nothing.js +1 -1
- package/dist/algorithms/procedures/guaranteed/log.d.ts +1 -1
- package/dist/algorithms/procedures/guaranteed/log_error.d.ts +1 -1
- package/dist/algorithms/procedures/guaranteed/write_to_stderr.d.ts +1 -1
- package/dist/algorithms/procedures/guaranteed/write_to_stdout.d.ts +1 -1
- package/dist/algorithms/procedures/unguaranteed/copy.d.ts +1 -1
- package/dist/algorithms/procedures/unguaranteed/execute_any_procedure_executable.d.ts +1 -1
- package/dist/algorithms/procedures/unguaranteed/execute_any_smelly_procedure_executable.d.ts +1 -1
- package/dist/algorithms/procedures/unguaranteed/make_directory.d.ts +1 -1
- package/dist/algorithms/procedures/unguaranteed/remove.d.ts +1 -1
- package/dist/algorithms/procedures/unguaranteed/write_file.d.ts +1 -1
- package/dist/algorithms/queries/guaranteed/execute_query_executable_and_catch.d.ts +1 -1
- package/dist/algorithms/queries/guaranteed/get_instream_data.d.ts +1 -1
- package/dist/algorithms/queries/unguaranteed/execute_any_query_executable.d.ts +1 -1
- package/dist/algorithms/queries/unguaranteed/read_directory.d.ts +1 -1
- package/dist/algorithms/queries/unguaranteed/read_file.d.ts +1 -1
- package/dist/algorithms/queries/unguaranteed/stat.d.ts +1 -1
- package/dist/index.d.ts +16 -16
- package/dist/index.js +6 -6
- package/package.json +2 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const $$:
|
|
1
|
+
import * as _et from 'exupery-core-types';
|
|
2
|
+
export declare const $$: _et.Guaranteed_Procedure_Primed_With_Resources<null>;
|
|
@@ -25,7 +25,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.$$ = void 0;
|
|
27
27
|
const _easync = __importStar(require("exupery-core-async"));
|
|
28
|
-
const $$ = () => {
|
|
28
|
+
const $$ = ($p) => {
|
|
29
29
|
return _easync.__create_guaranted_procedure({
|
|
30
30
|
'execute': (on_success) => {
|
|
31
31
|
on_success();
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as _et from 'exupery-core-types';
|
|
2
2
|
import * as d from "exupery-resources/dist/interface/generated/pareto/schemas/log/data_types/target";
|
|
3
|
-
export declare const $$: _et.
|
|
3
|
+
export declare const $$: _et.Guaranteed_Procedure_Primed_With_Resources<d.Parameters>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as _et from 'exupery-core-types';
|
|
2
2
|
import * as d from "exupery-resources/dist/interface/generated/pareto/schemas/log_error/data_types/target";
|
|
3
|
-
export declare const $$: _et.
|
|
3
|
+
export declare const $$: _et.Guaranteed_Procedure_Primed_With_Resources<d.Parameters>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as _et from 'exupery-core-types';
|
|
2
2
|
import * as d from "exupery-resources/dist/interface/generated/pareto/schemas/write_to_stderr/data_types/target";
|
|
3
|
-
export declare const $$: _et.
|
|
3
|
+
export declare const $$: _et.Guaranteed_Procedure_Primed_With_Resources<d.Parameters>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as _et from 'exupery-core-types';
|
|
2
2
|
import * as d from "exupery-resources/dist/interface/generated/pareto/schemas/write_to_stdout/data_types/target";
|
|
3
|
-
export declare const $$: _et.
|
|
3
|
+
export declare const $$: _et.Guaranteed_Procedure_Primed_With_Resources<d.Parameters>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as _et from 'exupery-core-types';
|
|
2
2
|
import * as d from "exupery-resources/dist/interface/generated/pareto/schemas/copy/data_types/target";
|
|
3
|
-
export declare const $$: _et.
|
|
3
|
+
export declare const $$: _et.Unguaranteed_Procedure_Primed_With_Resources<d.Parameters, d.Error>;
|
|
@@ -5,4 +5,4 @@ import * as d from "exupery-resources/dist/interface/generated/pareto/schemas/ex
|
|
|
5
5
|
* The executable being executed is assumed to only cause side effects
|
|
6
6
|
* and not return any meaningful data, std::out is therefor ignored
|
|
7
7
|
*/
|
|
8
|
-
export declare const $$: _et.
|
|
8
|
+
export declare const $$: _et.Unguaranteed_Procedure_Primed_With_Resources<d.Parameters, d.Error>;
|
package/dist/algorithms/procedures/unguaranteed/execute_any_smelly_procedure_executable.d.ts
CHANGED
|
@@ -5,4 +5,4 @@ import * as d from "exupery-resources/dist/interface/generated/pareto/schemas/ex
|
|
|
5
5
|
* The executable being executed is assumed to only cause side effects
|
|
6
6
|
* and not return any meaningful data, std::out is therefor ignored
|
|
7
7
|
*/
|
|
8
|
-
export declare const $$: _et.
|
|
8
|
+
export declare const $$: _et.Unguaranteed_Procedure_Primed_With_Resources<d.Parameters, d.Error>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as _et from 'exupery-core-types';
|
|
2
2
|
import * as d from "exupery-resources/dist/interface/generated/pareto/schemas/make_directory/data_types/target";
|
|
3
|
-
export declare const $$: _et.
|
|
3
|
+
export declare const $$: _et.Unguaranteed_Procedure_Primed_With_Resources<d.Parameters, d.Error>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as _et from 'exupery-core-types';
|
|
2
2
|
import * as d from "exupery-resources/dist/interface/generated/pareto/schemas/remove/data_types/target";
|
|
3
|
-
export declare const $$: _et.
|
|
3
|
+
export declare const $$: _et.Unguaranteed_Procedure_Primed_With_Resources<d.Parameters, d.Error>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as _et from 'exupery-core-types';
|
|
2
2
|
import * as d from "exupery-resources/dist/interface/generated/pareto/schemas/write_file/data_types/target";
|
|
3
|
-
export declare const $$: _et.
|
|
3
|
+
export declare const $$: _et.Unguaranteed_Procedure_Primed_With_Resources<d.Parameters, d.Error>;
|
|
@@ -5,4 +5,4 @@ import * as d from "exupery-resources/dist/interface/generated/pareto/schemas/ex
|
|
|
5
5
|
* The executable being executed is assumed to be side effect free
|
|
6
6
|
* There is no way to give guarantees about that though
|
|
7
7
|
*/
|
|
8
|
-
export declare const $$: _et.
|
|
8
|
+
export declare const $$: _et.Guaranteed_Query_Primed_With_Resources<d.Parameters, d.Result>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as _et from 'exupery-core-types';
|
|
2
2
|
import * as d from "exupery-resources/dist/interface/generated/pareto/schemas/get_instream_data/data_types/target";
|
|
3
|
-
export declare const $$: _et.
|
|
3
|
+
export declare const $$: _et.Guaranteed_Query_Primed_With_Resources<null, d.Result>;
|
|
@@ -5,4 +5,4 @@ import * as d from "exupery-resources/dist/interface/generated/pareto/schemas/ex
|
|
|
5
5
|
* The executable being executed is assumed to be side effect free
|
|
6
6
|
* There is no way to give guarantees about that though
|
|
7
7
|
*/
|
|
8
|
-
export declare const $$: _et.
|
|
8
|
+
export declare const $$: _et.Unguaranteed_Query_Primed_With_Resources<d.Parameters, d.Result, d.Error>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as _et from 'exupery-core-types';
|
|
2
2
|
import * as d from "exupery-resources/dist/interface/generated/pareto/schemas/read_directory/data_types/target";
|
|
3
|
-
export declare const $$: _et.
|
|
3
|
+
export declare const $$: _et.Unguaranteed_Query_Primed_With_Resources<d.Parameters, d.Result, d.Error>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as _et from 'exupery-core-types';
|
|
2
2
|
import * as d from "exupery-resources/dist/interface/generated/pareto/schemas/read_file/data_types/target";
|
|
3
|
-
export declare const $$: _et.
|
|
3
|
+
export declare const $$: _et.Unguaranteed_Query_Primed_With_Resources<d.Parameters, d.Result, d.Error>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as _et from 'exupery-core-types';
|
|
2
2
|
import * as d from "exupery-resources/dist/interface/generated/pareto/schemas/stat/data_types/target";
|
|
3
|
-
export declare const $$: _et.
|
|
3
|
+
export declare const $$: _et.Unguaranteed_Query_Primed_With_Resources<d.Parameters, d.Result, d.Error>;
|
package/dist/index.d.ts
CHANGED
|
@@ -22,33 +22,33 @@ export type Error = {
|
|
|
22
22
|
type temp_instream_parameters = null;
|
|
23
23
|
export type Available_Standard_Resources = {
|
|
24
24
|
'procedures': {
|
|
25
|
-
'copy': _et.
|
|
26
|
-
'execute any procedure executable': _et.
|
|
27
|
-
'execute any smelly procedure executable': _et.
|
|
28
|
-
'log error': _et.
|
|
29
|
-
'log': _et.
|
|
30
|
-
'make directory': _et.
|
|
31
|
-
'remove': _et.
|
|
32
|
-
'write file': _et.
|
|
33
|
-
'write to stderr': _et.
|
|
34
|
-
'write to stdout': _et.
|
|
25
|
+
'copy': _et.Unguaranteed_Procedure_Primed_With_Resources<d_copy.Parameters, d_copy.Error>;
|
|
26
|
+
'execute any procedure executable': _et.Unguaranteed_Procedure_Primed_With_Resources<d_execute_any_procedure_executable.Parameters, d_execute_any_procedure_executable.Error>;
|
|
27
|
+
'execute any smelly procedure executable': _et.Unguaranteed_Procedure_Primed_With_Resources<d_execute_any_smelly_procedure_executable.Parameters, d_execute_any_smelly_procedure_executable.Error>;
|
|
28
|
+
'log error': _et.Guaranteed_Procedure_Primed_With_Resources<d_log_error.Parameters>;
|
|
29
|
+
'log': _et.Guaranteed_Procedure_Primed_With_Resources<d_log.Parameters>;
|
|
30
|
+
'make directory': _et.Unguaranteed_Procedure_Primed_With_Resources<d_make_directory.Parameters, d_make_directory.Error>;
|
|
31
|
+
'remove': _et.Unguaranteed_Procedure_Primed_With_Resources<d_remove.Parameters, d_remove.Error>;
|
|
32
|
+
'write file': _et.Unguaranteed_Procedure_Primed_With_Resources<d_write_file.Parameters, d_write_file.Error>;
|
|
33
|
+
'write to stderr': _et.Guaranteed_Procedure_Primed_With_Resources<d_write_to_stderr.Parameters>;
|
|
34
|
+
'write to stdout': _et.Guaranteed_Procedure_Primed_With_Resources<d_write_to_stdout.Parameters>;
|
|
35
35
|
};
|
|
36
36
|
'queries': {
|
|
37
|
-
'execute any query executable': _et.
|
|
38
|
-
'get instream data': _et.
|
|
39
|
-
'read directory': _et.
|
|
40
|
-
'read file': _et.
|
|
37
|
+
'execute any query executable': _et.Unguaranteed_Query_Primed_With_Resources<d_execute_any_query_executable.Parameters, d_execute_any_query_executable.Result, d_execute_any_query_executable.Error>;
|
|
38
|
+
'get instream data': _et.Guaranteed_Query_Primed_With_Resources<temp_instream_parameters, d_get_instream_data.Result>;
|
|
39
|
+
'read directory': _et.Unguaranteed_Query_Primed_With_Resources<d_read_directory.Parameters, d_read_directory.Result, d_read_directory.Error>;
|
|
40
|
+
'read file': _et.Unguaranteed_Query_Primed_With_Resources<d_read_file.Parameters, d_read_file.Result, d_read_file.Error>;
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
43
|
/**
|
|
44
44
|
* Runs a program main function, passing command line arguments (excluding
|
|
45
45
|
* `node` and the script name)
|
|
46
46
|
*/
|
|
47
|
-
export declare const run_guaranteed_main_procedure:
|
|
47
|
+
export declare const run_guaranteed_main_procedure: (get_main: ($r: Available_Standard_Resources) => _et.Guaranteed_Procedure_Primed_With_Resources<Parameters>) => void;
|
|
48
48
|
/**
|
|
49
49
|
* Runs a program main function, passing command line arguments (excluding
|
|
50
50
|
* `node` and the script name), and setting the process exit code to the
|
|
51
51
|
* returned value when the async value completes.
|
|
52
52
|
*/
|
|
53
|
-
export declare const run_unguaranteed_main_procedure:
|
|
53
|
+
export declare const run_unguaranteed_main_procedure: (get_main: ($r: Available_Standard_Resources) => _et.Unguaranteed_Procedure_Primed_With_Resources<Parameters, Error>) => void;
|
|
54
54
|
export {};
|
package/dist/index.js
CHANGED
|
@@ -66,10 +66,10 @@ const create_available_resources = () => {
|
|
|
66
66
|
* Runs a program main function, passing command line arguments (excluding
|
|
67
67
|
* `node` and the script name)
|
|
68
68
|
*/
|
|
69
|
-
const run_guaranteed_main_procedure = (
|
|
70
|
-
|
|
69
|
+
const run_guaranteed_main_procedure = (get_main) => {
|
|
70
|
+
get_main(create_available_resources())({
|
|
71
71
|
'arguments': _ei.array_literal(process.argv.slice(2))
|
|
72
|
-
}
|
|
72
|
+
}).__start(() => {
|
|
73
73
|
});
|
|
74
74
|
};
|
|
75
75
|
exports.run_guaranteed_main_procedure = run_guaranteed_main_procedure;
|
|
@@ -78,10 +78,10 @@ exports.run_guaranteed_main_procedure = run_guaranteed_main_procedure;
|
|
|
78
78
|
* `node` and the script name), and setting the process exit code to the
|
|
79
79
|
* returned value when the async value completes.
|
|
80
80
|
*/
|
|
81
|
-
const run_unguaranteed_main_procedure = (
|
|
82
|
-
|
|
81
|
+
const run_unguaranteed_main_procedure = (get_main) => {
|
|
82
|
+
get_main(create_available_resources())({
|
|
83
83
|
'arguments': _ei.array_literal(process.argv.slice(2))
|
|
84
|
-
}
|
|
84
|
+
}).__start(() => {
|
|
85
85
|
}, ($) => {
|
|
86
86
|
process.exitCode = $['exit code'];
|
|
87
87
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "exupery-core-bin",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.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.3.
|
|
30
|
+
"exupery-core-async": "^0.3.8",
|
|
31
31
|
"exupery-core-internals": "^0.3.1",
|
|
32
32
|
"exupery-resources": "^0.3.6"
|
|
33
33
|
}
|