@poe-platform/safe-js 0.1.465 → 0.1.466
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-BTSRG46T.js → chunk-3HK3GDZB.js} +12 -1
- package/dist/safe-js/chunks/{chunk-BTSRG46T.js.map → chunk-3HK3GDZB.js.map} +2 -2
- package/dist/safe-js/chunks/{chunk-5VDQL2IH.js → chunk-DHUE7ZF2.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-5VDQL2IH.js.map → chunk-DHUE7ZF2.js.map} +0 -0
|
@@ -18332,6 +18332,17 @@ var localeData = Object.freeze({
|
|
|
18332
18332
|
// packages/safe-js/src/interp/numberformat-numbering.ts
|
|
18333
18333
|
var NativeNumberFormat = Intl.NumberFormat;
|
|
18334
18334
|
function localizeNumberParts(parts, locale, options) {
|
|
18335
|
+
parts = parts.flatMap((part) => {
|
|
18336
|
+
if (part.type !== "minusSign" && part.type !== "plusSign") return [part];
|
|
18337
|
+
const separated = [];
|
|
18338
|
+
for (const char of part.value) {
|
|
18339
|
+
const type = ["\u061C", "\u200E", "\u200F"].includes(char) ? "literal" : part.type;
|
|
18340
|
+
const previous = separated.at(-1);
|
|
18341
|
+
if (previous?.type === type) previous.value += char;
|
|
18342
|
+
else separated.push({ ...part, type, value: char });
|
|
18343
|
+
}
|
|
18344
|
+
return separated;
|
|
18345
|
+
});
|
|
18335
18346
|
const numberingSystem = options.numberingSystem;
|
|
18336
18347
|
const pluralType = options.style === "unit" ? "unit" : options.style === "currency" && options.currencyDisplay === "name" ? "currency" : void 0;
|
|
18337
18348
|
const integralPlural = pluralType !== void 0 && options.notation === "standard" && !parts.some((part) => part.type === "fraction");
|
|
@@ -56712,4 +56723,4 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
56712
56723
|
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.
|
|
56713
56724
|
|
|
56714
56725
|
*/
|
|
56715
|
-
//# sourceMappingURL=chunk-
|
|
56726
|
+
//# sourceMappingURL=chunk-3HK3GDZB.js.map
|