@ceon-oy/monitor-sdk 1.1.2 → 1.1.3
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/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5 -1
- package/dist/index.mjs +5 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -341,6 +341,7 @@ declare class MonitorClient {
|
|
|
341
341
|
/**
|
|
342
342
|
* Run a command with a reliable timeout using spawn.
|
|
343
343
|
* More reliable than execSync timeout in containerized environments.
|
|
344
|
+
* Only works in Node.js environment (not browser/bundled).
|
|
344
345
|
*/
|
|
345
346
|
private runCommandWithTimeout;
|
|
346
347
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -341,6 +341,7 @@ declare class MonitorClient {
|
|
|
341
341
|
/**
|
|
342
342
|
* Run a command with a reliable timeout using spawn.
|
|
343
343
|
* More reliable than execSync timeout in containerized environments.
|
|
344
|
+
* Only works in Node.js environment (not browser/bundled).
|
|
344
345
|
*/
|
|
345
346
|
private runCommandWithTimeout;
|
|
346
347
|
/**
|
package/dist/index.js
CHANGED
|
@@ -814,9 +814,13 @@ var MonitorClient = class {
|
|
|
814
814
|
/**
|
|
815
815
|
* Run a command with a reliable timeout using spawn.
|
|
816
816
|
* More reliable than execSync timeout in containerized environments.
|
|
817
|
+
* Only works in Node.js environment (not browser/bundled).
|
|
817
818
|
*/
|
|
818
819
|
async runCommandWithTimeout(command, args, options) {
|
|
819
|
-
const childProcess = await import(
|
|
820
|
+
const childProcess = await import(
|
|
821
|
+
/* webpackIgnore: true */
|
|
822
|
+
"child_process"
|
|
823
|
+
);
|
|
820
824
|
const { spawn } = childProcess;
|
|
821
825
|
return new Promise((resolve) => {
|
|
822
826
|
const proc = spawn(command, args, {
|
package/dist/index.mjs
CHANGED
|
@@ -778,9 +778,13 @@ var MonitorClient = class {
|
|
|
778
778
|
/**
|
|
779
779
|
* Run a command with a reliable timeout using spawn.
|
|
780
780
|
* More reliable than execSync timeout in containerized environments.
|
|
781
|
+
* Only works in Node.js environment (not browser/bundled).
|
|
781
782
|
*/
|
|
782
783
|
async runCommandWithTimeout(command, args, options) {
|
|
783
|
-
const childProcess = await import(
|
|
784
|
+
const childProcess = await import(
|
|
785
|
+
/* webpackIgnore: true */
|
|
786
|
+
"child_process"
|
|
787
|
+
);
|
|
784
788
|
const { spawn } = childProcess;
|
|
785
789
|
return new Promise((resolve) => {
|
|
786
790
|
const proc = spawn(command, args, {
|
package/package.json
CHANGED