@poe-platform/safe-js 0.1.799 → 0.1.801
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/README.md +4 -2
- package/dist/safe-js/chunks/{chunk-KULEMOAE.js → chunk-4KMUWNZD.js} +5 -156
- package/dist/safe-js/chunks/{chunk-ULPZIHB5.js → chunk-5RLD4TVI.js} +174 -127
- package/dist/safe-js/chunks/{chunk-MCFRB5X3.js → chunk-6H5VC5W5.js} +84 -14
- package/dist/safe-js/chunks/{chunk-TBZILU4U.js → chunk-7THYP46K.js} +1 -1
- package/dist/safe-js/chunks/{chunk-UU4T2KIT.js → chunk-CK3YK2EC.js} +1 -1
- package/dist/safe-js/chunks/{chunk-3O7HA6WT.js → chunk-F6Y734YA.js} +2 -2
- package/dist/safe-js/chunks/{chunk-M6S3F3WM.js → chunk-HFRBLE6Y.js} +42 -36
- package/dist/safe-js/chunks/{chunk-OPYN6N5M.js → chunk-HPHCQNFV.js} +154 -1
- package/dist/safe-js/chunks/{chunk-W6C3Q6U4.js → chunk-IB6WAQAE.js} +2 -2
- package/dist/safe-js/chunks/{chunk-ZKLJW27N.js → chunk-PMOXSLM5.js} +1 -1
- package/dist/safe-js/chunks/chunk-QRWRR6IA.js +78 -0
- package/dist/safe-js/chunks/{chunk-MDJ7MJYI.js → chunk-XOMGWE37.js} +2 -2
- package/dist/safe-js/chunks/{chunk-QTCPJ7FN.js → chunk-XV5OYKND.js} +1 -1
- package/dist/safe-js/chunks/{chunk-OTVZWRYE.js → chunk-YCFOANSU.js} +23 -18
- package/dist/safe-js/chunks/{cli-runtime-DYXJZCGV.js → cli-runtime-L4IABN2W.js} +15 -15
- package/dist/safe-js/chunks/{dump-XDJEF2LG.js → dump-KUPBSXSL.js} +2 -2
- package/dist/safe-js/chunks/{harness-32OOFC5A.js → harness-3DDUS3RY.js} +2 -2
- package/dist/safe-js/chunks/{mcp-PTCA53MN.js → mcp-5TMFK3UE.js} +3 -3
- package/dist/safe-js/chunks/{migration-file-EEGIOHQB.js → migration-file-4CYSJ6LO.js} +3 -3
- package/dist/safe-js/chunks/{restore-U3CCH36B.js → restore-GDHBT5ZD.js} +3 -3
- package/dist/safe-js/chunks/{run-Q74MU3QQ.js → run-M6N5KCPF.js} +5 -5
- package/dist/safe-js/chunks/{runtime-modules-SL5D6LAJ.js → runtime-modules-MGSXY4BN.js} +2 -2
- package/dist/safe-js/cli.js +2 -2
- package/dist/safe-js/core.d.ts +6 -0
- package/dist/safe-js/core.js +33 -7
- package/dist/safe-js/index.js +24 -93
- package/dist/safe-js/interp/data-copy.d.ts +3 -2
- package/dist/safe-js/interp/host-bridge.d.ts +5 -4
- package/dist/safe-js/modules/fs-config.d.ts +1 -0
- package/dist/safe-js/modules/fs.d.ts +2 -0
- package/dist/safe-js/modules/fs.js +2 -2
- package/dist/safe-js/node-unavailable.d.ts +1 -0
- package/dist/safe-js/portable/chunks/chunk-2FNMGWDK.js +58703 -0
- package/dist/safe-js/portable/chunks/chunk-H5X3T5VP.js +909 -0
- package/dist/safe-js/portable/chunks/chunk-XCTU25SU.js +111 -0
- package/dist/safe-js/portable/chunks/source-files-CVU252FB.js +7 -0
- package/dist/safe-js/portable/core.js +14763 -0
- package/dist/safe-js/portable/modules/fs.js +9 -0
- package/dist/safe-js/snapshot/arguments.d.ts +2 -0
- package/dist/safe-js/snapshot/property-descriptors.d.ts +2 -0
- package/dist/safe-js/snapshot/regexp-properties.d.ts +2 -0
- package/dist/safe-js/snapshot/symbols.d.ts +2 -0
- package/dist/safe-js/workerd.d.ts +3 -0
- package/dist/safe-js/workerd.js +74436 -0
- package/package.json +30 -6
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { SandboxObject, SandboxValue } from "../interp/values.js";
|
|
2
|
+
import { type DataCopyOperation } from "../interp/data-copy.js";
|
|
2
3
|
type PropertyFlags = {
|
|
3
4
|
configurable: boolean;
|
|
4
5
|
enumerable: boolean;
|
|
@@ -14,4 +15,5 @@ export type SerializedArguments<TValue> = {
|
|
|
14
15
|
}>;
|
|
15
16
|
};
|
|
16
17
|
export declare function serializeArguments<TValue>(value: SandboxObject, serializeValue: (entry: SandboxValue, key: string) => TValue): SerializedArguments<TValue>;
|
|
18
|
+
export declare function serializeArgumentsOperation<TValue>(value: SandboxObject, serializeValue: (entry: SandboxValue, key: string) => DataCopyOperation<TValue>): DataCopyOperation<TValue, SerializedArguments<TValue>>;
|
|
17
19
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type DataCopyOperation } from "../interp/data-copy.js";
|
|
1
2
|
type Descriptor<T> = {
|
|
2
3
|
enumerable: boolean;
|
|
3
4
|
configurable: boolean;
|
|
@@ -15,5 +16,6 @@ export type PropertyDescriptorData<T> = {
|
|
|
15
16
|
extensible: boolean;
|
|
16
17
|
};
|
|
17
18
|
export declare function serializePropertyDescriptors<T>(target: object, encode: (value: unknown) => T): PropertyDescriptorData<T>;
|
|
19
|
+
export declare function serializePropertyDescriptorsOperation<T>(target: object, encode: (value: unknown) => DataCopyOperation<T>): DataCopyOperation<T, PropertyDescriptorData<T>>;
|
|
18
20
|
export declare function restorePropertyDescriptors<T>(target: object, raw: unknown, decode: (value: T) => unknown): void;
|
|
19
21
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type SandboxRegex } from "../interp/values.js";
|
|
2
2
|
import { type SerializedSymbolProperty } from "./symbols.js";
|
|
3
|
+
import { type DataCopyOperation } from "../interp/data-copy.js";
|
|
3
4
|
type DataProperty<T> = {
|
|
4
5
|
value: T;
|
|
5
6
|
enumerable: boolean;
|
|
@@ -13,6 +14,7 @@ export type RegexPropertyData<T> = {
|
|
|
13
14
|
};
|
|
14
15
|
export declare function hasCustomRegexProperties(value: SandboxRegex): boolean;
|
|
15
16
|
export declare function serializeRegexProperties<T>(value: SandboxRegex, encode: (entry: unknown) => T): RegexPropertyData<T>;
|
|
17
|
+
export declare function serializeRegexPropertiesOperation<T>(value: SandboxRegex, encode: (entry: unknown) => DataCopyOperation<T>): DataCopyOperation<T, RegexPropertyData<T>>;
|
|
16
18
|
export declare function validateRegexProperties(data: RegexPropertyData<unknown>): void;
|
|
17
19
|
export declare function restoreRegexProperties<T>(value: SandboxRegex, data: RegexPropertyData<T>, decode: (entry: T) => unknown): void;
|
|
18
20
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type DataCopyOperation } from "../interp/data-copy.js";
|
|
1
2
|
export type SerializedSymbol = {
|
|
2
3
|
kind: "symbol";
|
|
3
4
|
description?: string;
|
|
@@ -16,4 +17,5 @@ export declare function serializeSymbol(value: symbol, heapIds: Map<object | sym
|
|
|
16
17
|
};
|
|
17
18
|
export declare function ownSerializableSymbolKeys(value: object): symbol[];
|
|
18
19
|
export declare function serializeSymbolProperties<T>(value: object, encode: (value: unknown) => T): Array<SerializedSymbolProperty<T>>;
|
|
20
|
+
export declare function serializeSymbolPropertiesOperation<T>(value: object, encode: (value: unknown) => DataCopyOperation<T>): DataCopyOperation<T, Array<SerializedSymbolProperty<T>>>;
|
|
19
21
|
export declare function restoreSymbolProperties<T>(target: object, entries: Array<SerializedSymbolProperty<T>> | undefined, decode: (value: T) => unknown): void;
|