sandboxedjs 0.1.47 → 0.1.49
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/agent.d.cts +2 -1
- package/dist/agent.d.ts +2 -1
- package/dist/{container-DyRF-bY0.d.cts → container-DBMPLbUu.d.ts} +103 -410
- package/dist/{container-DyRF-bY0.d.ts → container-Dg8NwBc7.d.cts} +103 -410
- package/dist/index.cjs +2483 -311
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +52 -65
- package/dist/index.d.ts +52 -65
- package/dist/index.js +2479 -310
- package/dist/index.js.map +1 -1
- package/dist/memory-volume-CTOXNJ6n.d.ts +66 -0
- package/dist/memory-volume-DCzGZFJb.d.cts +66 -0
- package/dist/python/python.data +16026 -66
- package/dist/python/python.js +2 -0
- package/dist/python/python.wasm +0 -0
- package/dist/python/python.worker.js +87 -0
- package/dist/python/runtime.json +34 -0
- package/dist/python-abi.cjs +2892 -0
- package/dist/python-abi.cjs.map +1 -0
- package/dist/python-abi.d.cts +645 -0
- package/dist/python-abi.d.ts +645 -0
- package/dist/python-abi.js +2839 -0
- package/dist/python-abi.js.map +1 -0
- package/dist/python-worker.js +865 -0
- package/dist/python-worker.js.map +1 -0
- package/dist/rolldown-wasi-worker.js +5 -1
- package/dist/rolldown-wasi-worker.js.map +1 -1
- package/dist/service-worker.js +34 -5
- package/dist/service-worker.js.map +1 -1
- package/dist/vfs-DzEcPbMY.d.cts +427 -0
- package/dist/vfs-DzEcPbMY.d.ts +427 -0
- package/package.json +8 -3
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { R as RuntimeVolume, c as VolumeStat, d as VolumeStats } from './vfs-DzEcPbMY.js';
|
|
2
|
+
|
|
3
|
+
type NodeKind = "file" | "directory" | "symlink";
|
|
4
|
+
interface MemoryVolumeSnapshotEntry {
|
|
5
|
+
path: string;
|
|
6
|
+
ino: number;
|
|
7
|
+
kind: NodeKind;
|
|
8
|
+
mode: number;
|
|
9
|
+
uid: number;
|
|
10
|
+
gid: number;
|
|
11
|
+
nlink: number;
|
|
12
|
+
data: number[];
|
|
13
|
+
target: string;
|
|
14
|
+
atimeMs: number;
|
|
15
|
+
mtimeMs: number;
|
|
16
|
+
ctimeMs: number;
|
|
17
|
+
birthtimeMs: number;
|
|
18
|
+
}
|
|
19
|
+
/** Browser-safe, synchronous in-memory filesystem used by the new runtime. */
|
|
20
|
+
declare class MemoryVolume implements RuntimeVolume {
|
|
21
|
+
private readonly entries;
|
|
22
|
+
private nextIno;
|
|
23
|
+
constructor();
|
|
24
|
+
readFileSync(path: string): Uint8Array;
|
|
25
|
+
writeFileSync(path: string, data: string | Uint8Array): void;
|
|
26
|
+
appendFileSync(path: string, data: string | Uint8Array): void;
|
|
27
|
+
readdirSync(path: string): string[];
|
|
28
|
+
lstatSync(path: string): VolumeStat;
|
|
29
|
+
readlinkSync(path: string): string;
|
|
30
|
+
mkdirSync(path: string, options?: {
|
|
31
|
+
mode?: number;
|
|
32
|
+
}): void;
|
|
33
|
+
rmdirSync(path: string): void;
|
|
34
|
+
unlinkSync(path: string): void;
|
|
35
|
+
renameSync(from: string, to: string): void;
|
|
36
|
+
symlinkSync(target: string, path: string): void;
|
|
37
|
+
linkSync(existing: string, path: string): void;
|
|
38
|
+
truncateSync(path: string, length?: number): void;
|
|
39
|
+
chmodSync(path: string, mode: number): void;
|
|
40
|
+
lchmodSync(path: string, mode: number): void;
|
|
41
|
+
chownSync(path: string, uid: number, gid: number): void;
|
|
42
|
+
lchownSync(path: string, uid: number, gid: number): void;
|
|
43
|
+
utimesSync(path: string, atime: Date, mtime: Date): void;
|
|
44
|
+
getStats(): VolumeStats;
|
|
45
|
+
snapshot(): MemoryVolumeSnapshotEntry[];
|
|
46
|
+
restore(snapshot: MemoryVolumeSnapshotEntry[]): void;
|
|
47
|
+
/** Serializable representation used by RuntimePod snapshots. */
|
|
48
|
+
export(): Array<{
|
|
49
|
+
path: string;
|
|
50
|
+
kind: NodeKind;
|
|
51
|
+
mode: number;
|
|
52
|
+
uid: number;
|
|
53
|
+
gid: number;
|
|
54
|
+
data?: number[];
|
|
55
|
+
target?: string;
|
|
56
|
+
}>;
|
|
57
|
+
private setMode;
|
|
58
|
+
private setOwner;
|
|
59
|
+
private key;
|
|
60
|
+
private required;
|
|
61
|
+
private requireParent;
|
|
62
|
+
private inode;
|
|
63
|
+
private touchChanged;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export { MemoryVolume as M, type MemoryVolumeSnapshotEntry as a };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { R as RuntimeVolume, c as VolumeStat, d as VolumeStats } from './vfs-DzEcPbMY.cjs';
|
|
2
|
+
|
|
3
|
+
type NodeKind = "file" | "directory" | "symlink";
|
|
4
|
+
interface MemoryVolumeSnapshotEntry {
|
|
5
|
+
path: string;
|
|
6
|
+
ino: number;
|
|
7
|
+
kind: NodeKind;
|
|
8
|
+
mode: number;
|
|
9
|
+
uid: number;
|
|
10
|
+
gid: number;
|
|
11
|
+
nlink: number;
|
|
12
|
+
data: number[];
|
|
13
|
+
target: string;
|
|
14
|
+
atimeMs: number;
|
|
15
|
+
mtimeMs: number;
|
|
16
|
+
ctimeMs: number;
|
|
17
|
+
birthtimeMs: number;
|
|
18
|
+
}
|
|
19
|
+
/** Browser-safe, synchronous in-memory filesystem used by the new runtime. */
|
|
20
|
+
declare class MemoryVolume implements RuntimeVolume {
|
|
21
|
+
private readonly entries;
|
|
22
|
+
private nextIno;
|
|
23
|
+
constructor();
|
|
24
|
+
readFileSync(path: string): Uint8Array;
|
|
25
|
+
writeFileSync(path: string, data: string | Uint8Array): void;
|
|
26
|
+
appendFileSync(path: string, data: string | Uint8Array): void;
|
|
27
|
+
readdirSync(path: string): string[];
|
|
28
|
+
lstatSync(path: string): VolumeStat;
|
|
29
|
+
readlinkSync(path: string): string;
|
|
30
|
+
mkdirSync(path: string, options?: {
|
|
31
|
+
mode?: number;
|
|
32
|
+
}): void;
|
|
33
|
+
rmdirSync(path: string): void;
|
|
34
|
+
unlinkSync(path: string): void;
|
|
35
|
+
renameSync(from: string, to: string): void;
|
|
36
|
+
symlinkSync(target: string, path: string): void;
|
|
37
|
+
linkSync(existing: string, path: string): void;
|
|
38
|
+
truncateSync(path: string, length?: number): void;
|
|
39
|
+
chmodSync(path: string, mode: number): void;
|
|
40
|
+
lchmodSync(path: string, mode: number): void;
|
|
41
|
+
chownSync(path: string, uid: number, gid: number): void;
|
|
42
|
+
lchownSync(path: string, uid: number, gid: number): void;
|
|
43
|
+
utimesSync(path: string, atime: Date, mtime: Date): void;
|
|
44
|
+
getStats(): VolumeStats;
|
|
45
|
+
snapshot(): MemoryVolumeSnapshotEntry[];
|
|
46
|
+
restore(snapshot: MemoryVolumeSnapshotEntry[]): void;
|
|
47
|
+
/** Serializable representation used by RuntimePod snapshots. */
|
|
48
|
+
export(): Array<{
|
|
49
|
+
path: string;
|
|
50
|
+
kind: NodeKind;
|
|
51
|
+
mode: number;
|
|
52
|
+
uid: number;
|
|
53
|
+
gid: number;
|
|
54
|
+
data?: number[];
|
|
55
|
+
target?: string;
|
|
56
|
+
}>;
|
|
57
|
+
private setMode;
|
|
58
|
+
private setOwner;
|
|
59
|
+
private key;
|
|
60
|
+
private required;
|
|
61
|
+
private requireParent;
|
|
62
|
+
private inode;
|
|
63
|
+
private touchChanged;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export { MemoryVolume as M, type MemoryVolumeSnapshotEntry as a };
|