exupery-core-bin 0.3.26 → 0.3.28

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.
Files changed (28) hide show
  1. package/dist/algorithms/procedures/copy.d.ts +1 -1
  2. package/dist/algorithms/procedures/copy.js +1 -1
  3. package/dist/algorithms/procedures/execute_any_procedure_executable.d.ts +1 -1
  4. package/dist/algorithms/procedures/execute_any_procedure_executable.js +1 -1
  5. package/dist/algorithms/procedures/execute_any_smelly_procedure_executable.d.ts +1 -1
  6. package/dist/algorithms/procedures/execute_any_smelly_procedure_executable.js +1 -1
  7. package/dist/algorithms/procedures/log.d.ts +1 -1
  8. package/dist/algorithms/procedures/log.js +1 -1
  9. package/dist/algorithms/procedures/log_error.d.ts +1 -1
  10. package/dist/algorithms/procedures/log_error.js +1 -1
  11. package/dist/algorithms/procedures/make_directory.d.ts +1 -1
  12. package/dist/algorithms/procedures/make_directory.js +1 -1
  13. package/dist/algorithms/procedures/remove.d.ts +1 -1
  14. package/dist/algorithms/procedures/remove.js +1 -1
  15. package/dist/algorithms/procedures/write_file.d.ts +1 -1
  16. package/dist/algorithms/procedures/write_file.js +1 -1
  17. package/dist/algorithms/procedures/write_to_stderr.d.ts +1 -1
  18. package/dist/algorithms/procedures/write_to_stderr.js +1 -1
  19. package/dist/algorithms/procedures/write_to_stdout.d.ts +1 -1
  20. package/dist/algorithms/procedures/write_to_stdout.js +1 -1
  21. package/dist/algorithms/queries/execute_any_query_executable.d.ts +1 -1
  22. package/dist/algorithms/queries/get_instream_data.d.ts +1 -1
  23. package/dist/algorithms/queries/read_directory.d.ts +1 -1
  24. package/dist/algorithms/queries/read_file.d.ts +1 -1
  25. package/dist/algorithms/queries/stat.d.ts +1 -1
  26. package/dist/index.d.ts +15 -15
  27. package/dist/index.js +2 -2
  28. package/package.json +4 -4
@@ -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.Command<d.Parameters, d.Error>;
3
+ export declare const $$: _et.Command<d.Error, d.Parameters>;
@@ -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
  const fs_1 = require("fs");
