exupery-core-bin 0.3.28 → 0.3.30

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.
@@ -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.Result, d.Error, d.Parameters>;
8
+ export declare const $$: _et.Query<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.__create_data_preparation_result((on_value, on_error) => {
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.Data_Preparer<d.Result, null, null>;
3
+ export declare const $$: _et.Query<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.__create_data_preparation_result((on_value) => {
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.Data_Preparer<d.Result, d.Error, d.Parameters>;
3
+ export declare const $$: _et.Query<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.__create_data_preparation_result((on_value, on_error) => {
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.Data_Preparer<d.Result, d.Error, d.Parameters>;
3
+ export declare const $$: _et.Query<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.__create_data_preparation_result((on_value, on_error) => {
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.Data_Preparer<d.Result, d.Error, d.Parameters>;
3
+ export declare const $$: _et.Query<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.__create_data_preparation_result((on_value, on_error) => {
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
@@ -29,10 +29,10 @@ export type Available_Standard_Resources = {
29
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.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>;
32
+ 'execute any query executable': _et.Query<d_execute_any_query_executable.Result, d_execute_any_query_executable.Error, d_execute_any_query_executable.Parameters>;
33
+ 'get instream data': _et.Query<d_get_instream_data.Result, null, temp_instream_parameters>;
34
+ 'read directory': _et.Query<d_read_directory.Result, d_read_directory.Error, d_read_directory.Parameters>;
35
+ 'read file': _et.Query<d_read_file.Result, d_read_file.Error, d_read_file.Parameters>;
36
36
  };
37
37
  };
38
38
  /**
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.array_literal(process.argv.slice(2))
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.28",
3
+ "version": "0.3.30",
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.54",
31
- "exupery-core-internals": "^0.3.9",
32
- "exupery-resources": "^0.3.12"
30
+ "exupery-core-async": "^0.3.65",
31
+ "exupery-core-internals": "^0.3.13",
32
+ "exupery-resources": "^0.3.15"
33
33
  }
34
34
  }