@poe-platform/safe-js 0.1.459 → 0.1.461

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.
@@ -27,7 +27,7 @@ import {
27
27
  validateMigrationSemantics,
28
28
  validateSnapshotData,
29
29
  validateSnapshotMigration
30
- } from "./chunk-7A542ATS.js";
30
+ } from "./chunk-RMMSTECW.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-TQ4EDT4V.js.map
8252
+ //# sourceMappingURL=chunk-N63L3JON.js.map
@@ -11919,6 +11919,10 @@ var PluralRules = class PluralRules2 {
11919
11919
  if (val !== void 0) opts[field] = val;
11920
11920
  });
11921
11921
  opts.pluralCategories = [...PluralRules2.localeData[opts.locale].categories[opts.type]];
11922
+ opts.roundingIncrement = internalSlots.roundingIncrement;
11923
+ opts.roundingMode = internalSlots.roundingMode;
11924
+ opts.roundingPriority = internalSlots.roundingPriority;
11925
+ opts.trailingZeroDisplay = internalSlots.trailingZeroDisplay;
11922
11926
  return opts;
11923
11927
  }
11924
11928
  select(val) {
@@ -19733,8 +19737,9 @@ function getNumberMember(property, budget) {
19733
19737
  }
19734
19738
  return createSandboxClosure({
19735
19739
  sandbox: true,
19736
- name: `Number#${property}`,
19737
- ...property === "toLocaleString" ? { guest: true, name: property, length: 0 } : {},
19740
+ guest: true,
19741
+ name: property,
19742
+ length: property === "toLocaleString" ? 0 : 1,
19738
19743
  call: (args, context) => callNumberMethod(context?.thisValue, property, args, budget, context)
19739
19744
  });
19740
19745
  }
@@ -19867,41 +19872,42 @@ async function compareStringLocale(value, args, budget, context) {
19867
19872
  }
19868
19873
 
19869
19874
  // packages/safe-js/src/interp/methods/string.ts
19870
- var stringMethodNames = /* @__PURE__ */ new Set([
19871
- "at",
19872
- "charAt",
19873
- "charCodeAt",
19874
- "codePointAt",
19875
- "concat",
19876
- "endsWith",
19877
- "includes",
19878
- "indexOf",
19879
- "isWellFormed",
19880
- "lastIndexOf",
19881
- "localeCompare",
19882
- "match",
19883
- "matchAll",
19884
- "normalize",
19885
- "padEnd",
19886
- "padStart",
19887
- "repeat",
19888
- "replace",
19889
- "replaceAll",
19890
- "slice",
19891
- "search",
19892
- "split",
19893
- "startsWith",
19894
- "substr",
19895
- "substring",
19896
- "toLowerCase",
19897
- "toUpperCase",
19898
- "toLocaleLowerCase",
19899
- "toLocaleUpperCase",
19900
- "toWellFormed",
19901
- "trim",
19902
- "trimEnd",
19903
- "trimStart"
19904
- ]);
19875
+ var stringMethodLengths = {
19876
+ at: 1,
19877
+ charAt: 1,
19878
+ charCodeAt: 1,
19879
+ codePointAt: 1,
19880
+ concat: 1,
19881
+ endsWith: 1,
19882
+ includes: 1,
19883
+ indexOf: 1,
19884
+ isWellFormed: 0,
19885
+ lastIndexOf: 1,
19886
+ localeCompare: 1,
19887
+ match: 1,
19888
+ matchAll: 1,
19889
+ normalize: 0,
19890
+ padEnd: 1,
19891
+ padStart: 1,
19892
+ repeat: 1,
19893
+ replace: 2,
19894
+ replaceAll: 2,
19895
+ slice: 2,
19896
+ search: 1,
19897
+ split: 2,
19898
+ startsWith: 1,
19899
+ substr: 2,
19900
+ substring: 2,
19901
+ toLowerCase: 0,
19902
+ toUpperCase: 0,
19903
+ toLocaleLowerCase: 0,
19904
+ toLocaleUpperCase: 0,
19905
+ toWellFormed: 0,
19906
+ trim: 0,
19907
+ trimEnd: 0,
19908
+ trimStart: 0
19909
+ };
19910
+ var stringMethodNames = new Set(Object.keys(stringMethodLengths));
19905
19911
  function getStringMember(value, property, budget) {
19906
19912
  const index = getStringIndex(property);
19907
19913
  if (index !== void 0) {
@@ -19915,11 +19921,9 @@ function getStringMember(value, property, budget) {
19915
19921
  }
19916
19922
  return createSandboxClosure({
19917
19923
  sandbox: true,
19918
- name: `String#${property}`,
19919
- ...property === "trimStart" || property === "trimEnd" ? { guest: true, name: property, length: 0 } : {},
19920
- ...property === "toLocaleLowerCase" || property === "toLocaleUpperCase" ? { guest: true, name: property, length: 0 } : {},
19921
- ...property === "localeCompare" ? { length: 1 } : {},
19922
- ...property === "isWellFormed" || property === "toWellFormed" ? { length: 0 } : {},
19924
+ guest: true,
19925
+ name: property,
19926
+ length: stringMethodLengths[property],
19923
19927
  call: async (args, context) => {
19924
19928
  const receiver = context?.thisValue;
19925
19929
  if (receiver === null || receiver === void 0) {
@@ -20729,6 +20733,7 @@ function createPrimitiveConstructor(options, budget) {
20729
20733
  "valueOf",
20730
20734
  createSandboxClosure({
20731
20735
  sandbox: true,
20736
+ guest: true,
20732
20737
  name: "valueOf",
20733
20738
  length: 0,
20734
20739
  call: (_args, context) => primitiveReceiver(context?.thisValue, kind)
@@ -20742,6 +20747,7 @@ function createPrimitiveConstructor(options, budget) {
20742
20747
  "toString",
20743
20748
  createSandboxClosure({
20744
20749
  sandbox: true,
20750
+ guest: true,
20745
20751
  name: "toString",
20746
20752
  length: 0,
20747
20753
  call: (_args, context) => budget.allocateString(String(primitiveReceiver(context?.thisValue, kind)))
@@ -56303,4 +56309,4 @@ The above copyright notice and this permission notice shall be included in all c
56303
56309
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
56304
56310
 
56305
56311
  */
56306
- //# sourceMappingURL=chunk-7A542ATS.js.map
56312
+ //# sourceMappingURL=chunk-RMMSTECW.js.map