@formatjs/intl-supportedvaluesof 2.1.2 → 2.2.1

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 (65) hide show
  1. package/index.d.ts +8 -0
  2. package/index.js +2 -0
  3. package/package.json +5 -5
  4. package/polyfill-force.d.ts +1 -0
  5. package/polyfill-force.js +7 -0
  6. package/polyfill.d.ts +1 -0
  7. package/polyfill.iife.js +6105 -0
  8. package/polyfill.js +10 -0
  9. package/should-polyfill.d.ts +1 -0
  10. package/should-polyfill.js +3 -0
  11. package/src/calendars.generated.d.ts +2 -0
  12. package/src/calendars.generated.js +23 -0
  13. package/src/collations.generated.d.ts +2 -0
  14. package/src/collations.generated.js +23 -0
  15. package/src/currencies.generated.d.ts +2 -0
  16. package/src/currencies.generated.js +311 -0
  17. package/src/get-supported-calendars.d.ts +8 -0
  18. package/src/get-supported-calendars.js +27 -0
  19. package/src/get-supported-collations.d.ts +8 -0
  20. package/src/get-supported-collations.js +23 -0
  21. package/src/get-supported-currencies.d.ts +8 -0
  22. package/src/get-supported-currencies.js +50 -0
  23. package/src/get-supported-numbering-systems.d.ts +7 -0
  24. package/src/get-supported-numbering-systems.js +28 -0
  25. package/src/get-supported-timezones.d.ts +8 -0
  26. package/src/get-supported-timezones.js +25 -0
  27. package/src/get-supported-units.d.ts +7 -0
  28. package/src/get-supported-units.js +28 -0
  29. package/src/index.d.ts +33 -0
  30. package/src/index.js +34 -0
  31. package/src/memoize.d.ts +9 -0
  32. package/src/memoize.js +10 -0
  33. package/src/numbering-systems.generated.d.ts +1 -0
  34. package/src/numbering-systems.generated.js +99 -0
  35. package/src/timezones.generated.d.ts +2 -0
  36. package/src/timezones.generated.js +431 -0
  37. package/src/units.generated.d.ts +2 -0
  38. package/src/units.generated.js +47 -0
  39. package/BUILD.bazel +0 -135
  40. package/CHANGELOG.md +0 -249
  41. package/index.ts +0 -9
  42. package/polyfill-force.ts +0 -8
  43. package/polyfill.ts +0 -11
  44. package/scripts/calendars.ts +0 -21
  45. package/scripts/collations.ts +0 -21
  46. package/scripts/currencies.ts +0 -21
  47. package/scripts/timezones.ts +0 -22
  48. package/scripts/units.ts +0 -23
  49. package/should-polyfill.ts +0 -3
  50. package/src/calendars.generated.ts +0 -4
  51. package/src/collations.generated.ts +0 -4
  52. package/src/currencies.generated.ts +0 -4
  53. package/src/get-supported-calendars.ts +0 -32
  54. package/src/get-supported-collations.ts +0 -30
  55. package/src/get-supported-currencies.ts +0 -62
  56. package/src/get-supported-numbering-systems.ts +0 -35
  57. package/src/get-supported-timezones.ts +0 -29
  58. package/src/get-supported-units.ts +0 -73
  59. package/src/index.ts +0 -75
  60. package/src/memoize.ts +0 -19
  61. package/src/numbering-systems.generated.ts +0 -99
  62. package/src/timezones.generated.ts +0 -4
  63. package/src/units.generated.ts +0 -4
  64. package/tests/index.test.ts +0 -155
  65. package/tsconfig.json +0 -5
package/index.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ export type { SupportedValuesOf } from "./src/index.js";
2
+ export type { Calendar } from "./src/calendars.generated.js";
3
+ export type { Collation } from "./src/collations.generated.js";
4
+ export type { Currency } from "./src/currencies.generated.js";
5
+ export type { Timezone } from "./src/timezones.generated.js";
6
+ export type { Unit } from "./src/units.generated.js";
7
+ export { shouldPolyfill } from "./should-polyfill.js";
8
+ export { supportedValuesOf } from "./src/index.js";
package/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export { shouldPolyfill } from "./should-polyfill.js";
2
+ export { supportedValuesOf } from "./src/index.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@formatjs/intl-supportedvaluesof",
3
3
  "description": "Intl.supportedValuesOf polyfill",
4
- "version": "2.1.2",
4
+ "version": "2.2.1",
5
5
  "license": "MIT",
6
6
  "author": "Michele Riva <ciao@micheleriva.it>",
7
7
  "type": "module",
@@ -13,9 +13,9 @@
13
13
  "./should-polyfill.js": "./should-polyfill.js"
14
14
  },
15
15
  "dependencies": {
16
- "@formatjs/ecma402-abstract": "workspace:*",
17
- "@formatjs/fast-memoize": "workspace:*",
18
- "tslib": "^2.8.1"
16
+ "tslib": "^2.8.1",
17
+ "@formatjs/fast-memoize": "3.1.0",
18
+ "@formatjs/ecma402-abstract": "3.1.1"
19
19
  },
20
20
  "bugs": "https://github.com/formatjs/formatjs/issues",
21
21
  "homepage": "https://github.com/formatjs/formatjs#readme",
@@ -30,4 +30,4 @@
30
30
  "tc39"
31
31
  ],
32
32
  "repository": "formatjs/formatjs.git"
33
- }
33
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ import { supportedValuesOf } from "./src";
2
+ Object.defineProperty(Intl, "supportedValuesOf", {
3
+ value: supportedValuesOf,
4
+ enumerable: true,
5
+ writable: false,
6
+ configurable: false
7
+ });
package/polyfill.d.ts ADDED
@@ -0,0 +1 @@
1
+ export {};