@poe-platform/safe-js 0.1.286 → 0.1.287
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-HEI7BJVB.js → chunk-OK6MNHBQ.js} +15 -5
- package/dist/safe-js/chunks/{chunk-HEI7BJVB.js.map → chunk-OK6MNHBQ.js.map} +2 -2
- package/dist/safe-js/chunks/{chunk-2KGYHU5J.js → chunk-OZBMCFTD.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/package.json +2 -2
- /package/dist/safe-js/chunks/{chunk-2KGYHU5J.js.map → chunk-OZBMCFTD.js.map} +0 -0
|
@@ -21871,7 +21871,7 @@ function createDateGlobal(options) {
|
|
|
21871
21871
|
}
|
|
21872
21872
|
}
|
|
21873
21873
|
);
|
|
21874
|
-
const
|
|
21874
|
+
const clock = wrapCallerInjectedBindings({ now: readNow }, { ...options, moduleId: "<Date>" }).now;
|
|
21875
21875
|
const prototype = /* @__PURE__ */ Object.create(null);
|
|
21876
21876
|
const constructor = createSandboxClosure({
|
|
21877
21877
|
guest: true,
|
|
@@ -21879,11 +21879,11 @@ function createDateGlobal(options) {
|
|
|
21879
21879
|
name: "Date",
|
|
21880
21880
|
length: 7,
|
|
21881
21881
|
call: async (_args, context) => options.budget.allocateString(
|
|
21882
|
-
dateString(createSandboxDate(Number(await
|
|
21882
|
+
dateString(createSandboxDate(Number(await clock.call([], context))))
|
|
21883
21883
|
),
|
|
21884
21884
|
construct: async (args, context) => {
|
|
21885
21885
|
let time;
|
|
21886
|
-
if (args.length === 0) time = Number(await
|
|
21886
|
+
if (args.length === 0) time = Number(await clock.call([], context));
|
|
21887
21887
|
else if (args.length > 1) time = await coerceDateParts(args, false, options.budget, context);
|
|
21888
21888
|
else if (isSandboxDate(args[0])) time = dateTime(args[0]);
|
|
21889
21889
|
else {
|
|
@@ -21901,15 +21901,25 @@ function createDateGlobal(options) {
|
|
|
21901
21901
|
}
|
|
21902
21902
|
});
|
|
21903
21903
|
const staticProperties = {
|
|
21904
|
-
now
|
|
21904
|
+
now: createSandboxClosure({
|
|
21905
|
+
guest: true,
|
|
21906
|
+
sandbox: true,
|
|
21907
|
+
name: "now",
|
|
21908
|
+
length: 0,
|
|
21909
|
+
retainedValues: () => [clock],
|
|
21910
|
+
// Date.now ignores arguments; none may enter the host copy boundary.
|
|
21911
|
+
call: (_args, context) => clock.call([], context)
|
|
21912
|
+
}),
|
|
21905
21913
|
prototype,
|
|
21906
21914
|
parse: createSandboxClosure({
|
|
21915
|
+
guest: true,
|
|
21907
21916
|
sandbox: true,
|
|
21908
21917
|
name: "parse",
|
|
21909
21918
|
length: 1,
|
|
21910
21919
|
call: async ([value], context) => parseDate(await sandboxString(value, options.budget, context), options.budget)
|
|
21911
21920
|
}),
|
|
21912
21921
|
UTC: createSandboxClosure({
|
|
21922
|
+
guest: true,
|
|
21913
21923
|
sandbox: true,
|
|
21914
21924
|
name: "UTC",
|
|
21915
21925
|
length: 7,
|
|
@@ -40327,4 +40337,4 @@ export {
|
|
|
40327
40337
|
FileSnapshotBackend,
|
|
40328
40338
|
run
|
|
40329
40339
|
};
|
|
40330
|
-
//# sourceMappingURL=chunk-
|
|
40340
|
+
//# sourceMappingURL=chunk-OK6MNHBQ.js.map
|