secure-exec 0.1.1-rc.1 → 0.1.1-rc.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.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/shared/bridge-contract.d.ts +1 -1
- package/package.json +13 -9
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export type { ResourceBudgets } from "./runtime-driver.js";
|
|
|
4
4
|
export type { CommandExecutor, NodeRuntimeDriver, NodeRuntimeDriverFactory, NetworkAdapter, Permissions, RuntimeDriver, RuntimeDriverFactory, SharedRuntimeDriver, SystemDriver, VirtualFileSystem, } from "./types.js";
|
|
5
5
|
export type { DirEntry, StatInfo } from "./fs-helpers.js";
|
|
6
6
|
export type { StdioChannel, StdioEvent, StdioHook, ExecOptions, ExecResult, OSConfig, ProcessConfig, RunResult, TimingMitigation, } from "./shared/api-types.js";
|
|
7
|
-
export { createDefaultNetworkAdapter, createNodeDriver, createNodeRuntimeDriverFactory, NodeExecutionDriver, NodeFileSystem, } from "@secure-exec/node";
|
|
8
|
-
export type { ModuleAccessOptions, NodeRuntimeDriverFactoryOptions, } from "@secure-exec/node";
|
|
7
|
+
export { createDefaultNetworkAdapter, createNodeDriver, createNodeRuntimeDriverFactory, createNodeV8Runtime, NodeExecutionDriver, NodeFileSystem, } from "@secure-exec/node";
|
|
8
|
+
export type { ModuleAccessOptions, NodeRuntimeDriverFactoryOptions, NodeV8RuntimeOptions, V8Runtime, } from "@secure-exec/node";
|
|
9
9
|
export { createInMemoryFileSystem } from "./shared/in-memory-fs.js";
|
|
10
10
|
export { allowAll, allowAllChildProcess, allowAllEnv, allowAllFs, allowAllNetwork, } from "./shared/permissions.js";
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Re-export core runtime surface.
|
|
2
2
|
export { NodeRuntime } from "./runtime.js";
|
|
3
|
-
// Re-export Node driver factories.
|
|
4
|
-
export { createDefaultNetworkAdapter, createNodeDriver, createNodeRuntimeDriverFactory, NodeExecutionDriver, NodeFileSystem, } from "@secure-exec/node";
|
|
3
|
+
// Re-export Node driver factories and V8 runtime.
|
|
4
|
+
export { createDefaultNetworkAdapter, createNodeDriver, createNodeRuntimeDriverFactory, createNodeV8Runtime, NodeExecutionDriver, NodeFileSystem, } from "@secure-exec/node";
|
|
5
5
|
// TODO: Re-enable once @secure-exec/python is a reliable optional dependency
|
|
6
6
|
// export {
|
|
7
7
|
// createPyodideRuntimeDriverFactory,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { BridgeGlobalKey, ChildProcessKillBridgeRef, ChildProcessSpawnStartBridgeRef, ChildProcessSpawnSyncBridgeRef, ChildProcessStdinCloseBridgeRef, ChildProcessStdinWriteBridgeRef, CryptoRandomFillBridgeRef, CryptoRandomUuidBridgeRef, DynamicImportBridgeRef, FsChmodBridgeRef, FsChownBridgeRef, FsExistsBridgeRef, FsFacadeBridge, FsLinkBridgeRef, FsLstatBridgeRef, FsMkdirBridgeRef, FsReadDirBridgeRef, FsReadFileBinaryBridgeRef, FsReadFileBridgeRef, FsReadlinkBridgeRef, FsRenameBridgeRef, FsRmdirBridgeRef, FsStatBridgeRef, FsSymlinkBridgeRef, FsTruncateBridgeRef, FsUnlinkBridgeRef, FsUtimesBridgeRef, FsWriteFileBinaryBridgeRef, FsWriteFileBridgeRef, HostBridgeGlobalKey, LoadFileBridgeRef, LoadPolyfillBridgeRef, ModuleCacheBridgeRecord, NetworkDnsLookupRawBridgeRef, NetworkFetchRawBridgeRef, NetworkHttpRequestRawBridgeRef, NetworkHttpServerCloseRawBridgeRef, NetworkHttpServerListenRawBridgeRef, ProcessErrorBridgeRef, ProcessLogBridgeRef, RegisterHandleBridgeFn, RequireFromBridgeFn, ResolveModuleBridgeRef, RuntimeBridgeGlobalKey, ScheduleTimerBridgeRef, UnregisterHandleBridgeFn, ValueOf, } from "@secure-exec/core";
|
|
1
|
+
export type { BridgeGlobalKey, ChildProcessKillBridgeRef, ChildProcessSpawnStartBridgeRef, ChildProcessSpawnSyncBridgeRef, ChildProcessStdinCloseBridgeRef, ChildProcessStdinWriteBridgeRef, CryptoRandomFillBridgeRef, CryptoRandomUuidBridgeRef, DynamicImportBridgeRef, FsChmodBridgeRef, FsChownBridgeRef, FsExistsBridgeRef, FsFacadeBridge, FsLinkBridgeRef, FsLstatBridgeRef, FsMkdirBridgeRef, FsReadDirBridgeRef, FsReadFileBinaryBridgeRef, FsReadFileBridgeRef, FsReadlinkBridgeRef, FsRenameBridgeRef, FsRmdirBridgeRef, FsStatBridgeRef, FsSymlinkBridgeRef, FsTruncateBridgeRef, FsUnlinkBridgeRef, FsUtimesBridgeRef, FsWriteFileBinaryBridgeRef, FsWriteFileBridgeRef, HostBridgeGlobalKey, LoadFileBridgeRef, LoadPolyfillBridgeRef, ModuleCacheBridgeRecord, NetworkDnsLookupRawBridgeRef, NetworkFetchRawBridgeRef, NetworkHttpRequestRawBridgeRef, NetworkHttpServerCloseRawBridgeRef, NetworkHttpServerListenRawBridgeRef, UpgradeSocketWriteRawBridgeRef, UpgradeSocketEndRawBridgeRef, UpgradeSocketDestroyRawBridgeRef, ProcessErrorBridgeRef, ProcessLogBridgeRef, RegisterHandleBridgeFn, RequireFromBridgeFn, ResolveModuleBridgeRef, RuntimeBridgeGlobalKey, ScheduleTimerBridgeRef, UnregisterHandleBridgeFn, ValueOf, } from "@secure-exec/core";
|
|
2
2
|
export { BRIDGE_GLOBAL_KEY_LIST, HOST_BRIDGE_GLOBAL_KEY_LIST, HOST_BRIDGE_GLOBAL_KEYS, RUNTIME_BRIDGE_GLOBAL_KEY_LIST, RUNTIME_BRIDGE_GLOBAL_KEYS, } from "@secure-exec/core";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "secure-exec",
|
|
3
|
-
"version": "0.1.1-rc.
|
|
3
|
+
"version": "0.1.1-rc.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -16,25 +16,28 @@
|
|
|
16
16
|
},
|
|
17
17
|
"exports": {
|
|
18
18
|
".": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
19
20
|
"import": "./dist/index.js",
|
|
20
|
-
"
|
|
21
|
+
"default": "./dist/index.js"
|
|
21
22
|
},
|
|
22
23
|
"./browser": {
|
|
24
|
+
"types": "./dist/browser-runtime.d.ts",
|
|
23
25
|
"import": "./dist/browser-runtime.js",
|
|
24
|
-
"
|
|
26
|
+
"default": "./dist/browser-runtime.js"
|
|
25
27
|
},
|
|
26
28
|
"./python": {
|
|
29
|
+
"types": "./dist/python-runtime.d.ts",
|
|
27
30
|
"import": "./dist/python-runtime.js",
|
|
28
|
-
"
|
|
31
|
+
"default": "./dist/python-runtime.js"
|
|
29
32
|
}
|
|
30
33
|
},
|
|
31
34
|
"dependencies": {
|
|
32
|
-
"@secure-exec/core": "0.1.1-rc.
|
|
33
|
-
"@secure-exec/node": "0.1.1-rc.
|
|
35
|
+
"@secure-exec/core": "0.1.1-rc.3",
|
|
36
|
+
"@secure-exec/node": "0.1.1-rc.3"
|
|
34
37
|
},
|
|
35
38
|
"optionalDependencies": {
|
|
36
|
-
"@secure-exec/browser": "0.1.1-rc.
|
|
37
|
-
"@secure-exec/python": "0.1.1-rc.
|
|
39
|
+
"@secure-exec/browser": "0.1.1-rc.3",
|
|
40
|
+
"@secure-exec/python": "0.1.1-rc.3"
|
|
38
41
|
},
|
|
39
42
|
"devDependencies": {
|
|
40
43
|
"@mariozechner/pi-coding-agent": "^0.60.0",
|
|
@@ -46,7 +49,7 @@
|
|
|
46
49
|
"tsx": "^4.19.2",
|
|
47
50
|
"typescript": "^5.7.2",
|
|
48
51
|
"vitest": "^2.1.8",
|
|
49
|
-
"@secure-exec/v8": "0.1.1-rc.
|
|
52
|
+
"@secure-exec/v8": "0.1.1-rc.3"
|
|
50
53
|
},
|
|
51
54
|
"scripts": {
|
|
52
55
|
"check-types": "tsc --noEmit",
|
|
@@ -57,6 +60,7 @@
|
|
|
57
60
|
"test:integration:node": "pnpm run test:test-suite && pnpm run test:runtime-driver",
|
|
58
61
|
"test:integration:browser": "vitest run --config vitest.browser.config.ts tests/test-suite/node.test.ts tests/runtime-driver/browser/runtime.test.ts",
|
|
59
62
|
"test:project-matrix": "vitest run tests/project-matrix.test.ts",
|
|
63
|
+
"test:e2e-docker": "vitest run tests/e2e-docker.test.ts",
|
|
60
64
|
"test": "vitest run",
|
|
61
65
|
"test:watch": "vitest"
|
|
62
66
|
}
|