exupery-core-bin 0.3.18 → 0.3.19

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.
@@ -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 node_child_process_1 = require("node:child_process");
30
- // import { Signature } from "exupery-resources/dist/interface/algorithms/procedures/unguaranteed/execute_smelly_procedure_executable"
30
+ // import { Signature } from "exupery-resources/dist/interface/algorithms/procedures/execute_smelly_procedure_executable"
31
31
  /**
32
32
  *
33
33
  * The executable being executed is assumed to only cause side effects
@@ -1,8 +1 @@
1
- import * as _et from 'exupery-core-types';
2
- import * as d from "exupery-resources/dist/interface/generated/pareto/schemas/execute_query_executable_and_catch/data_types/target";
3
- /**
4
- *
5
- * The executable being executed is assumed to be side effect free
6
- * There is no way to give guarantees about that though
7
- */
8
- export declare const $$: _et.Query_Primed_With_Resources<d.Parameters, d.Result, null>;
1
+ export declare const x = 42;
@@ -1,70 +1,47 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
2
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.$$ = void 0;
27
- const _easync = __importStar(require("exupery-core-async"));
28
- const _ei = __importStar(require("exupery-core-internals"));
29
- const node_child_process_1 = require("node:child_process");
30
- /**
31
- *
32
- * The executable being executed is assumed to be side effect free
33
- * There is no way to give guarantees about that though
34
- */
35
- exports.$$ = _easync.__create_query_primed_with_resources(($p) => {
36
- const args = $p.args.__get_raw_copy();
37
- return _easync.__create_query_promise({
38
- 'execute': (on_result) => {
39
- const child = (0, node_child_process_1.spawn)($p.program, args, {
40
- shell: false, // no implicit parsing
41
- });
42
- let stdoutData = "";
43
- let stderrData = "";
44
- child.stdout.on("data", chunk => {
45
- stdoutData += chunk.toString("utf8");
46
- });
47
- child.stderr.on("data", chunk => {
48
- stderrData += chunk.toString("utf8");
49
- });
50
- child.on("error", err => {
51
- on_result(['error', ['failed to spawn', {
52
- message: err instanceof Error ? err.message : `${err}`
53
- }]]);
54
- });
55
- child.on("close", exitCode => {
56
- if (exitCode === 0) {
57
- on_result(['success', {
58
- stdout: stdoutData,
59
- }]);
60
- }
61
- else {
62
- on_result(['error', ['non zero exit code', {
63
- 'exit code': exitCode === null ? _ei.not_set() : _ei.set(exitCode),
64
- 'stderr': stderrData,
65
- }]]);
66
- }
67
- });
68
- }
69
- });
70
- });
3
+ exports.x = void 0;
4
+ // import { Signature } from "exupery-resources/dist/interface/algorithms/queries/execute_query_executable_and_catch"
5
+ exports.x = 42;
6
+ // /**
7
+ // *
8
+ // * The executable being executed is assumed to be side effect free
9
+ // * There is no way to give guarantees about that though
10
+ // */
11
+ // export const $$: _et.Query_Primed_With_Resources<d.Parameters, d.Result, null> = _easync.__create_query_primed_with_resources((
12
+ // $p
13
+ // ) => {
14
+ // const args = $p.args.__get_raw_copy()
15
+ // return _easync.__create_query_promise({
16
+ // 'execute': (on_result) => {
17
+ // const child = spawn($p.program, args, {
18
+ // shell: false, // ✅ no implicit parsing
19
+ // })
20
+ // let stdoutData = ""
21
+ // let stderrData = ""
22
+ // child.stdout.on("data", chunk => {
23
+ // stdoutData += chunk.toString("utf8")
24
+ // })
25
+ // child.stderr.on("data", chunk => {
26
+ // stderrData += chunk.toString("utf8")
27
+ // })
28
+ // child.on("error", err => {
29
+ // on_result(['error', ['failed to spawn', {
30
+ // message: err instanceof Error ? err.message : `${err}`
31
+ // }]])
32
+ // })
33
+ // child.on("close", exitCode => {
34
+ // if (exitCode === 0) {
35
+ // on_result(['success', {
36
+ // stdout: stdoutData,
37
+ // }])
38
+ // } else {
39
+ // on_result(['error', ['non zero exit code', {
40
+ // 'exit code': exitCode === null ? _ei.not_set() : _ei.set(exitCode),
41
+ // 'stderr': stderrData,
42
+ // }]])
43
+ // }
44
+ // })
45
+ // }
46
+ // })
47
+ // })
package/dist/index.d.ts CHANGED
@@ -13,12 +13,7 @@ import * as d_remove from "exupery-resources/dist/interface/generated/pareto/sch
13
13
  import * as d_write_file from "exupery-resources/dist/interface/generated/pareto/schemas/write_file/data_types/source";
14
14
  import * as d_write_to_stderr from "exupery-resources/dist/interface/generated/pareto/schemas/write_to_stderr/data_types/target";
15
15
  import * as d_write_to_stdout from "exupery-resources/dist/interface/generated/pareto/schemas/write_to_stdout/data_types/target";
16
- export type Parameters = {
17
- 'arguments': _et.Array<string>;
18
- };
19
- export type Error = {
20
- 'exit code': number;
21
- };
16
+ import * as d_main from "exupery-resources/dist/interface/temp_main";
22
17
  type temp_instream_parameters = null;
23
18
  export type Available_Standard_Resources = {
24
19
  'procedures': {
@@ -45,5 +40,5 @@ export type Available_Standard_Resources = {
45
40
  * `node` and the script name), and setting the process exit code to the
46
41
  * returned value when the async value completes.
47
42
  */
48
- export declare const run_main_procedure: (get_main: ($r: Available_Standard_Resources) => _et.Procedure_Primed_With_Resources<Parameters, Error>) => void;
43
+ export declare const run_main_procedure: (get_main: ($r: Available_Standard_Resources) => _et.Procedure_Primed_With_Resources<d_main.Parameters, d_main.Error>) => void;
49
44
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exupery-core-bin",
3
- "version": "0.3.18",
3
+ "version": "0.3.19",
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.22",
30
+ "exupery-core-async": "^0.3.24",
31
31
  "exupery-core-internals": "^0.3.1",
32
32
  "exupery-resources": "^0.3.6"
33
33
  }