core-js 3.27.2 → 3.28.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/README.md +55 -32
- package/actual/array/index.js +4 -3
- package/actual/array/to-reversed.js +3 -2
- package/actual/array/to-sorted.js +3 -3
- package/actual/array/to-spliced.js +3 -2
- package/actual/array/virtual/index.js +3 -2
- package/actual/array/virtual/to-reversed.js +3 -2
- package/actual/array/virtual/to-sorted.js +3 -3
- package/actual/array/virtual/to-spliced.js +3 -2
- package/actual/array/virtual/with.js +3 -2
- package/actual/array/with.js +3 -2
- package/actual/array-buffer/constructor.js +3 -0
- package/actual/array-buffer/detached.js +2 -0
- package/actual/array-buffer/index.js +3 -0
- package/actual/array-buffer/transfer-to-fixed-length.js +2 -0
- package/actual/array-buffer/transfer.js +2 -0
- package/actual/json/index.js +6 -0
- package/actual/json/is-raw-json.js +4 -0
- package/actual/json/parse.js +5 -0
- package/actual/json/raw-json.js +6 -0
- package/actual/typed-array/index.js +1 -1
- package/actual/typed-array/methods.js +1 -1
- package/actual/typed-array/to-reversed.js +4 -0
- package/actual/typed-array/to-sorted.js +4 -1
- package/actual/typed-array/with.js +4 -0
- package/es/array/index.js +4 -0
- package/es/array/to-reversed.js +4 -0
- package/es/array/to-sorted.js +5 -0
- package/es/array/to-spliced.js +4 -0
- package/es/array/virtual/index.js +4 -0
- package/es/array/virtual/to-reversed.js +4 -0
- package/es/array/virtual/to-sorted.js +5 -0
- package/es/array/virtual/to-spliced.js +4 -0
- package/es/array/virtual/with.js +4 -0
- package/es/array/with.js +4 -0
- package/es/index.js +7 -0
- package/es/instance/to-reversed.js +9 -0
- package/es/instance/to-sorted.js +9 -0
- package/es/instance/to-spliced.js +9 -0
- package/es/instance/with.js +9 -0
- package/es/typed-array/methods.js +3 -0
- package/es/typed-array/to-reversed.js +1 -0
- package/es/typed-array/to-sorted.js +2 -0
- package/es/typed-array/with.js +1 -0
- package/features/array-buffer/detached.js +1 -0
- package/features/array-buffer/transfer-to-fixed-length.js +1 -0
- package/features/array-buffer/transfer.js +1 -0
- package/features/function/demethodize.js +1 -0
- package/features/function/virtual/demethodize.js +1 -0
- package/features/instance/demethodize.js +1 -0
- package/features/iterator/range.js +1 -0
- package/features/json/is-raw-json.js +1 -0
- package/features/json/parse.js +1 -0
- package/features/json/raw-json.js +1 -0
- package/features/symbol/is-registered.js +1 -0
- package/features/symbol/is-well-known.js +1 -0
- package/full/array-buffer/detached.js +3 -0
- package/full/array-buffer/transfer-to-fixed-length.js +3 -0
- package/full/array-buffer/transfer.js +3 -0
- package/full/function/demethodize.js +4 -0
- package/full/function/index.js +2 -0
- package/full/function/virtual/demethodize.js +4 -0
- package/full/function/virtual/index.js +2 -0
- package/full/index.js +17 -0
- package/full/instance/demethodize.js +9 -0
- package/full/iterator/index.js +1 -0
- package/full/iterator/range.js +6 -0
- package/full/json/is-raw-json.js +3 -0
- package/full/json/parse.js +3 -0
- package/full/json/raw-json.js +3 -0
- package/full/symbol/index.js +2 -0
- package/full/symbol/is-registered.js +5 -0
- package/full/symbol/is-well-known.js +5 -0
- package/internals/{disposable-stack-helpers.js → add-disposable-resource.js} +5 -6
- package/internals/array-buffer-byte-length.js +12 -0
- package/internals/array-buffer-is-detached.js +14 -0
- package/internals/array-buffer-transfer.js +35 -0
- package/internals/array-buffer-view-core.js +7 -4
- package/internals/array-buffer.js +29 -16
- package/internals/async-iterator-create-proxy.js +30 -52
- package/internals/collection-strong.js +3 -2
- package/internals/engine-is-ios.js +1 -0
- package/internals/error-stack-clear.js +1 -0
- package/internals/function-bind.js +1 -0
- package/internals/function-demethodize.js +7 -0
- package/internals/function-uncurry-this-accessor.js +9 -0
- package/internals/get-json-replacer-function.js +29 -0
- package/internals/get-substitution.js +1 -0
- package/internals/is-raw-json.js +8 -0
- package/internals/native-raw-json.js +8 -0
- package/internals/numeric-range-iterator.js +2 -1
- package/internals/object-set-prototype-of.js +2 -3
- package/internals/parse-json-string.js +55 -0
- package/internals/set-size.js +2 -4
- package/internals/set-species.js +2 -3
- package/internals/shared.js +2 -2
- package/internals/string-trim.js +3 -4
- package/internals/structured-clone-proper-transfer.js +17 -0
- package/internals/typed-array-constructor.js +8 -4
- package/modules/es.array.includes.js +1 -0
- package/modules/es.array.to-reversed.js +17 -0
- package/modules/es.array.to-sorted.js +24 -0
- package/modules/es.array.to-spliced.js +44 -0
- package/modules/es.array.with.js +14 -0
- package/modules/es.date.get-year.js +1 -0
- package/modules/es.function.bind.js +1 -0
- package/modules/es.function.name.js +2 -2
- package/modules/es.json.stringify.js +7 -7
- package/modules/es.symbol.constructor.js +2 -1
- package/modules/es.symbol.description.js +2 -2
- package/modules/es.typed-array.to-reversed.js +13 -0
- package/modules/es.typed-array.to-sorted.js +19 -0
- package/modules/es.typed-array.with.js +30 -0
- package/modules/esnext.array-buffer.detached.js +15 -0
- package/modules/esnext.array-buffer.transfer-to-fixed-length.js +11 -0
- package/modules/esnext.array-buffer.transfer.js +11 -0
- package/modules/esnext.array.to-reversed.js +2 -17
- package/modules/esnext.array.to-sorted.js +2 -24
- package/modules/esnext.array.to-spliced.js +2 -44
- package/modules/esnext.array.with.js +2 -14
- package/modules/esnext.async-disposable-stack.constructor.js +3 -11
- package/modules/esnext.async-iterator.constructor.js +1 -1
- package/modules/esnext.async-iterator.drop.js +1 -1
- package/modules/esnext.async-iterator.every.js +1 -1
- package/modules/esnext.async-iterator.filter.js +1 -1
- package/modules/esnext.async-iterator.find.js +1 -1
- package/modules/esnext.async-iterator.flat-map.js +1 -1
- package/modules/esnext.async-iterator.for-each.js +1 -1
- package/modules/esnext.async-iterator.from.js +1 -1
- package/modules/esnext.async-iterator.map.js +1 -1
- package/modules/esnext.async-iterator.reduce.js +1 -1
- package/modules/esnext.async-iterator.some.js +1 -1
- package/modules/esnext.async-iterator.take.js +1 -1
- package/modules/esnext.async-iterator.to-array.js +1 -1
- package/modules/esnext.bigint.range.js +1 -0
- package/modules/esnext.disposable-stack.constructor.js +3 -11
- package/modules/esnext.function.demethodize.js +8 -0
- package/modules/esnext.function.un-this.js +5 -7
- package/modules/esnext.iterator.range.js +16 -0
- package/modules/esnext.iterator.to-async.js +1 -1
- package/modules/esnext.json.is-raw-json.js +10 -0
- package/modules/esnext.json.parse.js +261 -0
- package/modules/esnext.json.raw-json.js +84 -0
- package/modules/esnext.number.range.js +1 -0
- package/modules/esnext.string.to-well-formed.js +10 -1
- package/modules/esnext.suppressed-error.constructor.js +1 -3
- package/modules/esnext.symbol.is-registered.js +19 -0
- package/modules/esnext.symbol.is-well-known.js +36 -0
- package/modules/esnext.typed-array.to-reversed.js +2 -13
- package/modules/esnext.typed-array.to-sorted.js +2 -19
- package/modules/esnext.typed-array.with.js +2 -30
- package/modules/web.atob.js +1 -1
- package/modules/web.structured-clone.js +4 -13
- package/modules/web.url.constructor.js +4 -2
- package/package.json +1 -1
- package/postinstall.js +1 -1
- package/proposals/array-buffer-transfer.js +3 -0
- package/proposals/async-iterator-helpers.js +15 -0
- package/proposals/change-array-by-copy-stage-4.js +8 -0
- package/proposals/function-demethodize.js +2 -0
- package/proposals/function-un-this.js +1 -0
- package/proposals/iterator-helpers-stage-3-2.js +14 -0
- package/proposals/iterator-range.js +3 -0
- package/proposals/json-parse-with-source.js +4 -0
- package/proposals/symbol-predicates.js +3 -0
- package/stable/array/to-reversed.js +3 -0
- package/stable/array/to-sorted.js +3 -0
- package/stable/array/to-spliced.js +3 -0
- package/stable/array/virtual/to-reversed.js +3 -0
- package/stable/array/virtual/to-sorted.js +3 -0
- package/stable/array/virtual/to-spliced.js +3 -0
- package/stable/array/virtual/with.js +3 -0
- package/stable/array/with.js +3 -0
- package/stable/index.js +7 -0
- package/stable/instance/to-reversed.js +3 -0
- package/stable/instance/to-sorted.js +3 -0
- package/stable/instance/to-spliced.js +3 -0
- package/stable/instance/with.js +3 -0
- package/stable/typed-array/to-reversed.js +3 -0
- package/stable/typed-array/to-sorted.js +3 -0
- package/stable/typed-array/with.js +3 -0
- package/stage/0.js +2 -1
- package/stage/1.js +2 -1
- package/stage/2.js +2 -0
- package/stage/3.js +5 -2
- package/stage/4.js +1 -0
package/README.md
CHANGED
|
@@ -6,11 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
</div>
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
## As advertising: the author is looking for a good job -)
|
|
9
|
+
**I highly recommend reading this: [So, what's next?](https://github.com/zloirock/core-js/blob/master/docs/2023-02-14-so-whats-next.md)**
|
|
10
|
+
---
|
|
12
11
|
|
|
13
|
-
|
|
12
|
+
> Modular standard library for JavaScript. Includes polyfills for [ECMAScript up to 2023](https://github.com/zloirock/core-js#ecmascript): [promises](https://github.com/zloirock/core-js#ecmascript-promise), [symbols](https://github.com/zloirock/core-js#ecmascript-symbol), [collections](https://github.com/zloirock/core-js#ecmascript-collections), iterators, [typed arrays](https://github.com/zloirock/core-js#ecmascript-typed-arrays), many other features, [ECMAScript proposals](https://github.com/zloirock/core-js#ecmascript-proposals), [some cross-platform WHATWG / W3C features and proposals](#web-standards) like [`URL`](https://github.com/zloirock/core-js#url-and-urlsearchparams). You can load only required features or use it without global namespace pollution.
|
|
14
13
|
|
|
15
14
|
## Raising funds
|
|
16
15
|
|
|
@@ -26,47 +25,71 @@
|
|
|
26
25
|
|
|
27
26
|
---
|
|
28
27
|
|
|
29
|
-
[*Example of usage*](https://tinyurl.com/
|
|
28
|
+
[*Example of usage*](https://tinyurl.com/2mknex43):
|
|
30
29
|
```js
|
|
31
|
-
import 'core-js/actual';
|
|
30
|
+
import 'core-js/actual';
|
|
31
|
+
|
|
32
|
+
Promise.resolve(42).then(it => console.log(it)); // => 42
|
|
33
|
+
|
|
34
|
+
Array.from(new Set([1, 2, 3]).union(new Set([3, 4, 5]))); // => [1, 2, 3, 4, 5]
|
|
32
35
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
[1, 2].flatMap(it => [it, it]); // => [1, 1, 2, 2]
|
|
37
|
+
|
|
38
|
+
(function * (i) { while (true) yield i++; })(1)
|
|
39
|
+
.drop(1).take(5)
|
|
40
|
+
.filter(it => it % 2)
|
|
41
|
+
.map(it => it ** 2)
|
|
42
|
+
.toArray(); // => [9, 25]
|
|
43
|
+
|
|
44
|
+
structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])
|
|
38
45
|
```
|
|
39
46
|
|
|
40
47
|
*You can load only required features*:
|
|
41
48
|
```js
|
|
42
|
-
import 'core-js/actual/
|
|
43
|
-
import 'core-js/actual/
|
|
44
|
-
import 'core-js/actual/
|
|
45
|
-
import 'core-js/actual/
|
|
46
|
-
import 'core-js/actual/
|
|
47
|
-
import 'core-js/actual/
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
49
|
+
import 'core-js/actual/promise';
|
|
50
|
+
import 'core-js/actual/set';
|
|
51
|
+
import 'core-js/actual/iterator';
|
|
52
|
+
import 'core-js/actual/array/from';
|
|
53
|
+
import 'core-js/actual/array/flat-map';
|
|
54
|
+
import 'core-js/actual/structured-clone';
|
|
55
|
+
|
|
56
|
+
Promise.resolve(42).then(it => console.log(it)); // => 42
|
|
57
|
+
|
|
58
|
+
Array.from(new Set([1, 2, 3]).union(new Set([3, 4, 5]))); // => [1, 2, 3, 4, 5]
|
|
59
|
+
|
|
60
|
+
[1, 2].flatMap(it => [it, it]); // => [1, 1, 2, 2]
|
|
61
|
+
|
|
62
|
+
(function * (i) { while (true) yield i++; })(1)
|
|
63
|
+
.drop(1).take(5)
|
|
64
|
+
.filter(it => it % 2)
|
|
65
|
+
.map(it => it ** 2)
|
|
66
|
+
.toArray(); // => [9, 25]
|
|
67
|
+
|
|
68
|
+
structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])
|
|
54
69
|
```
|
|
55
70
|
|
|
56
71
|
*Or use it without global namespace pollution*:
|
|
57
72
|
```js
|
|
58
|
-
import from from 'core-js-pure/actual/array/from';
|
|
59
|
-
import group from 'core-js-pure/actual/array/group';
|
|
60
|
-
import Set from 'core-js-pure/actual/set';
|
|
61
73
|
import Promise from 'core-js-pure/actual/promise';
|
|
74
|
+
import Set from 'core-js-pure/actual/set';
|
|
75
|
+
import Iterator from 'core-js-pure/actual/iterator';
|
|
76
|
+
import from from 'core-js-pure/actual/array/from';
|
|
77
|
+
import flatMap from 'core-js-pure/actual/array/flat-map';
|
|
62
78
|
import structuredClone from 'core-js-pure/actual/structured-clone';
|
|
63
|
-
import queueMicrotask from 'core-js-pure/actual/queue-microtask';
|
|
64
79
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
80
|
+
Promise.resolve(42).then(it => console.log(it)); // => 42
|
|
81
|
+
|
|
82
|
+
from(new Set([1, 2, 3]).union(new Set([3, 4, 5]))); // => [1, 2, 3, 4, 5]
|
|
83
|
+
|
|
84
|
+
flatMap([1, 2], it => [it, it]); // => [1, 1, 2, 2]
|
|
85
|
+
|
|
86
|
+
Iterator.from(function * (i) { while (true) yield i++; }(1))
|
|
87
|
+
.drop(1).take(5)
|
|
88
|
+
.filter(it => it % 2)
|
|
89
|
+
.map(it => it ** 2)
|
|
90
|
+
.toArray(); // => [9, 25]
|
|
91
|
+
|
|
92
|
+
structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])
|
|
70
93
|
```
|
|
71
94
|
|
|
72
95
|
**It's a global version (first 2 examples), for more info see [`core-js` documentation](https://github.com/zloirock/core-js/blob/master/README.md).**
|
package/actual/array/index.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
var parent = require('../../stable/array');
|
|
2
2
|
require('../../modules/es.map');
|
|
3
3
|
require('../../modules/es.object.to-string');
|
|
4
|
-
require('../../modules/esnext.array.find-last');
|
|
5
|
-
require('../../modules/esnext.array.find-last-index');
|
|
6
4
|
require('../../modules/esnext.array.from-async');
|
|
7
5
|
require('../../modules/esnext.array.group');
|
|
6
|
+
require('../../modules/esnext.array.group-to-map');
|
|
7
|
+
// TODO: Remove from `core-js@4`
|
|
8
|
+
require('../../modules/esnext.array.find-last');
|
|
9
|
+
require('../../modules/esnext.array.find-last-index');
|
|
8
10
|
require('../../modules/esnext.array.group-by');
|
|
9
11
|
require('../../modules/esnext.array.group-by-to-map');
|
|
10
|
-
require('../../modules/esnext.array.group-to-map');
|
|
11
12
|
require('../../modules/esnext.array.to-reversed');
|
|
12
13
|
require('../../modules/esnext.array.to-sorted');
|
|
13
14
|
require('../../modules/esnext.array.to-spliced');
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
var parent = require('../../stable/array/to-reversed');
|
|
2
|
+
// TODO: Remove from `core-js@4`
|
|
1
3
|
require('../../modules/esnext.array.to-reversed');
|
|
2
|
-
var entryUnbind = require('../../internals/entry-unbind');
|
|
3
4
|
|
|
4
|
-
module.exports =
|
|
5
|
+
module.exports = parent;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
require('../../
|
|
1
|
+
var parent = require('../../stable/array/to-sorted');
|
|
2
|
+
// TODO: Remove from `core-js@4`
|
|
2
3
|
require('../../modules/esnext.array.to-sorted');
|
|
3
|
-
var entryUnbind = require('../../internals/entry-unbind');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = parent;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
var parent = require('../../stable/array/to-spliced');
|
|
2
|
+
// TODO: Remove from `core-js@4`
|
|
1
3
|
require('../../modules/esnext.array.to-spliced');
|
|
2
|
-
var entryUnbind = require('../../internals/entry-unbind');
|
|
3
4
|
|
|
4
|
-
module.exports =
|
|
5
|
+
module.exports = parent;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
var parent = require('../../../stable/array/virtual');
|
|
2
2
|
require('../../../modules/es.map');
|
|
3
3
|
require('../../../modules/es.object.to-string');
|
|
4
|
+
require('../../../modules/esnext.array.group');
|
|
5
|
+
require('../../../modules/esnext.array.group-to-map');
|
|
6
|
+
// TODO: Remove from `core-js@4`
|
|
4
7
|
require('../../../modules/esnext.array.find-last');
|
|
5
8
|
require('../../../modules/esnext.array.find-last-index');
|
|
6
|
-
require('../../../modules/esnext.array.group');
|
|
7
9
|
require('../../../modules/esnext.array.group-by');
|
|
8
10
|
require('../../../modules/esnext.array.group-by-to-map');
|
|
9
|
-
require('../../../modules/esnext.array.group-to-map');
|
|
10
11
|
require('../../../modules/esnext.array.to-reversed');
|
|
11
12
|
require('../../../modules/esnext.array.to-sorted');
|
|
12
13
|
require('../../../modules/esnext.array.to-spliced');
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
var parent = require('../../../stable/array/virtual/to-reversed');
|
|
2
|
+
// TODO: Remove from `core-js@4`
|
|
1
3
|
require('../../../modules/esnext.array.to-reversed');
|
|
2
|
-
var entryVirtual = require('../../../internals/entry-virtual');
|
|
3
4
|
|
|
4
|
-
module.exports =
|
|
5
|
+
module.exports = parent;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
require('../../../
|
|
1
|
+
var parent = require('../../../stable/array/virtual/to-sorted');
|
|
2
|
+
// TODO: Remove from `core-js@4`
|
|
2
3
|
require('../../../modules/esnext.array.to-sorted');
|
|
3
|
-
var entryVirtual = require('../../../internals/entry-virtual');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = parent;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
var parent = require('../../../stable/array/virtual/to-spliced');
|
|
2
|
+
// TODO: Remove from `core-js@4`
|
|
1
3
|
require('../../../modules/esnext.array.to-spliced');
|
|
2
|
-
var entryVirtual = require('../../../internals/entry-virtual');
|
|
3
4
|
|
|
4
|
-
module.exports =
|
|
5
|
+
module.exports = parent;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
var parent = require('../../../stable/array/virtual/with');
|
|
2
|
+
// TODO: Remove from `core-js@4`
|
|
1
3
|
require('../../../modules/esnext.array.with');
|
|
2
|
-
var entryVirtual = require('../../../internals/entry-virtual');
|
|
3
4
|
|
|
4
|
-
module.exports =
|
|
5
|
+
module.exports = parent;
|
package/actual/array/with.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
var parent = require('../../stable/array/with');
|
|
2
|
+
// TODO: Remove from `core-js@4`
|
|
1
3
|
require('../../modules/esnext.array.with');
|
|
2
|
-
var entryUnbind = require('../../internals/entry-unbind');
|
|
3
4
|
|
|
4
|
-
module.exports =
|
|
5
|
+
module.exports = parent;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
var parent = require('../../stable/array-buffer/constructor');
|
|
2
|
+
require('../../modules/esnext.array-buffer.detached');
|
|
3
|
+
require('../../modules/esnext.array-buffer.transfer');
|
|
4
|
+
require('../../modules/esnext.array-buffer.transfer-to-fixed-length');
|
|
2
5
|
|
|
3
6
|
module.exports = parent;
|
package/actual/json/index.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
var parent = require('../../stable/json');
|
|
2
|
+
require('../../modules/es.object.create');
|
|
3
|
+
require('../../modules/es.object.freeze');
|
|
4
|
+
require('../../modules/es.object.keys');
|
|
5
|
+
require('../../modules/esnext.json.is-raw-json');
|
|
6
|
+
require('../../modules/esnext.json.parse');
|
|
7
|
+
require('../../modules/esnext.json.raw-json');
|
|
2
8
|
|
|
3
9
|
module.exports = parent;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var parent = require('../../stable/typed-array');
|
|
2
|
+
// TODO: Remove from `core-js@4`
|
|
2
3
|
require('../../modules/esnext.typed-array.find-last');
|
|
3
4
|
require('../../modules/esnext.typed-array.find-last-index');
|
|
4
5
|
require('../../modules/esnext.typed-array.to-reversed');
|
|
5
6
|
require('../../modules/esnext.typed-array.to-sorted');
|
|
6
|
-
// TODO: Remove from `core-js@4`
|
|
7
7
|
require('../../modules/esnext.typed-array.to-spliced');
|
|
8
8
|
require('../../modules/esnext.typed-array.with');
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var parent = require('../../stable/typed-array/methods');
|
|
2
|
+
// TODO: Remove from `core-js@4`
|
|
2
3
|
require('../../modules/esnext.typed-array.find-last');
|
|
3
4
|
require('../../modules/esnext.typed-array.find-last-index');
|
|
4
5
|
require('../../modules/esnext.typed-array.to-reversed');
|
|
5
6
|
require('../../modules/esnext.typed-array.to-sorted');
|
|
6
|
-
// TODO: Remove from `core-js@4`
|
|
7
7
|
require('../../modules/esnext.typed-array.to-spliced');
|
|
8
8
|
require('../../modules/esnext.typed-array.with');
|
|
9
9
|
|
package/es/array/index.js
CHANGED
|
@@ -29,9 +29,13 @@ require('../../modules/es.array.some');
|
|
|
29
29
|
require('../../modules/es.array.sort');
|
|
30
30
|
require('../../modules/es.array.species');
|
|
31
31
|
require('../../modules/es.array.splice');
|
|
32
|
+
require('../../modules/es.array.to-reversed');
|
|
33
|
+
require('../../modules/es.array.to-sorted');
|
|
34
|
+
require('../../modules/es.array.to-spliced');
|
|
32
35
|
require('../../modules/es.array.unscopables.flat');
|
|
33
36
|
require('../../modules/es.array.unscopables.flat-map');
|
|
34
37
|
require('../../modules/es.array.unshift');
|
|
38
|
+
require('../../modules/es.array.with');
|
|
35
39
|
require('../../modules/es.object.to-string');
|
|
36
40
|
require('../../modules/es.string.iterator');
|
|
37
41
|
var path = require('../../internals/path');
|
|
@@ -26,9 +26,13 @@ require('../../../modules/es.array.some');
|
|
|
26
26
|
require('../../../modules/es.array.sort');
|
|
27
27
|
require('../../../modules/es.array.species');
|
|
28
28
|
require('../../../modules/es.array.splice');
|
|
29
|
+
require('../../../modules/es.array.to-reversed');
|
|
30
|
+
require('../../../modules/es.array.to-sorted');
|
|
31
|
+
require('../../../modules/es.array.to-spliced');
|
|
29
32
|
require('../../../modules/es.array.unscopables.flat');
|
|
30
33
|
require('../../../modules/es.array.unscopables.flat-map');
|
|
31
34
|
require('../../../modules/es.array.unshift');
|
|
35
|
+
require('../../../modules/es.array.with');
|
|
32
36
|
require('../../../modules/es.object.to-string');
|
|
33
37
|
var entryVirtual = require('../../../internals/entry-virtual');
|
|
34
38
|
|
package/es/array/with.js
ADDED
package/es/index.js
CHANGED
|
@@ -48,9 +48,13 @@ require('../modules/es.array.some');
|
|
|
48
48
|
require('../modules/es.array.sort');
|
|
49
49
|
require('../modules/es.array.species');
|
|
50
50
|
require('../modules/es.array.splice');
|
|
51
|
+
require('../modules/es.array.to-reversed');
|
|
52
|
+
require('../modules/es.array.to-sorted');
|
|
53
|
+
require('../modules/es.array.to-spliced');
|
|
51
54
|
require('../modules/es.array.unscopables.flat');
|
|
52
55
|
require('../modules/es.array.unscopables.flat-map');
|
|
53
56
|
require('../modules/es.array.unshift');
|
|
57
|
+
require('../modules/es.array.with');
|
|
54
58
|
require('../modules/es.array-buffer.constructor');
|
|
55
59
|
require('../modules/es.array-buffer.is-view');
|
|
56
60
|
require('../modules/es.array-buffer.slice');
|
|
@@ -227,7 +231,10 @@ require('../modules/es.typed-array.some');
|
|
|
227
231
|
require('../modules/es.typed-array.sort');
|
|
228
232
|
require('../modules/es.typed-array.subarray');
|
|
229
233
|
require('../modules/es.typed-array.to-locale-string');
|
|
234
|
+
require('../modules/es.typed-array.to-reversed');
|
|
235
|
+
require('../modules/es.typed-array.to-sorted');
|
|
230
236
|
require('../modules/es.typed-array.to-string');
|
|
237
|
+
require('../modules/es.typed-array.with');
|
|
231
238
|
require('../modules/es.unescape');
|
|
232
239
|
require('../modules/es.weak-map');
|
|
233
240
|
require('../modules/es.weak-set');
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var isPrototypeOf = require('../../internals/object-is-prototype-of');
|
|
2
|
+
var method = require('../array/virtual/to-reversed');
|
|
3
|
+
|
|
4
|
+
var ArrayPrototype = Array.prototype;
|
|
5
|
+
|
|
6
|
+
module.exports = function (it) {
|
|
7
|
+
var own = it.toReversed;
|
|
8
|
+
return (it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.toReversed)) ? method : own;
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var isPrototypeOf = require('../../internals/object-is-prototype-of');
|
|
2
|
+
var method = require('../array/virtual/to-sorted');
|
|
3
|
+
|
|
4
|
+
var ArrayPrototype = Array.prototype;
|
|
5
|
+
|
|
6
|
+
module.exports = function (it) {
|
|
7
|
+
var own = it.toSorted;
|
|
8
|
+
return (it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.toSorted)) ? method : own;
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var isPrototypeOf = require('../../internals/object-is-prototype-of');
|
|
2
|
+
var method = require('../array/virtual/to-spliced');
|
|
3
|
+
|
|
4
|
+
var ArrayPrototype = Array.prototype;
|
|
5
|
+
|
|
6
|
+
module.exports = function (it) {
|
|
7
|
+
var own = it.toSpliced;
|
|
8
|
+
return (it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.toSpliced)) ? method : own;
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var isPrototypeOf = require('../../internals/object-is-prototype-of');
|
|
2
|
+
var method = require('../array/virtual/with');
|
|
3
|
+
|
|
4
|
+
var ArrayPrototype = Array.prototype;
|
|
5
|
+
|
|
6
|
+
module.exports = function (it) {
|
|
7
|
+
var own = it['with'];
|
|
8
|
+
return (it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype['with'])) ? method : own;
|
|
9
|
+
};
|
|
@@ -27,4 +27,7 @@ require('../../modules/es.typed-array.sort');
|
|
|
27
27
|
require('../../modules/es.typed-array.subarray');
|
|
28
28
|
require('../../modules/es.typed-array.to-locale-string');
|
|
29
29
|
require('../../modules/es.typed-array.to-string');
|
|
30
|
+
require('../../modules/es.typed-array.to-reversed');
|
|
31
|
+
require('../../modules/es.typed-array.to-sorted');
|
|
32
|
+
require('../../modules/es.typed-array.with');
|
|
30
33
|
require('../../modules/es.typed-array.iterator');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require('../../modules/esnext.typed-array.to-reversed');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require('../../modules/esnext.typed-array.with');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../../full/array-buffer/detached');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../../full/array-buffer/transfer-to-fixed-length');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../../full/array-buffer/transfer');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../../full/function/demethodize');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../../../full/function/virtual/demethodize');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../../full/instance/demethodize');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../../full/iterator/range');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../../full/json/is-raw-json');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../../full/json/parse');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../../full/json/raw-json');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../../full/symbol/is-registered');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../../full/symbol/is-well-known');
|
package/full/function/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
var parent = require('../../actual/function');
|
|
2
|
+
require('../../modules/esnext.function.demethodize');
|
|
2
3
|
require('../../modules/esnext.function.is-callable');
|
|
3
4
|
require('../../modules/esnext.function.is-constructor');
|
|
5
|
+
// TODO: Remove from `core-js@4`
|
|
4
6
|
require('../../modules/esnext.function.un-this');
|
|
5
7
|
|
|
6
8
|
module.exports = parent;
|