@poe-platform/safe-js 0.1.798 → 0.1.800

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.
Files changed (44) hide show
  1. package/README.md +3 -1
  2. package/dist/safe-js/chunks/{chunk-ULPZIHB5.js → chunk-5RLD4TVI.js} +174 -127
  3. package/dist/safe-js/chunks/{chunk-TBZILU4U.js → chunk-7THYP46K.js} +1 -1
  4. package/dist/safe-js/chunks/{chunk-UU4T2KIT.js → chunk-CK3YK2EC.js} +1 -1
  5. package/dist/safe-js/chunks/{chunk-3O7HA6WT.js → chunk-F6Y734YA.js} +2 -2
  6. package/dist/safe-js/chunks/{chunk-OPYN6N5M.js → chunk-HPHCQNFV.js} +154 -1
  7. package/dist/safe-js/chunks/{chunk-W6C3Q6U4.js → chunk-LWHXSNF6.js} +2 -2
  8. package/dist/safe-js/chunks/{chunk-ZKLJW27N.js → chunk-PMOXSLM5.js} +1 -1
  9. package/dist/safe-js/chunks/{chunk-M6S3F3WM.js → chunk-QEDOBN2G.js} +4 -4
  10. package/dist/safe-js/chunks/chunk-QRWRR6IA.js +78 -0
  11. package/dist/safe-js/chunks/{chunk-MCFRB5X3.js → chunk-SHMRT4QX.js} +76 -6
  12. package/dist/safe-js/chunks/{chunk-KULEMOAE.js → chunk-XAV2RKLO.js} +3 -154
  13. package/dist/safe-js/chunks/{chunk-MDJ7MJYI.js → chunk-XOMGWE37.js} +2 -2
  14. package/dist/safe-js/chunks/{chunk-QTCPJ7FN.js → chunk-XV5OYKND.js} +1 -1
  15. package/dist/safe-js/chunks/{chunk-OTVZWRYE.js → chunk-YAHDXC7P.js} +1 -1
  16. package/dist/safe-js/chunks/{cli-runtime-DYXJZCGV.js → cli-runtime-OCWFX4TM.js} +15 -15
  17. package/dist/safe-js/chunks/{dump-XDJEF2LG.js → dump-KUPBSXSL.js} +2 -2
  18. package/dist/safe-js/chunks/{harness-32OOFC5A.js → harness-3DDUS3RY.js} +2 -2
  19. package/dist/safe-js/chunks/{mcp-PTCA53MN.js → mcp-4D3WWY7U.js} +3 -3
  20. package/dist/safe-js/chunks/{migration-file-EEGIOHQB.js → migration-file-4CYSJ6LO.js} +3 -3
  21. package/dist/safe-js/chunks/{restore-U3CCH36B.js → restore-GDHBT5ZD.js} +3 -3
  22. package/dist/safe-js/chunks/{run-Q74MU3QQ.js → run-3X6J7FPV.js} +5 -5
  23. package/dist/safe-js/chunks/{runtime-modules-SL5D6LAJ.js → runtime-modules-MGSXY4BN.js} +2 -2
  24. package/dist/safe-js/cli.js +2 -2
  25. package/dist/safe-js/core.d.ts +6 -0
  26. package/dist/safe-js/core.js +33 -7
  27. package/dist/safe-js/index.js +24 -93
  28. package/dist/safe-js/interp/data-copy.d.ts +3 -2
  29. package/dist/safe-js/interp/host-bridge.d.ts +5 -4
  30. package/dist/safe-js/modules/fs.js +2 -2
  31. package/dist/safe-js/node-unavailable.d.ts +1 -0
  32. package/dist/safe-js/portable/chunks/chunk-H5X3T5VP.js +909 -0
  33. package/dist/safe-js/portable/chunks/chunk-KYJVK33V.js +58698 -0
  34. package/dist/safe-js/portable/chunks/chunk-XCTU25SU.js +111 -0
  35. package/dist/safe-js/portable/chunks/source-files-CVU252FB.js +7 -0
  36. package/dist/safe-js/portable/core.js +14757 -0
  37. package/dist/safe-js/portable/modules/fs.js +9 -0
  38. package/dist/safe-js/snapshot/arguments.d.ts +2 -0
  39. package/dist/safe-js/snapshot/property-descriptors.d.ts +2 -0
  40. package/dist/safe-js/snapshot/regexp-properties.d.ts +2 -0
  41. package/dist/safe-js/snapshot/symbols.d.ts +2 -0
  42. package/dist/safe-js/workerd.d.ts +3 -0
  43. package/dist/safe-js/workerd.js +74425 -0
  44. package/package.json +30 -6
@@ -0,0 +1,9 @@
1
+ import {
2
+ FS_OPTION_SURFACE,
3
+ makeFsModule
4
+ } from "../chunks/chunk-KYJVK33V.js";
5
+ import "../chunks/chunk-H5X3T5VP.js";
6
+ export {
7
+ FS_OPTION_SURFACE,
8
+ makeFsModule
9
+ };
@@ -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;
@@ -0,0 +1,3 @@
1
+ export * from "./core.js";
2
+ export type { RunOptions, RunResult } from "./run.js";
3
+ export { declareHostOperation } from "./interp/host-bridge.js";