exupery-core-bin 0.3.30 → 0.3.32

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.
@@ -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_staging_result((on_value, on_error) => {
37
+ return _ei.__create_query_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
  });
@@ -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_staging_result((on_value) => {
30
+ return _ei.__create_query_result((on_value) => {
31
31
  const stdin = process.stdin;
32
32
  let data = '';
33
33
  stdin.setEncoding('utf8');
@@ -34,7 +34,7 @@ exports.$$ = _easync.__create_query(($p) => {
34
34
  }
35
35
  return path;
36
36
  };
37
- return _ei.__create_staging_result((on_value, on_error) => {
37
+ return _ei.__create_query_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,
@@ -53,7 +53,10 @@ exports.$$ = _easync.__create_query(($p) => {
53
53
  else {
54
54
  const out = {};
55
55
  files.forEach((file) => {
56
- out[($p['prepend results with path'] ? ($p.path.path + "/") : "") + file.name] = file.isFile() ? ['file', null] : ['directory', null];
56
+ out[file.name] = {
57
+ 'node type': file.isFile() ? ['file', null] : ['directory', null],
58
+ 'concatenated path': $p.path.path + "/" + file.name
59
+ };
57
60
  });
58
61
  on_value(_ei.dictionary_literal(out));
59
62
  }
@@ -34,7 +34,7 @@ exports.$$ = _easync.__create_query(($p) => {
34
34
  }
35
35
  return path;
36
36
  };
37
- return _ei.__create_staging_result((on_value, on_error) => {
37
+ return _ei.__create_query_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(() => {
@@ -34,7 +34,7 @@ exports.$$ = _easync.__create_query(($p) => {
34
34
  }
35
35
  return path;
36
36
  };
37
- return _ei.__create_staging_result((on_value, on_error) => {
37
+ return _ei.__create_query_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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exupery-core-bin",
3
- "version": "0.3.30",
3
+ "version": "0.3.32",
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.65",
31
- "exupery-core-internals": "^0.3.13",
32
- "exupery-resources": "^0.3.15"
30
+ "exupery-core-async": "^0.3.73",
31
+ "exupery-core-internals": "^0.3.16",
32
+ "exupery-resources": "^0.3.16"
33
33
  }
34
34
  }