feat:node-modules
This commit is contained in:
19
node_modules/core-js/LICENSE
generated
vendored
Normal file
19
node_modules/core-js/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
Copyright (c) 2014-2024 Denis Pushkarev
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
95
node_modules/core-js/README.md
generated
vendored
Normal file
95
node_modules/core-js/README.md
generated
vendored
Normal file
@@ -0,0 +1,95 @@
|
||||

|
||||
|
||||
<div align="center">
|
||||
|
||||
[](https://opencollective.com/core-js) [](https://github.com/zloirock/core-js/blob/master/CONTRIBUTING.md) [](https://www.npmjs.com/package/core-js) [](https://npm-stat.com/charts.html?package=core-js&package=core-js-pure&package=core-js-compat&from=2014-11-18)
|
||||
|
||||
</div>
|
||||
|
||||
**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)**
|
||||
---
|
||||
|
||||
> 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.
|
||||
|
||||
## Raising funds
|
||||
|
||||
`core-js` isn't backed by a company, so the future of this project depends on you. Become a sponsor or a backer if you are interested in `core-js`: [**Open Collective**](https://opencollective.com/core-js), [**Patreon**](https://patreon.com/zloirock), [**Boosty**](https://boosty.to/zloirock), **Bitcoin ( bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz )**, [**Alipay**](https://user-images.githubusercontent.com/2213682/219464783-c17ad329-17ce-4795-82a7-f609493345ed.png).
|
||||
|
||||
---
|
||||
|
||||
<a href="https://opencollective.com/core-js/sponsor/0/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/0/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/1/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/1/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/2/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/2/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/3/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/3/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/4/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/4/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/5/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/5/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/6/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/6/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/7/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/7/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/8/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/8/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/9/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/9/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/10/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/10/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/11/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/11/avatar.svg"></a>
|
||||
|
||||
---
|
||||
|
||||
<a href="https://opencollective.com/core-js#backers" target="_blank"><img src="https://opencollective.com/core-js/backers.svg?width=890"></a>
|
||||
|
||||
---
|
||||
|
||||
[*Example of usage*](https://tinyurl.com/2mknex43):
|
||||
```js
|
||||
import 'core-js/actual';
|
||||
|
||||
Promise.resolve(42).then(it => console.log(it)); // => 42
|
||||
|
||||
Array.from(new Set([1, 2, 3]).union(new Set([3, 4, 5]))); // => [1, 2, 3, 4, 5]
|
||||
|
||||
[1, 2].flatMap(it => [it, it]); // => [1, 1, 2, 2]
|
||||
|
||||
(function * (i) { while (true) yield i++; })(1)
|
||||
.drop(1).take(5)
|
||||
.filter(it => it % 2)
|
||||
.map(it => it ** 2)
|
||||
.toArray(); // => [9, 25]
|
||||
|
||||
structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])
|
||||
```
|
||||
|
||||
*You can load only required features*:
|
||||
```js
|
||||
import 'core-js/actual/promise';
|
||||
import 'core-js/actual/set';
|
||||
import 'core-js/actual/iterator';
|
||||
import 'core-js/actual/array/from';
|
||||
import 'core-js/actual/array/flat-map';
|
||||
import 'core-js/actual/structured-clone';
|
||||
|
||||
Promise.resolve(42).then(it => console.log(it)); // => 42
|
||||
|
||||
Array.from(new Set([1, 2, 3]).union(new Set([3, 4, 5]))); // => [1, 2, 3, 4, 5]
|
||||
|
||||
[1, 2].flatMap(it => [it, it]); // => [1, 1, 2, 2]
|
||||
|
||||
(function * (i) { while (true) yield i++; })(1)
|
||||
.drop(1).take(5)
|
||||
.filter(it => it % 2)
|
||||
.map(it => it ** 2)
|
||||
.toArray(); // => [9, 25]
|
||||
|
||||
structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])
|
||||
```
|
||||
|
||||
*Or use it without global namespace pollution*:
|
||||
```js
|
||||
import Promise from 'core-js-pure/actual/promise';
|
||||
import Set from 'core-js-pure/actual/set';
|
||||
import Iterator from 'core-js-pure/actual/iterator';
|
||||
import from from 'core-js-pure/actual/array/from';
|
||||
import flatMap from 'core-js-pure/actual/array/flat-map';
|
||||
import structuredClone from 'core-js-pure/actual/structured-clone';
|
||||
|
||||
Promise.resolve(42).then(it => console.log(it)); // => 42
|
||||
|
||||
from(new Set([1, 2, 3]).union(new Set([3, 4, 5]))); // => [1, 2, 3, 4, 5]
|
||||
|
||||
flatMap([1, 2], it => [it, it]); // => [1, 1, 2, 2]
|
||||
|
||||
Iterator.from(function * (i) { while (true) yield i++; }(1))
|
||||
.drop(1).take(5)
|
||||
.filter(it => it % 2)
|
||||
.map(it => it ** 2)
|
||||
.toArray(); // => [9, 25]
|
||||
|
||||
structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])
|
||||
```
|
||||
|
||||
**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).**
|
||||
1
node_modules/core-js/actual/README.md
generated
vendored
Normal file
1
node_modules/core-js/actual/README.md
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
This folder contains entry points for all `core-js` features with dependencies. It's the recommended way for usage only required features.
|
||||
4
node_modules/core-js/actual/aggregate-error.js
generated
vendored
Normal file
4
node_modules/core-js/actual/aggregate-error.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
var parent = require('../stable/aggregate-error');
|
||||
|
||||
module.exports = parent;
|
||||
7
node_modules/core-js/actual/array-buffer/constructor.js
generated
vendored
Normal file
7
node_modules/core-js/actual/array-buffer/constructor.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array-buffer/constructor');
|
||||
require('../../modules/esnext.array-buffer.detached');
|
||||
require('../../modules/esnext.array-buffer.transfer');
|
||||
require('../../modules/esnext.array-buffer.transfer-to-fixed-length');
|
||||
|
||||
module.exports = parent;
|
||||
5
node_modules/core-js/actual/array-buffer/detached.js
generated
vendored
Normal file
5
node_modules/core-js/actual/array-buffer/detached.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array-buffer/detached');
|
||||
require('../../modules/esnext.array-buffer.detached');
|
||||
|
||||
module.exports = parent;
|
||||
7
node_modules/core-js/actual/array-buffer/index.js
generated
vendored
Normal file
7
node_modules/core-js/actual/array-buffer/index.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array-buffer');
|
||||
require('../../modules/esnext.array-buffer.detached');
|
||||
require('../../modules/esnext.array-buffer.transfer');
|
||||
require('../../modules/esnext.array-buffer.transfer-to-fixed-length');
|
||||
|
||||
module.exports = parent;
|
||||
4
node_modules/core-js/actual/array-buffer/is-view.js
generated
vendored
Normal file
4
node_modules/core-js/actual/array-buffer/is-view.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array-buffer/is-view');
|
||||
|
||||
module.exports = parent;
|
||||
4
node_modules/core-js/actual/array-buffer/slice.js
generated
vendored
Normal file
4
node_modules/core-js/actual/array-buffer/slice.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array-buffer/slice');
|
||||
|
||||
module.exports = parent;
|
||||
5
node_modules/core-js/actual/array-buffer/transfer-to-fixed-length.js
generated
vendored
Normal file
5
node_modules/core-js/actual/array-buffer/transfer-to-fixed-length.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array-buffer/transfer-to-fixed-length');
|
||||
require('../../modules/esnext.array-buffer.transfer-to-fixed-length');
|
||||
|
||||
module.exports = parent;
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user