30
- exports.$$ = _easync.__create_command(($p) => {
30
+ exports.$$ = _easync.__create_resource_command(($p) => {
31
31
  const __possibly_escape_filename = (path, escape) => {
32
32
  if (escape) {
33
33
  return path.replace(/ /g, '_');
@@ -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.Parameters, d.Error>;
8
+ export declare const $$: _et.Command<d.Error, d.Parameters>;
@@ -32,7 +32,7 @@ const node_child_process_1 = require("node:child_process");
32
32
  * The executable being executed is assumed to only cause side effects
33
33
  * and not return any meaningful data, std::out is therefor ignored
34
34
  */
35
- exports.$$ = _easync.__create_command(($p) => {
35
+ exports.$$ = _easync.__create_resource_command(($p) => {
36
36
  const args = $p.args.__get_raw_copy();
37
37
  return _easync.__create_command_promise({
38
38
  'execute': (on_success, on_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.Command<d.Parameters, d.Error>;
8
+ export declare const $$: _et.Command<d.Error, d.Parameters>;
@@ -33,7 +33,7 @@ const node_child_process_1 = require("node:child_process");
33
33
  * The executable being executed is assumed to only cause side effects
34
34
  * and not return any meaningful data, std::out is therefor ignored
35
35
  */
36
- exports.$$ = _easync.__create_command(($p) => {
36
+ exports.$$ = _easync.__create_resource_command(($p) => {
37
37
  const args = $p.args.__get_raw_copy();
38
38
  return _easync.__create_command_promise({
39
39
  'execute': (on_success, on_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/log/data_types/target";
3
- export declare const $$: _et.Command<d.Parameters, null>;
3
+ export declare const $$: _et.Command<null, d.Parameters>;
@@ -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
- exports.$$ = _easync.__create_command(($p) => {
28
+ exports.$$ = _easync.__create_resource_command(($p) => {
29
29
  return _easync.__create_command_promise({
30
30
  'execute': (on_success) => {
31
31
  $p.lines.__for_each(($) => {
@@ -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.Command<d.Parameters, null>;
3
+ export declare const $$: _et.Command<null, d.Parameters>;
@@ -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
- exports.$$ = _easync.__create_command(($p) => {
28
+ exports.$$ = _easync.__create_resource_command(($p) => {
29
29
  return _easync.__create_command_promise({
30
30
  'execute': (on_success) => {
31
31
  $p.lines.__for_each(($) => {
@@ -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.Parameters, d.Error>;
3
+ export declare const $$: _et.Command<d.Error, d.Parameters>;
@@ -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
  const fs_1 = require("fs");
30
- exports.$$ = _easync.__create_command(($p) => {
30
+ exports.$$ = _easync.__create_resource_command(($p) => {
31
31
  const __possibly_escape_filename = (path, escape) => {
32
32
  if (escape) {
33
33
  return path.replace(/ /g, '_');
@@ -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.Parameters, d.Error>;
3
+ export declare const $$: _et.Command<d.Error, d.Parameters>;
@@ -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
  const fs_1 = require("fs");
30
- exports.$$ = _easync.__create_command(($p) => {
30
+ exports.$$ = _easync.__create_resource_command(($p) => {
31
31
  const __possibly_escape_filename = (path, escape) => {
32
32
  if (escape) {
33
33
  return path.replace(/ /g, '_');
@@ -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.Parameters, d.Error>;
3
+ export declare const $$: _et.Command<d.Error, d.Parameters>;
@@ -28,7 +28,7 @@ const _easync = __importStar(require("exupery-core-async"));
28
28
  const _ei = __importStar(require("exupery-core-internals"));
29
29
  const fs_1 = require("fs");
30
30
  const path_1 = require("path");
31
- exports.$$ = _easync.__create_command(($p) => {
31
+ exports.$$ = _easync.__create_resource_command(($p) => {
32
32
  return _easync.__create_command_promise({
33
33
  'execute': (on_success, on_error) => {
34
34
  const __possibly_escape_filename = (path, escape) => {
@@ -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, null>;
3
+ export declare const $$: _et.Command<null, d.Parameters>;
@@ -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
- exports.$$ = _easync.__create_command(($p) => {
28
+ exports.$$ = _easync.__create_resource_command(($p) => {
29
29
  return _easync.__create_command_promise({
30
30
  'execute': (on_success) => {
31
31
  process.stderr.write($p);
@@ -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, null>;
3
+ export declare const $$: _et.Command<null, d.Parameters>;
@@ -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
- exports.$$ = _easync.__create_command(($p) => {
28
+ exports.$$ = _easync.__create_resource_command(($p) => {
29
29
  return _easync.__create_command_promise({
30
30
  'execute': (on_success) => {
31
31
  process.stdout.write($p);
@@ -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.Data_Preparer<d.Parameters, d.Result, d.Error>;
8
+ export declare const $$: _et.Data_Preparer<d.Result, 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/get_instream_data/data_types/target";
3
- export declare const $$: _et.Data_Preparer<null, d.Result, null>;
3
+ export declare const $$: _et.Data_Preparer<d.Result, null, null>;
@@ -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.Data_Preparer<d.Parameters, d.Result, d.Error>;
3
+ export declare const $$: _et.Data_Preparer<d.Result, 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/read_file/data_types/target";
3
- export declare const $$: _et.Data_Preparer<d.Parameters, d.Result, d.Error>;
3
+ export declare const $$: _et.Data_Preparer<d.Result, 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/stat/data_types/target";
3
- export declare const $$: _et.Data_Preparer<d.Parameters, d.Result, d.Error>;
3
+ export declare const $$: _et.Data_Preparer<d.Result, d.Error, d.Parameters>;
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.Parameters, d_copy.Error>;
21
- 'execute any procedure executable': _et.Command<d_execute_any_procedure_executable.Parameters, d_execute_any_procedure_executable.Error>;
22
- 'execute any smelly procedure executable': _et.Command<d_execute_any_smelly_procedure_executable.Parameters, d_execute_any_smelly_procedure_executable.Error>;
23
- 'log error': _et.Command<d_log_error.Parameters, null>;
24
- 'log': _et.Command<d_log.Parameters, null>;
25
- 'make directory': _et.Command<d_make_directory.Parameters, d_make_directory.Error>;
26
- 'remove': _et.Command<d_remove.Parameters, d_remove.Error>;
27
- 'write file': _et.Command<d_write_file.Parameters, d_write_file.Error>;
28
- 'write to stderr': _et.Command<d_write_to_stderr.Parameters, null>;
29
- 'write to stdout': _et.Command<d_write_to_stdout.Parameters, null>;
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.Data_Preparer<d_execute_any_query_executable.Parameters, d_execute_any_query_executable.Result, d_execute_any_query_executable.Error>;
33
- 'get instream data': _et.Data_Preparer<temp_instream_parameters, d_get_instream_data.Result, null>;
34
- 'read directory': _et.Data_Preparer<d_read_directory.Parameters, d_read_directory.Result, d_read_directory.Error>;
35
- 'read file': _et.Data_Preparer<d_read_file.Parameters, d_read_file.Result, d_read_file.Error>;
32
+ 'execute any query executable': _et.Data_Preparer<d_execute_any_query_executable.Result, d_execute_any_query_executable.Error, d_execute_any_query_executable.Parameters>;
33
+ 'get instream data': _et.Data_Preparer<d_get_instream_data.Result, null, temp_instream_parameters>;
34
+ 'read directory': _et.Data_Preparer<d_read_directory.Result, d_read_directory.Error, d_read_directory.Parameters>;
35
+ 'read file': _et.Data_Preparer<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.Parameters, d_main.Error>) => void;
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
@@ -68,9 +68,9 @@ const create_available_resources = () => {
68
68
  * returned value when the async value completes.
69
69
  */
70
70
  const run_main_procedure = (get_main) => {
71
- get_main(create_available_resources()).execute.direct(($) => $, {
71
+ get_main(create_available_resources()).execute({
72
72
  'arguments': _ei.array_literal(process.argv.slice(2))
73
- }).__start(() => {
73
+ }, ($) => $).__start(() => {
74
74
  }, ($) => {
75
75
  process.exitCode = $['exit code'];
76
76
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exupery-core-bin",
3
- "version": "0.3.26",
3
+ "version": "0.3.28",
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.47",
31
- "exupery-core-internals": "^0.3.8",
32
- "exupery-resources": "^0.3.7"
30
+ "exupery-core-async": "^0.3.54",
31
+ "exupery-core-internals": "^0.3.9",
32
+ "exupery-resources": "^0.3.12"
33
33
  }
34
34
  }