@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 +1 -1
- package/index.js +1 -4
- package/package.json +23 -16
- package/polyfill-force.js +6 -8
- package/polyfill.iife.js +90 -91
- package/polyfill.js +8 -10
- package/should-polyfill.js +6 -9
- package/src/core.d.ts +1 -1
- package/src/core.js +59 -65
- package/src/currency-digits.generated.js +1 -4
- package/src/get_internal_slots.js +1 -4
- package/src/numbering-systems.generated.js +1 -4
- package/src/to_locale_string.js +3 -6
- package/src/types.js +1 -2
- package/supported-locales.generated.js +1 -4
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -1
- package/lib/polyfill-force.d.ts +0 -1
- package/lib/polyfill-force.js +0 -9
- package/lib/polyfill.d.ts +0 -1
- package/lib/polyfill.js +0 -12
- package/lib/should-polyfill.d.ts +0 -1
- package/lib/should-polyfill.js +0 -78
- package/lib/src/core.d.ts +0 -6
- package/lib/src/core.js +0 -238
- package/lib/src/currency-digits.generated.d.ts +0 -1
- package/lib/src/currency-digits.generated.js +0 -75
- package/lib/src/get_internal_slots.d.ts +0 -2
- package/lib/src/get_internal_slots.js +0 -10
- package/lib/src/numbering-systems.generated.d.ts +0 -1
- package/lib/src/numbering-systems.generated.js +0 -1
- package/lib/src/to_locale_string.d.ts +0 -6
- package/lib/src/to_locale_string.js +0 -10
- package/lib/src/types.d.ts +0 -21
- package/lib/src/types.js +0 -1
- package/lib/supported-locales.generated.d.ts +0 -1
- package/lib/supported-locales.generated.js +0 -1
package/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './src/core';
|
|
1
|
+
export * from './src/core.js';
|
package/index.js
CHANGED
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": "
|
|
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
|
-
"
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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 (
|
|
7
|
+
return _toLocaleString(this, locales, options);
|
|
10
8
|
},
|
|
11
9
|
});
|