Comparing version 3.18.0 to 3.18.1
@@ -25,9 +25,8 @@ 'use strict'; | ||
var usingAsyncIterator = getMethod(O, ASYNC_ITERATOR); | ||
var usingIterator; | ||
if (!usingAsyncIterator) usingIterator = getIteratorMethod(O); | ||
var usingSyncIterator = usingAsyncIterator ? undefined : getIteratorMethod(O) || arrayIterator; | ||
var A = isConstructor(this) ? new this() : []; | ||
var iterator = usingAsyncIterator | ||
? getAsyncIterator(O, usingAsyncIterator) | ||
: new AsyncFromSyncIterator(getIterator(O, usingIterator || arrayIterator)); | ||
: new AsyncFromSyncIterator(getIterator(O, usingSyncIterator)); | ||
return toArray(iterator, mapfn, A); | ||
}; |
'use strict'; | ||
// https://github.com/tc39/proposal-iterator-helpers | ||
// https://github.com/tc39/proposal-array-from-async | ||
var aCallable = require('../internals/a-callable'); | ||
@@ -4,0 +5,0 @@ var anObject = require('../internals/an-object'); |
@@ -1,2 +0,2 @@ | ||
// `isCallable` abstract operation | ||
// `IsCallable` abstract operation | ||
// https://tc39.es/ecma262/#sec-iscallable | ||
@@ -3,0 +3,0 @@ module.exports = function (argument) { |
@@ -7,5 +7,5 @@ var IS_PURE = require('../internals/is-pure'); | ||
})('versions', []).push({ | ||
version: '3.18.0', | ||
version: '3.18.1', | ||
mode: IS_PURE ? 'pure' : 'global', | ||
copyright: '© 2021 Denis Pushkarev (zloirock.ru)' | ||
}); |
// https://github.com/zloirock/core-js/issues/280 | ||
var userAgent = require('../internals/engine-user-agent'); | ||
// eslint-disable-next-line unicorn/no-unsafe-regex -- safe | ||
module.exports = /Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(userAgent); |
@@ -8,6 +8,7 @@ 'use strict'; | ||
var createPropertyDescriptor = require('../internals/create-property-descriptor'); | ||
var installErrorCause = require('../internals/install-error-cause'); | ||
var iterate = require('../internals/iterate'); | ||
var toString = require('../internals/to-string'); | ||
var $AggregateError = function AggregateError(errors, message) { | ||
var $AggregateError = function AggregateError(errors, message /* , options */) { | ||
var that = this; | ||
@@ -20,2 +21,3 @@ if (!(that instanceof $AggregateError)) return new $AggregateError(errors, message); | ||
if (message !== undefined) createNonEnumerableProperty(that, 'message', toString(message)); | ||
if (arguments.length > 2) installErrorCause(that, arguments[2]); | ||
var errorsArray = []; | ||
@@ -22,0 +24,0 @@ iterate(errors, errorsArray.push, { that: errorsArray }); |
@@ -11,5 +11,8 @@ 'use strict'; | ||
// eslint-disable-next-line unicorn/prefer-string-slice -- required for testing | ||
var FORCED = !''.substr || 'ab'.substr(-1) !== 'b'; | ||
// `String.prototype.substr` method | ||
// https://tc39.es/ecma262/#sec-string.prototype.substr | ||
$({ target: 'String', proto: true }, { | ||
$({ target: 'String', proto: true, forced: FORCED }, { | ||
substr: function substr(start, length) { | ||
@@ -16,0 +19,0 @@ var that = toString(requireObjectCoercible(this)); |
@@ -17,5 +17,7 @@ var global = require('../internals/global'); | ||
for (var COLLECTION_NAME in DOMIterables) { | ||
handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype); | ||
if (DOMIterables[COLLECTION_NAME]) { | ||
handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype); | ||
} | ||
} | ||
handlePrototype(DOMTokenListPrototype); |
@@ -42,3 +42,3 @@ 'use strict'; | ||
var HEX = /^[\dA-Fa-f]+$/; | ||
/* eslint-disable no-control-regex -- safe */ | ||
/* eslint-disable regexp/no-control-character -- safe */ | ||
var FORBIDDEN_HOST_CODE_POINT = /[\0\t\n\r #%/:<>?@[\\\]^|]/; | ||
@@ -48,3 +48,3 @@ var FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT = /[\0\t\n\r #/:<>?@[\\\]^|]/; | ||
var TAB_AND_NEW_LINE = /[\t\n\r]/g; | ||
/* eslint-enable no-control-regex -- safe */ | ||
/* eslint-enable regexp/no-control-character -- safe */ | ||
var EOF; | ||
@@ -51,0 +51,0 @@ |
{ | ||
"name": "core-js", | ||
"description": "Standard library", | ||
"version": "3.18.0", | ||
"version": "3.18.1", | ||
"repository": { | ||
@@ -57,3 +57,3 @@ "type": "git", | ||
}, | ||
"gitHead": "272ac1b4515c5cfbf348b069f1da829165a7181e" | ||
"gitHead": "1a347bdf0297884ed8d9e32e1971267c6d572822" | ||
} |
@@ -55,3 +55,3 @@ var fs = require('fs'); | ||
function showBanner() { | ||
// eslint-disable-next-line no-console,no-control-regex -- output | ||
// eslint-disable-next-line no-console, regexp/no-control-character -- output | ||
console.log(COLOR ? BANNER : BANNER.replace(/\u001B\[\d+m/g, '')); | ||
@@ -58,0 +58,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
782986
1880
18626