@formatjs/intl-locale 4.2.11 → 4.2.12

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.
Files changed (2) hide show
  1. package/package.json +9 -9
  2. package/polyfill.iife.js +11 -5
package/package.json CHANGED
@@ -1,17 +1,15 @@
1
1
  {
2
2
  "name": "@formatjs/intl-locale",
3
3
  "description": "Intl.Locale polyfill",
4
- "version": "4.2.11",
5
- "license": "MIT",
4
+ "version": "4.2.12",
6
5
  "author": "Long Ho <holevietlong@gmail.com>",
7
- "types": "index.d.ts",
6
+ "bugs": "https://github.com/formatjs/formatjs/issues",
8
7
  "dependencies": {
9
- "tslib": "^2.8.0",
10
- "@formatjs/ecma402-abstract": "2.3.4",
11
- "@formatjs/intl-enumerator": "1.8.10",
12
- "@formatjs/intl-getcanonicallocales": "2.5.5"
8
+ "@formatjs/ecma402-abstract": "2.3.5",
9
+ "@formatjs/intl-enumerator": "1.8.11",
10
+ "@formatjs/intl-getcanonicallocales": "2.5.6",
11
+ "tslib": "^2.8.0"
13
12
  },
14
- "bugs": "https://github.com/formatjs/formatjs/issues",
15
13
  "homepage": "https://github.com/formatjs/formatjs#readme",
16
14
  "keywords": [
17
15
  "ecma402",
@@ -22,6 +20,8 @@
22
20
  "react-intl",
23
21
  "tc39"
24
22
  ],
23
+ "license": "MIT",
25
24
  "main": "index.js",
26
- "repository": "formatjs/formatjs.git"
25
+ "repository": "formatjs/formatjs.git",
26
+ "types": "index.d.ts"
27
27
  }
package/polyfill.iife.js CHANGED
@@ -695,9 +695,9 @@
695
695
  }
696
696
  });
697
697
 
698
- // node_modules/.aspect_rules_js/decimal.js@10.5.0/node_modules/decimal.js/decimal.js
698
+ // node_modules/.aspect_rules_js/decimal.js@10.6.0/node_modules/decimal.js/decimal.js
699
699
  var require_decimal = __commonJS({
700
- "node_modules/.aspect_rules_js/decimal.js@10.5.0/node_modules/decimal.js/decimal.js"(exports, module) {
700
+ "node_modules/.aspect_rules_js/decimal.js@10.6.0/node_modules/decimal.js/decimal.js"(exports, module) {
701
701
  (function(globalScope) {
702
702
  "use strict";
703
703
  var EXP_LIMIT2 = 9e15, MAX_DIGITS2 = 1e9, NUMERALS2 = "0123456789abcdef", LN102 = "2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058", PI2 = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789", DEFAULTS2 = {
@@ -3438,6 +3438,12 @@
3438
3438
  return mod2(Day(t) + 4, 7);
3439
3439
  }
3440
3440
  function DayFromYear(y) {
3441
+ if (y < 100) {
3442
+ var date = /* @__PURE__ */ new Date(0);
3443
+ date.setUTCFullYear(y, 0, 1);
3444
+ date.setUTCHours(0, 0, 0, 0);
3445
+ return date.getTime() / MS_PER_DAY;
3446
+ }
3441
3447
  return Date.UTC(y, 0) / MS_PER_DAY;
3442
3448
  }
3443
3449
  function TimeFromYear(y) {
@@ -20550,7 +20556,7 @@
20550
20556
  }
20551
20557
  });
20552
20558
 
20553
- // node_modules/.aspect_rules_js/decimal.js@10.5.0/node_modules/decimal.js/decimal.mjs
20559
+ // node_modules/.aspect_rules_js/decimal.js@10.6.0/node_modules/decimal.js/decimal.mjs
20554
20560
  var EXP_LIMIT = 9e15;
20555
20561
  var MAX_DIGITS = 1e9;
20556
20562
  var NUMERALS = "0123456789abcdef";
@@ -31321,7 +31327,7 @@
31321
31327
 
31322
31328
  decimal.js/decimal.js:
31323
31329
  (*!
31324
- * decimal.js v10.5.0
31330
+ * decimal.js v10.6.0
31325
31331
  * An arbitrary-precision Decimal type for JavaScript.
31326
31332
  * https://github.com/MikeMcl/decimal.js
31327
31333
  * Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
@@ -31330,7 +31336,7 @@ decimal.js/decimal.js:
31330
31336
 
31331
31337
  decimal.js/decimal.mjs:
31332
31338
  (*!
31333
- * decimal.js v10.5.0
31339
+ * decimal.js v10.6.0
31334
31340
  * An arbitrary-precision Decimal type for JavaScript.
31335
31341
  * https://github.com/MikeMcl/decimal.js
31336
31342
  * Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>