exupery-core-bin 0.3.27 → 0.3.29
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/copy.d.ts +1 -1
- package/dist/algorithms/procedures/execute_any_procedure_executable.d.ts +1 -1
- package/dist/algorithms/procedures/execute_any_smelly_procedure_executable.d.ts +1 -1
- package/dist/algorithms/procedures/log.d.ts +1 -1
- package/dist/algorithms/procedures/log_error.d.ts +1 -1
- package/dist/algorithms/procedures/make_directory.d.ts +1 -1
- package/dist/algorithms/procedures/remove.d.ts +1 -1
- package/dist/algorithms/procedures/write_file.d.ts +1 -1
- package/dist/algorithms/procedures/write_to_stderr.d.ts +1 -1
- package/dist/algorithms/procedures/write_to_stdout.d.ts +1 -1
- package/dist/algorithms/queries/execute_any_query_executable.d.ts +1 -1
- package/dist/algorithms/queries/execute_any_query_executable.js +1 -1
- package/dist/algorithms/queries/get_instream_data.d.ts +1 -1
- package/dist/algorithms/queries/get_instream_data.js +1 -1
- package/dist/algorithms/queries/read_directory.d.ts +1 -1
- package/dist/algorithms/queries/read_directory.js +1 -1
- package/dist/algorithms/queries/read_file.d.ts +1 -1
- package/dist/algorithms/queries/read_file.js +1 -1
- package/dist/algorithms/queries/stat.d.ts +1 -1
- package/dist/algorithms/queries/stat.js +1 -1
- package/dist/index.d.ts +15 -15
- package/dist/index.js +1 -1
- package/package.json +4 -4
|
@@ -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.Command<d.
|
|
8
|
+
export declare const $$: _et.Command<d.Error, d.Parameters>;
|
|
@@ -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.Command<d.
|
|
8
|
+
export declare const $$: _et.Command<d.Error, 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/make_directory/data_types/target";
|
|
3
|
-
export declare const $$: _et.Command<d.
|
|
3
|
+
export declare const $$: _et.Command<d.Error, 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/remove/data_types/target";
|
|
3
|
-
export declare const $$: _et.Command<d.
|
|
3
|
+
export declare const $$: _et.Command<d.Error, 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_file/data_types/target";
|
|
3
|
-
export declare const $$: _et.Command<d.
|
|
3
|
+
export declare const $$: _et.Command<d.Error, 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.Command<d.Parameters
|
|
3
|
+
export declare const $$: _et.Command<null, 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.Command<d.Parameters
|
|
3
|
+
export declare const $$: _et.Command<null, d.Parameters>;
|
|
@@ -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.Stager<d.Result, d.Error, d.Parameters>;
|
|
@@ -34,7 +34,7 @@ const node_child_process_1 = require("node:child_process");
|
|
|
34
34
|
*/
|
|
35
35
|
exports.$$ = _easync.__create_query(($p) => {
|
|
36
36
|
const args = $p.args.__get_raw_copy();
|
|
37
|
-
return _ei.
|
|
37
|
+
return _ei.__create_staging_result((on_value, on_error) => {
|
|
38
38
|
const child = (0, node_child_process_1.spawn)($p.program, args, {
|
|
39
39
|
shell: false, // ✅ no implicit parsing
|
|
40
40
|
});
|
|
@@ -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.Stager<d.Result, null, null>;
|
|
@@ -27,7 +27,7 @@ exports.$$ = void 0;
|
|
|
27
27
|
const _easync = __importStar(require("exupery-core-async"));
|
|
28
28
|
const _ei = __importStar(require("exupery-core-internals"));
|
|
29
29
|
exports.$$ = _easync.__create_query(() => {
|
|
30
|
-
return _ei.
|
|
30
|
+
return _ei.__create_staging_result((on_value) => {
|
|
31
31
|
const stdin = process.stdin;
|
|
32
32
|
let data = '';
|
|
33
33
|
stdin.setEncoding('utf8');
|
|
@@ -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.Stager<d.Result, d.Error, d.Parameters>;
|
|
@@ -34,7 +34,7 @@ exports.$$ = _easync.__create_query(($p) => {
|
|
|
34
34
|
}
|
|
35
35
|
return path;
|
|
36
36
|
};
|
|
37
|
-
return _ei.
|
|
37
|
+
return _ei.__create_staging_result((on_value, on_error) => {
|
|
38
38
|
(0, fs_1.readdir)(__possibly_escape_filename($p.path.path, $p.path['escape spaces in path']), {
|
|
39
39
|
'encoding': 'utf-8',
|
|
40
40
|
'withFileTypes': true,
|
|
@@ -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.Stager<d.Result, d.Error, d.Parameters>;
|
|
@@ -34,7 +34,7 @@ exports.$$ = _easync.__create_query(($p) => {
|
|
|
34
34
|
}
|
|
35
35
|
return path;
|
|
36
36
|
};
|
|
37
|
-
return _ei.
|
|
37
|
+
return _ei.__create_staging_result((on_value, on_error) => {
|
|
38
38
|
(0, fs_1.readFile)(__possibly_escape_filename($p.path, $p['escape spaces in path']), { 'encoding': 'utf-8' }, (err, data) => {
|
|
39
39
|
if (err) {
|
|
40
40
|
on_error(_ei.block(() => {
|
|
@@ -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.Stager<d.Result, d.Error, d.Parameters>;
|
|
@@ -34,7 +34,7 @@ exports.$$ = _easync.__create_query(($p) => {
|
|
|
34
34
|
}
|
|
35
35
|
return path;
|
|
36
36
|
};
|
|
37
|
-
return _ei.
|
|
37
|
+
return _ei.__create_staging_result((on_value, on_error) => {
|
|
38
38
|
(0, fs_1.stat)(__possibly_escape_filename($p.path, $p['escape spaces in path']), (err, stats) => {
|
|
39
39
|
if (err) {
|
|
40
40
|
on_error(_ei.block(() => {
|
package/dist/index.d.ts
CHANGED
|
@@ -17,22 +17,22 @@ import * as d_main from "exupery-resources/dist/interface/temp_main";
|
|
|
17
17
|
type temp_instream_parameters = null;
|
|
18
18
|
export type Available_Standard_Resources = {
|
|
19
19
|
'commands': {
|
|
20
|
-
'copy': _et.Command<d_copy.
|
|
21
|
-
'execute any procedure executable': _et.Command<d_execute_any_procedure_executable.
|
|
22
|
-
'execute any smelly procedure executable': _et.Command<d_execute_any_smelly_procedure_executable.
|
|
23
|
-
'log error': _et.Command<d_log_error.Parameters
|
|
24
|
-
'log': _et.Command<d_log.Parameters
|
|
25
|
-
'make directory': _et.Command<d_make_directory.
|
|
26
|
-
'remove': _et.Command<d_remove.
|
|
27
|
-
'write file': _et.Command<d_write_file.
|
|
28
|
-
'write to stderr': _et.Command<d_write_to_stderr.Parameters
|
|
29
|
-
'write to stdout': _et.Command<d_write_to_stdout.Parameters
|
|
20
|
+
'copy': _et.Command<d_copy.Error, d_copy.Parameters>;
|
|
21
|
+
'execute any procedure executable': _et.Command<d_execute_any_procedure_executable.Error, d_execute_any_procedure_executable.Parameters>;
|
|
22
|
+
'execute any smelly procedure executable': _et.Command<d_execute_any_smelly_procedure_executable.Error, d_execute_any_smelly_procedure_executable.Parameters>;
|
|
23
|
+
'log error': _et.Command<null, d_log_error.Parameters>;
|
|
24
|
+
'log': _et.Command<null, d_log.Parameters>;
|
|
25
|
+
'make directory': _et.Command<d_make_directory.Error, d_make_directory.Parameters>;
|
|
26
|
+
'remove': _et.Command<d_remove.Error, d_remove.Parameters>;
|
|
27
|
+
'write file': _et.Command<d_write_file.Error, d_write_file.Parameters>;
|
|
28
|
+
'write to stderr': _et.Command<null, d_write_to_stderr.Parameters>;
|
|
29
|
+
'write to stdout': _et.Command<null, d_write_to_stdout.Parameters>;
|
|
30
30
|
};
|
|
31
31
|
'queries': {
|
|
32
|
-
'execute any query executable': _et.
|
|
33
|
-
'get instream data': _et.
|
|
34
|
-
'read directory': _et.
|
|
35
|
-
'read file': _et.
|
|
32
|
+
'execute any query executable': _et.Stager<d_execute_any_query_executable.Result, d_execute_any_query_executable.Error, d_execute_any_query_executable.Parameters>;
|
|
33
|
+
'get instream data': _et.Stager<d_get_instream_data.Result, null, temp_instream_parameters>;
|
|
34
|
+
'read directory': _et.Stager<d_read_directory.Result, d_read_directory.Error, d_read_directory.Parameters>;
|
|
35
|
+
'read file': _et.Stager<d_read_file.Result, d_read_file.Error, d_read_file.Parameters>;
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
38
|
/**
|
|
@@ -40,5 +40,5 @@ export type Available_Standard_Resources = {
|
|
|
40
40
|
* `node` and the script name), and setting the process exit code to the
|
|
41
41
|
* returned value when the async value completes.
|
|
42
42
|
*/
|
|
43
|
-
export declare const run_main_procedure: (get_main: ($r: Available_Standard_Resources) => _et.Command<d_main.
|
|
43
|
+
export declare const run_main_procedure: (get_main: ($r: Available_Standard_Resources) => _et.Command<d_main.Error, d_main.Parameters>) => void;
|
|
44
44
|
export {};
|
package/dist/index.js
CHANGED
|
@@ -69,7 +69,7 @@ const create_available_resources = () => {
|
|
|
69
69
|
*/
|
|
70
70
|
const run_main_procedure = (get_main) => {
|
|
71
71
|
get_main(create_available_resources()).execute({
|
|
72
|
-
'arguments': _ei.
|
|
72
|
+
'arguments': _ei.list_literal(process.argv.slice(2))
|
|
73
73
|
}, ($) => $).__start(() => {
|
|
74
74
|
}, ($) => {
|
|
75
75
|
process.exitCode = $['exit code'];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "exupery-core-bin",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.29",
|
|
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,8 +27,8 @@
|
|
|
27
27
|
"url": "git+https://github.com/corno/exupery-core.git"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"exupery-core-async": "^0.3.
|
|
31
|
-
"exupery-core-internals": "^0.3.
|
|
32
|
-
"exupery-resources": "^0.3.
|
|
30
|
+
"exupery-core-async": "^0.3.59",
|
|
31
|
+
"exupery-core-internals": "^0.3.10",
|
|
32
|
+
"exupery-resources": "^0.3.13"
|
|
33
33
|
}
|
|
34
34
|
}
|