@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.
- package/dist/safe-js/chunks/{chunk-TQ4EDT4V.js → chunk-N63L3JON.js} +2 -2
- package/dist/safe-js/chunks/{chunk-7A542ATS.js → chunk-RMMSTECW.js} +49 -43
- package/dist/safe-js/chunks/{chunk-7A542ATS.js.map → chunk-RMMSTECW.js.map} +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-TQ4EDT4V.js.map → chunk-N63L3JON.js.map} +0 -0
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
validateMigrationSemantics,
|
|
28
28
|
validateSnapshotData,
|
|
29
29
|
validateSnapshotMigration
|
|
30
|
-
} from "./chunk-
|
|
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-
|
|
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
|
-
|
|
19737
|
-
|
|
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
|
|
19871
|
-
|
|
19872
|
-
|
|
19873
|
-
|
|
19874
|
-
|
|
19875
|
-
|
|
19876
|
-
|
|
19877
|
-
|
|
19878
|
-
|
|
19879
|
-
|
|
19880
|
-
|
|
19881
|
-
|
|
19882
|
-
|
|
19883
|
-
|
|
19884
|
-
|
|
19885
|
-
|
|
19886
|
-
|
|
19887
|
-
|
|
19888
|
-
|
|
19889
|
-
|
|
19890
|
-
|
|
19891
|
-
|
|
19892
|
-
|
|
19893
|
-
|
|
19894
|
-
|
|
19895
|
-
|
|
19896
|
-
|
|
19897
|
-
|
|
19898
|
-
|
|
19899
|
-
|
|
19900
|
-
|
|
19901
|
-
|
|
19902
|
-
|
|
19903
|
-
|
|
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
|
-
|
|
19919
|
-
|
|
19920
|
-
|
|
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-
|
|
56312
|
+
//# sourceMappingURL=chunk-RMMSTECW.js.map
|