@poe-platform/safe-js 0.1.469 → 0.1.471
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/safe-js/chunks/{chunk-J72Q6BW5.js → chunk-D26DLMQR.js} +382 -13
- package/dist/safe-js/chunks/{chunk-J72Q6BW5.js.map → chunk-D26DLMQR.js.map} +4 -4
- package/dist/safe-js/chunks/{chunk-566GCASZ.js → chunk-QMJGHTCP.js} +2 -2
- package/dist/safe-js/cli.js +2 -2
- package/dist/safe-js/core.js +1 -1
- package/dist/safe-js/index.js +2 -2
- package/dist/safe-js/interp/intl-duration-options.d.ts +17 -0
- package/dist/safe-js/interp/intl-durationformat.d.ts +11 -0
- package/dist/safe-js/snapshot/guest-heap.d.ts +5 -0
- package/package.json +3 -2
- /package/dist/safe-js/chunks/{chunk-566GCASZ.js.map → chunk-QMJGHTCP.js.map} +0 -0
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
validateMigrationSemantics,
|
|
28
28
|
validateSnapshotData,
|
|
29
29
|
validateSnapshotMigration
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-D26DLMQR.js";
|
|
31
31
|
|
|
32
32
|
// packages/safe-js/src/migrate.ts
|
|
33
33
|
import { createHash } from "node:crypto";
|
|
@@ -8249,4 +8249,4 @@ export {
|
|
|
8249
8249
|
parseMcpConfig,
|
|
8250
8250
|
makeMcpModule
|
|
8251
8251
|
};
|
|
8252
|
-
//# sourceMappingURL=chunk-
|
|
8252
|
+
//# sourceMappingURL=chunk-QMJGHTCP.js.map
|
package/dist/safe-js/cli.js
CHANGED
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
resolveFsConfig,
|
|
23
23
|
splitFrontmatter,
|
|
24
24
|
withBrokenPipeGuard
|
|
25
|
-
} from "./chunks/chunk-
|
|
25
|
+
} from "./chunks/chunk-QMJGHTCP.js";
|
|
26
26
|
import {
|
|
27
27
|
Budget,
|
|
28
28
|
SandboxError,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
replaceErrorStack,
|
|
35
35
|
restore,
|
|
36
36
|
run
|
|
37
|
-
} from "./chunks/chunk-
|
|
37
|
+
} from "./chunks/chunk-D26DLMQR.js";
|
|
38
38
|
import "./chunks/chunk-4YIDX44G.js";
|
|
39
39
|
|
|
40
40
|
// packages/safe-js/src/cli.ts
|
package/dist/safe-js/core.js
CHANGED
package/dist/safe-js/index.js
CHANGED
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
runWithSpawnUsageAccumulator,
|
|
27
27
|
splitFrontmatter,
|
|
28
28
|
supportsSpawnMode
|
|
29
|
-
} from "./chunks/chunk-
|
|
29
|
+
} from "./chunks/chunk-QMJGHTCP.js";
|
|
30
30
|
import {
|
|
31
31
|
Budget,
|
|
32
32
|
FileSnapshotBackend,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
registerPendingHostCallPolicy,
|
|
51
51
|
restore,
|
|
52
52
|
run
|
|
53
|
-
} from "./chunks/chunk-
|
|
53
|
+
} from "./chunks/chunk-D26DLMQR.js";
|
|
54
54
|
import "./chunks/chunk-4YIDX44G.js";
|
|
55
55
|
|
|
56
56
|
// packages/safe-js/src/parse.ts
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Budget } from "./budget.js";
|
|
2
|
+
import type { SandboxCallContext, SandboxValue } from "./values.js";
|
|
3
|
+
export declare function readDurationOptions(value: SandboxValue, locales: string[], budget: Budget, context?: SandboxCallContext): Promise<{
|
|
4
|
+
style: string;
|
|
5
|
+
units: Record<string, {
|
|
6
|
+
style: string;
|
|
7
|
+
display: string;
|
|
8
|
+
}>;
|
|
9
|
+
fractionalDigits: number | undefined;
|
|
10
|
+
locale: string;
|
|
11
|
+
numberingSystem: string;
|
|
12
|
+
separator: string;
|
|
13
|
+
}>;
|
|
14
|
+
export declare function readDurationUnitOptions(input: SandboxValue, unit: string, base: string, previous: string, budget: Budget, context?: SandboxCallContext): Promise<{
|
|
15
|
+
style: string;
|
|
16
|
+
display: string;
|
|
17
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { readDurationOptions } from "./intl-duration-options.js";
|
|
2
|
+
import type { SandboxObject } from "./values.js";
|
|
3
|
+
export type DurationSettings = Omit<Awaited<ReturnType<typeof readDurationOptions>>, "fractionalDigits"> & {
|
|
4
|
+
fractionalDigits?: number;
|
|
5
|
+
};
|
|
6
|
+
export declare function createSandboxDurationFormat(settings: DurationSettings): SandboxObject;
|
|
7
|
+
export declare function isSandboxDurationFormat(value: unknown): value is SandboxObject;
|
|
8
|
+
export declare function durationFormatState(value: unknown): {
|
|
9
|
+
settings: DurationSettings;
|
|
10
|
+
options: Record<string, string | number | undefined>;
|
|
11
|
+
};
|
|
@@ -4,6 +4,7 @@ import { type ResolvedListFormatOptions } from "../interp/intl-listformat.js";
|
|
|
4
4
|
import { type ResolvedRelativeTimeFormatOptions } from "../interp/intl-relativetimeformat.js";
|
|
5
5
|
import { type ResolvedDisplayNamesOptions } from "../interp/intl-displaynames.js";
|
|
6
6
|
import { type ResolvedPluralRulesOptions } from "../interp/intl-pluralrules.js";
|
|
7
|
+
import { type DurationSettings } from "../interp/intl-durationformat.js";
|
|
7
8
|
import { type SegmenterOptions } from "../interp/intl-segmenter.js";
|
|
8
9
|
import { type NumberFormatOptions } from "../interp/intl-numberformat.js";
|
|
9
10
|
import { type DateTimeFormatOptions } from "../interp/intl-datetimeformat.js";
|
|
@@ -256,6 +257,10 @@ export type GuestHeapNode<T> = {
|
|
|
256
257
|
kind: "guest-pluralrules";
|
|
257
258
|
options: ResolvedPluralRulesOptions;
|
|
258
259
|
state: GuestObjectState<T>;
|
|
260
|
+
} | {
|
|
261
|
+
kind: "guest-durationformat";
|
|
262
|
+
settings: DurationSettings;
|
|
263
|
+
state: GuestObjectState<T>;
|
|
259
264
|
} | {
|
|
260
265
|
kind: "guest-segmenter";
|
|
261
266
|
options: SegmenterOptions;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poe-platform/safe-js",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.471",
|
|
4
4
|
"description": "Budgeted JavaScript interpreter with explicit host capabilities and resumable execution",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -58,10 +58,11 @@
|
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@poe-platform/safe-fs": "0.1.
|
|
61
|
+
"@poe-platform/safe-fs": "0.1.471",
|
|
62
62
|
"@petamoriken/float16": "^3.9.3",
|
|
63
63
|
"@formatjs/intl-localematcher": "0.8.13",
|
|
64
64
|
"@formatjs/bigdecimal": "0.2.7",
|
|
65
|
+
"@formatjs/intl-durationformat": "0.10.18",
|
|
65
66
|
"yaml": "^2.8.2",
|
|
66
67
|
"jose": "^6.1.3",
|
|
67
68
|
"@formatjs/intl-numberformat": "9.4.0",
|
|
File without changes
|