@formatjs/intl-numberformat 8.15.6 → 9.0.0

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/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from './src/core';
1
+ export * from './src/core.js';
package/index.js CHANGED
@@ -1,4 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./src/core"), exports);
1
+ export * from './src/core.js';
package/package.json CHANGED
@@ -1,25 +1,30 @@
1
1
  {
2
2
  "name": "@formatjs/intl-numberformat",
3
3
  "description": "Ponyfill for ES2020 Intl.NumberFormat",
4
- "version": "8.15.6",
5
- "license": "MIT",
6
- "types": "index.d.ts",
7
- "dependencies": {
8
- "decimal.js": "^10.4.3",
9
- "tslib": "^2.8.0",
10
- "@formatjs/ecma402-abstract": "2.3.6",
11
- "@formatjs/intl-localematcher": "0.6.2"
12
- },
13
- "devDependencies": {
14
- "@formatjs/intl-getcanonicallocales": "2.5.6",
15
- "@formatjs/intl-locale": "4.2.13",
16
- "@formatjs/intl-pluralrules": "5.4.6"
17
- },
4
+ "version": "9.0.0",
18
5
  "bugs": "https://github.com/formatjs/formatjs/issues",
19
6
  "contributors": [
20
7
  "Linjie Ding <linjie@airtable.com>",
21
8
  "Long Ho <holevietlong@gmail.com>"
22
9
  ],
10
+ "dependencies": {
11
+ "@formatjs/ecma402-abstract": "3.0.0",
12
+ "@formatjs/intl-localematcher": "0.7.0",
13
+ "decimal.js": "^10.4.3",
14
+ "tslib": "^2.8.0"
15
+ },
16
+ "devDependencies": {
17
+ "@formatjs/intl-getcanonicallocales": "3.0.0",
18
+ "@formatjs/intl-locale": "5.0.0",
19
+ "@formatjs/intl-pluralrules": "6.0.0"
20
+ },
21
+ "exports": {
22
+ ".": "./index.js",
23
+ "./polyfill.js": "./polyfill.js",
24
+ "./polyfill-force.js": "./polyfill-force.js",
25
+ "./should-polyfill.js": "./should-polyfill.js",
26
+ "./locale-data/*": "./locale-data/*"
27
+ },
23
28
  "gitHead": "a7842673d8ad205171ad7c8cb8bb2f318b427c0c",
24
29
  "homepage": "https://github.com/formatjs/formatjs",
25
30
  "keywords": [
@@ -29,6 +34,8 @@
29
34
  "numberformat",
30
35
  "polyfill"
31
36
  ],
32
- "main": "index.js",
33
- "repository": "formatjs/formatjs.git"
37
+ "license": "MIT",
38
+ "repository": "formatjs/formatjs.git",
39
+ "type": "module",
40
+ "types": "index.d.ts"
34
41
  }
package/polyfill-force.js CHANGED
@@ -1,11 +1,9 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var core_1 = require("./src/core");
4
- var to_locale_string_1 = require("./src/to_locale_string");
5
- var ecma402_abstract_1 = require("@formatjs/ecma402-abstract");
6
- (0, ecma402_abstract_1.defineProperty)(Intl, 'NumberFormat', { value: core_1.NumberFormat });
7
- (0, ecma402_abstract_1.defineProperty)(Number.prototype, 'toLocaleString', {
1
+ import { NumberFormat } from './src/core.js';
2
+ import { toLocaleString as _toLocaleString } from './src/to_locale_string.js';
3
+ import { defineProperty } from '@formatjs/ecma402-abstract';
4
+ defineProperty(Intl, 'NumberFormat', { value: NumberFormat });
5
+ defineProperty(Number.prototype, 'toLocaleString', {
8
6
  value: function toLocaleString(locales, options) {
9
- return (0, to_locale_string_1.toLocaleString)(this, locales, options);
7
+ return _toLocaleString(this, locales, options);
10
8
  },
11
9
  });