core-js-pure 3.25.1 → 3.25.2
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 +5 -1
- package/internals/document-all.js +9 -0
- package/internals/is-callable.js +7 -1
- package/internals/is-object.js +3 -5
- package/internals/shared.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<div align="center">
|
|
4
|
+
|
|
5
|
+
[](https://opencollective.com/core-js) [](https://github.com/zloirock/core-js/blob/master/CONTRIBUTING.md) [](https://www.npmjs.com/package/core-js-pure) [](https://npm-stat.com/charts.html?package=core-js&package=core-js-pure&package=core-js-compat&from=2014-11-18) [](https://github.com/zloirock/core-js/actions) [](https://github.com/zloirock/core-js/actions)
|
|
6
|
+
|
|
7
|
+
</div>
|
|
4
8
|
|
|
5
9
|
> 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.
|
|
6
10
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var documentAll = typeof document == 'object' && document.all;
|
|
2
|
+
|
|
3
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
4
|
+
var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
|
|
5
|
+
|
|
6
|
+
module.exports = {
|
|
7
|
+
all: documentAll,
|
|
8
|
+
IS_HTMLDDA: IS_HTMLDDA
|
|
9
|
+
};
|
package/internals/is-callable.js
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
var $documentAll = require('../internals/document-all');
|
|
2
|
+
|
|
3
|
+
var documentAll = $documentAll.all;
|
|
4
|
+
|
|
1
5
|
// `IsCallable` abstract operation
|
|
2
6
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
3
|
-
module.exports = function (argument) {
|
|
7
|
+
module.exports = $documentAll.IS_HTMLDDA ? function (argument) {
|
|
8
|
+
return typeof argument == 'function' || argument === documentAll;
|
|
9
|
+
} : function (argument) {
|
|
4
10
|
return typeof argument == 'function';
|
|
5
11
|
};
|
package/internals/is-object.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
var isCallable = require('../internals/is-callable');
|
|
2
|
+
var $documentAll = require('../internals/document-all');
|
|
2
3
|
|
|
3
|
-
var documentAll =
|
|
4
|
+
var documentAll = $documentAll.all;
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
var SPECIAL_DOCUMENT_ALL = typeof documentAll == 'undefined' && documentAll !== undefined;
|
|
7
|
-
|
|
8
|
-
module.exports = SPECIAL_DOCUMENT_ALL ? function (it) {
|
|
6
|
+
module.exports = $documentAll.IS_HTMLDDA ? function (it) {
|
|
9
7
|
return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll;
|
|
10
8
|
} : function (it) {
|
|
11
9
|
return typeof it == 'object' ? it !== null : isCallable(it);
|
package/internals/shared.js
CHANGED
|
@@ -4,9 +4,9 @@ var store = require('../internals/shared-store');
|
|
|
4
4
|
(module.exports = function (key, value) {
|
|
5
5
|
return store[key] || (store[key] = value !== undefined ? value : {});
|
|
6
6
|
})('versions', []).push({
|
|
7
|
-
version: '3.25.
|
|
7
|
+
version: '3.25.2',
|
|
8
8
|
mode: IS_PURE ? 'pure' : 'global',
|
|
9
9
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
10
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.25.
|
|
10
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.25.2/LICENSE',
|
|
11
11
|
source: 'https://github.com/zloirock/core-js'
|
|
12
12
|
});
|