@scelar/nodepod 1.0.5 → 1.0.7
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/{child_process-PY34i_6n.js → child_process-CgnmoilU.js} +5 -4
- package/dist/{child_process-PY34i_6n.js.map → child_process-CgnmoilU.js.map} +1 -1
- package/dist/{child_process-B9qsOKHs.cjs → child_process-bGGe8mTj.cjs} +6 -5
- package/dist/{child_process-B9qsOKHs.cjs.map → child_process-bGGe8mTj.cjs.map} +1 -1
- package/dist/{index-D8Hn2kWU.js → index-DZpqX03n.js} +612 -168
- package/dist/index-DZpqX03n.js.map +1 -0
- package/dist/{index-CyhVjVJU.cjs → index-NinyWmnj.cjs} +603 -162
- package/dist/index-NinyWmnj.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +88 -88
- package/dist/index.mjs +2 -2
- package/dist/memory-handler.d.ts +57 -57
- package/dist/memory-volume.d.ts +157 -157
- package/dist/packages/installer.d.ts +44 -44
- package/dist/persistence/idb-cache.d.ts +7 -7
- package/dist/polyfills/readline.d.ts +34 -13
- package/dist/script-engine.d.ts +84 -84
- package/dist/sdk/nodepod-process.d.ts +29 -29
- package/dist/sdk/nodepod.d.ts +2 -3
- package/dist/sdk/types.d.ts +64 -64
- package/package.json +1 -1
- package/src/polyfills/child_process.ts +3 -0
- package/src/polyfills/events.ts +16 -2
- package/src/polyfills/readline.ts +593 -71
- package/src/polyfills/stream.ts +45 -0
- package/src/sdk/nodepod.ts +127 -81
- package/dist/index-CyhVjVJU.cjs.map +0 -1
- package/dist/index-D8Hn2kWU.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import { n as normalize, b as basename, d as dirname, L as LS_BLOCK_SIZE, Y as YES_REPEAT_COUNT, e as extname, N as NPM_REGISTRY_URL_SLASH, V as VERSIONS, r as resolve, a as relative, c as createHash, D as DEFAULT_ENV, E as EventEmitter, M as MOCK_PID, W as Writable, R as Readable, S as ScriptEngine, f as format, g as getAllServers, h as ref, u as unref, i as addDrainListener, T as TIMEOUTS, j as closeAllServers, k as resetRefCount,
|
|
4
|
+
import { n as normalize, b as basename, d as dirname, L as LS_BLOCK_SIZE, Y as YES_REPEAT_COUNT, e as extname, N as NPM_REGISTRY_URL_SLASH, V as VERSIONS, r as resolve, a as relative, c as createHash, D as DEFAULT_ENV, E as EventEmitter, M as MOCK_PID, W as Writable, R as Readable, S as ScriptEngine, f as format, g as getAllServers, h as ref, u as unref, i as addDrainListener, T as TIMEOUTS, j as closeAllServers, k as resetRefCount, l as resetActiveInterfaceCount, B as Buffer2, m as getActiveContext, o as getRefCount, __tla as __tla_0 } from "./index-DZpqX03n.js";
|
|
5
5
|
let ShellProcess, clearStreamingCallbacks, child_process, exec, execFile, execFileSync, execSync, executeNodeBinary, fork, getShellCwd, handleIPCFromParent, initShellExec, isStdinRaw, sendStdin, setForkChildCallback, setIPCReceiveHandler, setIPCSend, setShellCwd, setSpawnChildCallback, setStreamingCallbacks, setSyncChannel, shellExec, spawn, spawnSync;
|
|
6
6
|
let __tla = Promise.all([
|
|
7
7
|
(() => {
|
|
@@ -6757,7 +6757,7 @@ ${A_DIM}Done in ${elapsed}s${A_RESET}`;
|
|
|
6757
6757
|
}
|
|
6758
6758
|
}
|
|
6759
6759
|
async function installPackages(args, ctx, pm = "npm") {
|
|
6760
|
-
const { DependencyInstaller } = await import("./index-
|
|
6760
|
+
const { DependencyInstaller } = await import("./index-DZpqX03n.js").then(async (m) => {
|
|
6761
6761
|
await m.__tla;
|
|
6762
6762
|
return m;
|
|
6763
6763
|
}).then((n) => n.af);
|
|
@@ -6866,7 +6866,7 @@ ${A_DIM}Done in ${elapsed}s${A_RESET}`;
|
|
|
6866
6866
|
};
|
|
6867
6867
|
}
|
|
6868
6868
|
async function listPackages(ctx, pm = "npm") {
|
|
6869
|
-
const { DependencyInstaller } = await import("./index-
|
|
6869
|
+
const { DependencyInstaller } = await import("./index-DZpqX03n.js").then(async (m) => {
|
|
6870
6870
|
await m.__tla;
|
|
6871
6871
|
return m;
|
|
6872
6872
|
}).then((n) => n.af);
|
|
@@ -7025,7 +7025,7 @@ ${JSON.stringify(pkg, null, 2)}
|
|
|
7025
7025
|
}
|
|
7026
7026
|
}
|
|
7027
7027
|
try {
|
|
7028
|
-
const { RegistryClient } = await import("./index-
|
|
7028
|
+
const { RegistryClient } = await import("./index-DZpqX03n.js").then(async (m) => {
|
|
7029
7029
|
await m.__tla;
|
|
7030
7030
|
return m;
|
|
7031
7031
|
}).then((n) => n.au);
|
|
@@ -7970,6 +7970,7 @@ ${stdout}`);
|
|
|
7970
7970
|
child.emit("error", new Error("[Nodepod] spawn requires shell or worker mode."));
|
|
7971
7971
|
}, 0);
|
|
7972
7972
|
}
|
|
7973
|
+
queueMicrotask(() => child.emit("spawn"));
|
|
7973
7974
|
return child;
|
|
7974
7975
|
};
|
|
7975
7976
|
spawnSync = function(cmd, args, opts) {
|