Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

core-js-pure

Package Overview
Dependencies
Maintainers
1
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

core-js-pure - npm Package Compare versions

Comparing version 3.6.1 to 3.6.2

internals/array-buffer-native.js

1

es/regexp/test.js

@@ -0,1 +1,2 @@

require('../../modules/es.regexp.exec');
require('../../modules/es.regexp.test');

@@ -2,0 +3,0 @@

@@ -0,1 +1,2 @@

require('../../modules/es.regexp.exec');
require('../../modules/es.string.from-code-point');

@@ -2,0 +3,0 @@ require('../../modules/es.string.raw');

@@ -0,1 +1,2 @@

require('../../modules/es.regexp.exec');
require('../../modules/es.string.match');

@@ -2,0 +3,0 @@ var entryUnbind = require('../../internals/entry-unbind');

@@ -0,1 +1,2 @@

require('../../modules/es.regexp.exec');
require('../../modules/es.string.replace');

@@ -2,0 +3,0 @@ var entryUnbind = require('../../internals/entry-unbind');

@@ -0,1 +1,2 @@

require('../../modules/es.regexp.exec');
require('../../modules/es.string.search');

@@ -2,0 +3,0 @@ var entryUnbind = require('../../internals/entry-unbind');

@@ -0,1 +1,2 @@

require('../../modules/es.regexp.exec');
require('../../modules/es.string.split');

@@ -2,0 +3,0 @@ var entryUnbind = require('../../internals/entry-unbind');

2

es/symbol/async-iterator.js
require('../../modules/es.symbol.async-iterator');
var WrappedWellKnownSymbolModule = require('../../internals/wrapped-well-known-symbol');
var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');
module.exports = WrappedWellKnownSymbolModule.f('asyncIterator');
require('../../modules/es.symbol.has-instance');
require('../../modules/es.function.has-instance');
var WrappedWellKnownSymbolModule = require('../../internals/wrapped-well-known-symbol');
var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');
module.exports = WrappedWellKnownSymbolModule.f('hasInstance');
require('../../modules/es.symbol.is-concat-spreadable');
require('../../modules/es.array.concat');
var WrappedWellKnownSymbolModule = require('../../internals/wrapped-well-known-symbol');
var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');
module.exports = WrappedWellKnownSymbolModule.f('isConcatSpreadable');
require('../../modules/es.symbol.iterator');
require('../../modules/es.string.iterator');
require('../../modules/web.dom-collections.iterator');
var WrappedWellKnownSymbolModule = require('../../internals/wrapped-well-known-symbol');
var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');
module.exports = WrappedWellKnownSymbolModule.f('iterator');
require('../../modules/es.symbol.match-all');
require('../../modules/es.string.match-all');
var WrappedWellKnownSymbolModule = require('../../internals/wrapped-well-known-symbol');
var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');
module.exports = WrappedWellKnownSymbolModule.f('matchAll');
require('../../modules/es.symbol.match');
require('../../modules/es.string.match');
var WrappedWellKnownSymbolModule = require('../../internals/wrapped-well-known-symbol');
var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');
module.exports = WrappedWellKnownSymbolModule.f('match');
require('../../modules/es.symbol.replace');
require('../../modules/es.string.replace');
var WrappedWellKnownSymbolModule = require('../../internals/wrapped-well-known-symbol');
var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');
module.exports = WrappedWellKnownSymbolModule.f('replace');
require('../../modules/es.symbol.search');
require('../../modules/es.string.search');
var WrappedWellKnownSymbolModule = require('../../internals/wrapped-well-known-symbol');
var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');
module.exports = WrappedWellKnownSymbolModule.f('search');
require('../../modules/es.symbol.species');
var WrappedWellKnownSymbolModule = require('../../internals/wrapped-well-known-symbol');
var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');
module.exports = WrappedWellKnownSymbolModule.f('species');
require('../../modules/es.symbol.split');
require('../../modules/es.string.split');
var WrappedWellKnownSymbolModule = require('../../internals/wrapped-well-known-symbol');
var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');
module.exports = WrappedWellKnownSymbolModule.f('split');
require('../../modules/es.symbol.to-primitive');
var WrappedWellKnownSymbolModule = require('../../internals/wrapped-well-known-symbol');
var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');
module.exports = WrappedWellKnownSymbolModule.f('toPrimitive');

@@ -5,4 +5,4 @@ require('../../modules/es.symbol.to-string-tag');

require('../../modules/es.json.to-string-tag');
var WrappedWellKnownSymbolModule = require('../../internals/wrapped-well-known-symbol');
var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');
module.exports = WrappedWellKnownSymbolModule.f('toStringTag');
require('../../modules/es.symbol.unscopables');
var WrappedWellKnownSymbolModule = require('../../internals/wrapped-well-known-symbol');
var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');
module.exports = WrappedWellKnownSymbolModule.f('unscopables');
require('../../modules/esnext.symbol.async-dispose');
var WrappedWellKnownSymbolModule = require('../../internals/wrapped-well-known-symbol');
var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');
module.exports = WrappedWellKnownSymbolModule.f('asyncDispose');
require('../../modules/esnext.symbol.dispose');
var WrappedWellKnownSymbolModule = require('../../internals/wrapped-well-known-symbol');
var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');
module.exports = WrappedWellKnownSymbolModule.f('dispose');
require('../../modules/esnext.symbol.observable');
var WrappedWellKnownSymbolModule = require('../../internals/wrapped-well-known-symbol');
var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');
module.exports = WrappedWellKnownSymbolModule.f('observable');
require('../../modules/esnext.symbol.pattern-match');
var WrappedWellKnownSymbolModule = require('../../internals/wrapped-well-known-symbol');
var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');
module.exports = WrappedWellKnownSymbolModule.f('patternMatch');
// TODO: Remove from `core-js@4`
require('../../modules/esnext.symbol.replace-all');
var WrappedWellKnownSymbolModule = require('../../internals/wrapped-well-known-symbol');
var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');
module.exports = WrappedWellKnownSymbolModule.f('replaceAll');
'use strict';
var $forEach = require('../internals/array-iteration').forEach;
var sloppyArrayMethod = require('../internals/sloppy-array-method');
var arrayMethodIsStrict = require('../internals/array-method-is-strict');
var arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');
var STRICT_METHOD = arrayMethodIsStrict('forEach');
var USES_TO_LENGTH = arrayMethodUsesToLength('forEach');
// `Array.prototype.forEach` method implementation
// https://tc39.github.io/ecma262/#sec-array.prototype.foreach
module.exports = sloppyArrayMethod('forEach') ? function forEach(callbackfn /* , thisArg */) {
module.exports = (!STRICT_METHOD || !USES_TO_LENGTH) ? function forEach(callbackfn /* , thisArg */) {
return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
} : [].forEach;
'use strict';
var bind = require('../internals/bind-context');
var bind = require('../internals/function-bind-context');
var toObject = require('../internals/to-object');

@@ -18,5 +18,5 @@ var callWithSafeIterationClosing = require('../internals/call-with-safe-iteration-closing');

var mapping = mapfn !== undefined;
var iteratorMethod = getIteratorMethod(O);
var index = 0;
var iteratorMethod = getIteratorMethod(O);
var length, result, step, iterator, next;
var length, result, step, iterator, next, value;
if (mapping) mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : undefined, 2);

@@ -29,6 +29,4 @@ // if the target is not iterable or it's an array with the default iterator - use a simple case

for (;!(step = next.call(iterator)).done; index++) {
createProperty(result, index, mapping
? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true)
: step.value
);
value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;
createProperty(result, index, value);
}

@@ -39,3 +37,4 @@ } else {

for (;length > index; index++) {
createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]);
value = mapping ? mapfn(O[index], index) : O[index];
createProperty(result, index, value);
}

@@ -42,0 +41,0 @@ }

@@ -1,2 +0,2 @@

var bind = require('../internals/bind-context');
var bind = require('../internals/function-bind-context');
var IndexedObject = require('../internals/indexed-object');

@@ -3,0 +3,0 @@ var toObject = require('../internals/to-object');

@@ -5,3 +5,4 @@ 'use strict';

var toLength = require('../internals/to-length');
var sloppyArrayMethod = require('../internals/sloppy-array-method');
var arrayMethodIsStrict = require('../internals/array-method-is-strict');
var arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');

@@ -11,7 +12,9 @@ var min = Math.min;

var NEGATIVE_ZERO = !!nativeLastIndexOf && 1 / [1].lastIndexOf(1, -0) < 0;
var SLOPPY_METHOD = sloppyArrayMethod('lastIndexOf');
var STRICT_METHOD = arrayMethodIsStrict('lastIndexOf');
var USES_TO_LENGTH = arrayMethodUsesToLength('lastIndexOf', { ACCESSORS: true, 1: 2147483647 });
var FORCED = NEGATIVE_ZERO || !STRICT_METHOD || !USES_TO_LENGTH;
// `Array.prototype.lastIndexOf` method implementation
// https://tc39.github.io/ecma262/#sec-array.prototype.lastindexof
module.exports = (NEGATIVE_ZERO || SLOPPY_METHOD) ? function lastIndexOf(searchElement /* , fromIndex = @[*-1] */) {
module.exports = FORCED ? function lastIndexOf(searchElement /* , fromIndex = @[*-1] */) {
// convert -0 to +0

@@ -18,0 +21,0 @@ if (NEGATIVE_ZERO) return nativeLastIndexOf.apply(this, arguments) || 0;

var fails = require('../internals/fails');
var wellKnownSymbol = require('../internals/well-known-symbol');
var V8_VERSION = require('../internals/v8-version');
var V8_VERSION = require('../internals/engine-v8-version');

@@ -5,0 +5,0 @@ var SPECIES = wellKnownSymbol('species');

'use strict';
// https://tc39.github.io/proposal-setmap-offrom/
var aFunction = require('../internals/a-function');
var bind = require('../internals/bind-context');
var bind = require('../internals/function-bind-context');
var iterate = require('../internals/iterate');

@@ -6,0 +6,0 @@

@@ -5,3 +5,3 @@ 'use strict';

var redefineAll = require('../internals/redefine-all');
var bind = require('../internals/bind-context');
var bind = require('../internals/function-bind-context');
var anInstance = require('../internals/an-instance');

@@ -8,0 +8,0 @@ var iterate = require('../internals/iterate');

var path = require('../internals/path');
var has = require('../internals/has');
var wrappedWellKnownSymbolModule = require('../internals/wrapped-well-known-symbol');
var wrappedWellKnownSymbolModule = require('../internals/well-known-symbol-wrapped');
var defineProperty = require('../internals/object-define-property').f;

@@ -5,0 +5,0 @@

@@ -5,3 +5,3 @@ var fails = require('../internals/fails');

module.exports = !fails(function () {
return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
});

@@ -6,3 +6,3 @@ 'use strict';

var path = require('../internals/path');
var bind = require('../internals/bind-context');
var bind = require('../internals/function-bind-context');
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');

@@ -9,0 +9,0 @@ var has = require('../internals/has');

'use strict';
var isArray = require('../internals/is-array');
var toLength = require('../internals/to-length');
var bind = require('../internals/bind-context');
var bind = require('../internals/function-bind-context');

@@ -6,0 +6,0 @@ // `FlattenIntoArray` abstract operation

var anObject = require('../internals/an-object');
var isArrayIteratorMethod = require('../internals/is-array-iterator-method');
var toLength = require('../internals/to-length');
var bind = require('../internals/bind-context');
var bind = require('../internals/function-bind-context');
var getIteratorMethod = require('../internals/get-iterator-method');

@@ -6,0 +6,0 @@ var callWithSafeIterationClosing = require('../internals/call-with-safe-iteration-closing');

@@ -5,3 +5,3 @@ var global = require('../internals/global');

var macrotask = require('../internals/task').set;
var IS_IOS = require('../internals/is-ios');
var IS_IOS = require('../internals/engine-is-ios');

@@ -8,0 +8,0 @@ var MutationObserver = global.MutationObserver || global.WebKitMutationObserver;

@@ -7,5 +7,5 @@ var IS_PURE = require('../internals/is-pure');

})('versions', []).push({
version: '3.6.1',
version: '3.6.2',
mode: IS_PURE ? 'pure' : 'global',
copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
});
var global = require('../internals/global');
var fails = require('../internals/fails');
var classof = require('../internals/classof-raw');
var bind = require('../internals/bind-context');
var bind = require('../internals/function-bind-context');
var html = require('../internals/html');
var createElement = require('../internals/document-create-element');
var IS_IOS = require('../internals/is-ios');
var IS_IOS = require('../internals/engine-is-ios');

@@ -9,0 +9,0 @@ var location = global.location;

@@ -12,3 +12,3 @@ 'use strict';

var wellKnownSymbol = require('../internals/well-known-symbol');
var V8_VERSION = require('../internals/v8-version');
var V8_VERSION = require('../internals/engine-v8-version');

@@ -15,0 +15,0 @@ var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');

'use strict';
var $ = require('../internals/export');
var $every = require('../internals/array-iteration').every;
var sloppyArrayMethod = require('../internals/sloppy-array-method');
var arrayMethodIsStrict = require('../internals/array-method-is-strict');
var arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');
var STRICT_METHOD = arrayMethodIsStrict('every');
var USES_TO_LENGTH = arrayMethodUsesToLength('every');
// `Array.prototype.every` method
// https://tc39.github.io/ecma262/#sec-array.prototype.every
$({ target: 'Array', proto: true, forced: sloppyArrayMethod('every') }, {
$({ target: 'Array', proto: true, forced: !STRICT_METHOD || !USES_TO_LENGTH }, {
every: function every(callbackfn /* , thisArg */) {

@@ -10,0 +14,0 @@ return $every(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);

'use strict';
var $ = require('../internals/export');
var $filter = require('../internals/array-iteration').filter;
var fails = require('../internals/fails');
var arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');
var arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
// Edge 14- issue
var USES_TO_LENGTH = HAS_SPECIES_SUPPORT && !fails(function () {
[].filter.call({ length: -1, 0: 1 }, function (it) { throw it; });
});
var USES_TO_LENGTH = arrayMethodUsesToLength('filter');

@@ -13,0 +11,0 @@ // `Array.prototype.filter` method

@@ -5,2 +5,3 @@ 'use strict';

var addToUnscopables = require('../internals/add-to-unscopables');
var arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');

@@ -10,2 +11,4 @@ var FIND_INDEX = 'findIndex';

var USES_TO_LENGTH = arrayMethodUsesToLength(FIND_INDEX);
// Shouldn't skip holes

@@ -16,3 +19,3 @@ if (FIND_INDEX in []) Array(1)[FIND_INDEX](function () { SKIPS_HOLES = false; });

// https://tc39.github.io/ecma262/#sec-array.prototype.findindex
$({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
$({ target: 'Array', proto: true, forced: SKIPS_HOLES || !USES_TO_LENGTH }, {
findIndex: function findIndex(callbackfn /* , that = undefined */) {

@@ -19,0 +22,0 @@ return $findIndex(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);

@@ -5,2 +5,3 @@ 'use strict';

var addToUnscopables = require('../internals/add-to-unscopables');
var arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');

@@ -10,2 +11,4 @@ var FIND = 'find';

var USES_TO_LENGTH = arrayMethodUsesToLength(FIND);
// Shouldn't skip holes

@@ -16,3 +19,3 @@ if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });

// https://tc39.github.io/ecma262/#sec-array.prototype.find
$({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
$({ target: 'Array', proto: true, forced: SKIPS_HOLES || !USES_TO_LENGTH }, {
find: function find(callbackfn /* , that = undefined */) {

@@ -19,0 +22,0 @@ return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);

@@ -5,6 +5,9 @@ 'use strict';

var addToUnscopables = require('../internals/add-to-unscopables');
var arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');
var USES_TO_LENGTH = arrayMethodUsesToLength('indexOf', { ACCESSORS: true, 1: 0 });
// `Array.prototype.includes` method
// https://tc39.github.io/ecma262/#sec-array.prototype.includes
$({ target: 'Array', proto: true }, {
$({ target: 'Array', proto: true, forced: !USES_TO_LENGTH }, {
includes: function includes(el /* , fromIndex = 0 */) {

@@ -11,0 +14,0 @@ return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);

'use strict';
var $ = require('../internals/export');
var $indexOf = require('../internals/array-includes').indexOf;
var sloppyArrayMethod = require('../internals/sloppy-array-method');
var arrayMethodIsStrict = require('../internals/array-method-is-strict');
var arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');

@@ -9,7 +10,8 @@ var nativeIndexOf = [].indexOf;

var NEGATIVE_ZERO = !!nativeIndexOf && 1 / [1].indexOf(1, -0) < 0;
var SLOPPY_METHOD = sloppyArrayMethod('indexOf');
var STRICT_METHOD = arrayMethodIsStrict('indexOf');
var USES_TO_LENGTH = arrayMethodUsesToLength('indexOf', { ACCESSORS: true, 1: 0 });
// `Array.prototype.indexOf` method
// https://tc39.github.io/ecma262/#sec-array.prototype.indexof
$({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || SLOPPY_METHOD }, {
$({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD || !USES_TO_LENGTH }, {
indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {

@@ -16,0 +18,0 @@ return NEGATIVE_ZERO

@@ -5,3 +5,3 @@ 'use strict';

var toIndexedObject = require('../internals/to-indexed-object');
var sloppyArrayMethod = require('../internals/sloppy-array-method');
var arrayMethodIsStrict = require('../internals/array-method-is-strict');

@@ -11,7 +11,7 @@ var nativeJoin = [].join;

var ES3_STRINGS = IndexedObject != Object;
var SLOPPY_METHOD = sloppyArrayMethod('join', ',');
var STRICT_METHOD = arrayMethodIsStrict('join', ',');
// `Array.prototype.join` method
// https://tc39.github.io/ecma262/#sec-array.prototype.join
$({ target: 'Array', proto: true, forced: ES3_STRINGS || SLOPPY_METHOD }, {
$({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD }, {
join: function join(separator) {

@@ -18,0 +18,0 @@ return nativeJoin.call(toIndexedObject(this), separator === undefined ? ',' : separator);

'use strict';
var $ = require('../internals/export');
var $map = require('../internals/array-iteration').map;
var fails = require('../internals/fails');
var arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');
var arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');
// FF49- issue
var USES_TO_LENGTH = HAS_SPECIES_SUPPORT && !fails(function () {
[].map.call({ length: -1, 0: 1 }, function (it) { throw it; });
});
var USES_TO_LENGTH = arrayMethodUsesToLength('map');

@@ -13,0 +11,0 @@ // `Array.prototype.map` method

'use strict';
var $ = require('../internals/export');
var $reduceRight = require('../internals/array-reduce').right;
var sloppyArrayMethod = require('../internals/sloppy-array-method');
var arrayMethodIsStrict = require('../internals/array-method-is-strict');
var arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');
var STRICT_METHOD = arrayMethodIsStrict('reduceRight');
var USES_TO_LENGTH = arrayMethodUsesToLength('reduceRight', { 1: 0 });
// `Array.prototype.reduceRight` method
// https://tc39.github.io/ecma262/#sec-array.prototype.reduceright
$({ target: 'Array', proto: true, forced: sloppyArrayMethod('reduceRight') }, {
$({ target: 'Array', proto: true, forced: !STRICT_METHOD || !USES_TO_LENGTH }, {
reduceRight: function reduceRight(callbackfn /* , initialValue */) {

@@ -10,0 +14,0 @@ return $reduceRight(this, callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined);

'use strict';
var $ = require('../internals/export');
var $reduce = require('../internals/array-reduce').left;
var sloppyArrayMethod = require('../internals/sloppy-array-method');
var arrayMethodIsStrict = require('../internals/array-method-is-strict');
var arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');
var STRICT_METHOD = arrayMethodIsStrict('reduce');
var USES_TO_LENGTH = arrayMethodUsesToLength('reduce', { 1: 0 });
// `Array.prototype.reduce` method
// https://tc39.github.io/ecma262/#sec-array.prototype.reduce
$({ target: 'Array', proto: true, forced: sloppyArrayMethod('reduce') }, {
$({ target: 'Array', proto: true, forced: !STRICT_METHOD || !USES_TO_LENGTH }, {
reduce: function reduce(callbackfn /* , initialValue */) {

@@ -10,0 +14,0 @@ return $reduce(this, callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined);

@@ -9,5 +9,9 @@ 'use strict';

var createProperty = require('../internals/create-property');
var wellKnownSymbol = require('../internals/well-known-symbol');
var arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');
var wellKnownSymbol = require('../internals/well-known-symbol');
var arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice');
var USES_TO_LENGTH = arrayMethodUsesToLength('slice', { ACCESSORS: true, 0: 0, 1: 2 });
var SPECIES = wellKnownSymbol('species');

@@ -20,3 +24,3 @@ var nativeSlice = [].slice;

// fallback for not array-like ES3 strings and DOM objects
$({ target: 'Array', proto: true, forced: !arrayMethodHasSpeciesSupport('slice') }, {
$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {
slice: function slice(start, end) {

@@ -23,0 +27,0 @@ var O = toIndexedObject(this);

'use strict';
var $ = require('../internals/export');
var $some = require('../internals/array-iteration').some;
var sloppyArrayMethod = require('../internals/sloppy-array-method');
var arrayMethodIsStrict = require('../internals/array-method-is-strict');
var arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');
var STRICT_METHOD = arrayMethodIsStrict('some');
var USES_TO_LENGTH = arrayMethodUsesToLength('some');
// `Array.prototype.some` method
// https://tc39.github.io/ecma262/#sec-array.prototype.some
$({ target: 'Array', proto: true, forced: sloppyArrayMethod('some') }, {
$({ target: 'Array', proto: true, forced: !STRICT_METHOD || !USES_TO_LENGTH }, {
some: function some(callbackfn /* , thisArg */) {

@@ -10,0 +14,0 @@ return $some(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);

@@ -6,3 +6,3 @@ 'use strict';

var fails = require('../internals/fails');
var sloppyArrayMethod = require('../internals/sloppy-array-method');
var arrayMethodIsStrict = require('../internals/array-method-is-strict');

@@ -21,5 +21,5 @@ var test = [];

// Old WebKit
var SLOPPY_METHOD = sloppyArrayMethod('sort');
var STRICT_METHOD = arrayMethodIsStrict('sort');
var FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || SLOPPY_METHOD;
var FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD;

@@ -26,0 +26,0 @@ // `Array.prototype.sort` method

@@ -10,3 +10,7 @@ 'use strict';

var arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');
var arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice');
var USES_TO_LENGTH = arrayMethodUsesToLength('splice', { ACCESSORS: true, 0: 0, 1: 2 });
var max = Math.max;

@@ -20,3 +24,3 @@ var min = Math.min;

// with adding support of @@species
$({ target: 'Array', proto: true, forced: !arrayMethodHasSpeciesSupport('splice') }, {
$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {
splice: function splice(start, deleteCount /* , ...items */) {

@@ -23,0 +27,0 @@ var O = toObject(this);

var $ = require('../internals/export');
var parseFloat = require('../internals/parse-float');
var parseFloat = require('../internals/number-parse-float');

@@ -4,0 +4,0 @@ // `Number.parseFloat` method

var $ = require('../internals/export');
var parseInt = require('../internals/parse-int');
var parseInt = require('../internals/number-parse-int');

@@ -4,0 +4,0 @@ // `Number.parseInt` method

'use strict';
var $ = require('../internals/export');
var DESCRIPTORS = require('../internals/descriptors');
var FORCED = require('../internals/forced-object-prototype-accessors-methods');
var FORCED = require('../internals/object-prototype-accessors-forced');
var toObject = require('../internals/to-object');

@@ -6,0 +6,0 @@ var aFunction = require('../internals/a-function');

'use strict';
var $ = require('../internals/export');
var DESCRIPTORS = require('../internals/descriptors');
var FORCED = require('../internals/forced-object-prototype-accessors-methods');
var FORCED = require('../internals/object-prototype-accessors-forced');
var toObject = require('../internals/to-object');

@@ -6,0 +6,0 @@ var aFunction = require('../internals/a-function');

'use strict';
var $ = require('../internals/export');
var DESCRIPTORS = require('../internals/descriptors');
var FORCED = require('../internals/forced-object-prototype-accessors-methods');
var FORCED = require('../internals/object-prototype-accessors-forced');
var toObject = require('../internals/to-object');

@@ -6,0 +6,0 @@ var toPrimitive = require('../internals/to-primitive');

'use strict';
var $ = require('../internals/export');
var DESCRIPTORS = require('../internals/descriptors');
var FORCED = require('../internals/forced-object-prototype-accessors-methods');
var FORCED = require('../internals/object-prototype-accessors-forced');
var toObject = require('../internals/to-object');

@@ -6,0 +6,0 @@ var toPrimitive = require('../internals/to-primitive');

var $ = require('../internals/export');
var parseFloatImplementation = require('../internals/parse-float');
var parseFloatImplementation = require('../internals/number-parse-float');

@@ -4,0 +4,0 @@ // `parseFloat` method

var $ = require('../internals/export');
var parseIntImplementation = require('../internals/parse-int');
var parseIntImplementation = require('../internals/number-parse-int');

@@ -4,0 +4,0 @@ // `parseInt` method

@@ -28,3 +28,3 @@ 'use strict';

var wellKnownSymbol = require('../internals/well-known-symbol');
var V8_VERSION = require('../internals/v8-version');
var V8_VERSION = require('../internals/engine-v8-version');

@@ -31,0 +31,0 @@ var SPECIES = wellKnownSymbol('species');

'use strict';
var $ = require('../internals/export');
var createHTML = require('../internals/create-html');
var forcedStringHTMLMethod = require('../internals/forced-string-html-method');
var forcedStringHTMLMethod = require('../internals/string-html-forced');

@@ -6,0 +6,0 @@ // `String.prototype.anchor` method

'use strict';
var $ = require('../internals/export');
var createHTML = require('../internals/create-html');
var forcedStringHTMLMethod = require('../internals/forced-string-html-method');
var forcedStringHTMLMethod = require('../internals/string-html-forced');

@@ -6,0 +6,0 @@ // `String.prototype.big` method

'use strict';
var $ = require('../internals/export');
var createHTML = require('../internals/create-html');
var forcedStringHTMLMethod = require('../internals/forced-string-html-method');
var forcedStringHTMLMethod = require('../internals/string-html-forced');

@@ -6,0 +6,0 @@ // `String.prototype.blink` method

'use strict';
var $ = require('../internals/export');
var createHTML = require('../internals/create-html');
var forcedStringHTMLMethod = require('../internals/forced-string-html-method');
var forcedStringHTMLMethod = require('../internals/string-html-forced');

@@ -6,0 +6,0 @@ // `String.prototype.bold` method

'use strict';
var $ = require('../internals/export');
var createHTML = require('../internals/create-html');
var forcedStringHTMLMethod = require('../internals/forced-string-html-method');
var forcedStringHTMLMethod = require('../internals/string-html-forced');

@@ -6,0 +6,0 @@ // `String.prototype.fixed` method

'use strict';
var $ = require('../internals/export');
var createHTML = require('../internals/create-html');
var forcedStringHTMLMethod = require('../internals/forced-string-html-method');
var forcedStringHTMLMethod = require('../internals/string-html-forced');

@@ -6,0 +6,0 @@ // `String.prototype.fontcolor` method

'use strict';
var $ = require('../internals/export');
var createHTML = require('../internals/create-html');
var forcedStringHTMLMethod = require('../internals/forced-string-html-method');
var forcedStringHTMLMethod = require('../internals/string-html-forced');

@@ -6,0 +6,0 @@ // `String.prototype.fontsize` method

'use strict';
var $ = require('../internals/export');
var createHTML = require('../internals/create-html');
var forcedStringHTMLMethod = require('../internals/forced-string-html-method');
var forcedStringHTMLMethod = require('../internals/string-html-forced');

@@ -6,0 +6,0 @@ // `String.prototype.italics` method

'use strict';
var $ = require('../internals/export');
var createHTML = require('../internals/create-html');
var forcedStringHTMLMethod = require('../internals/forced-string-html-method');
var forcedStringHTMLMethod = require('../internals/string-html-forced');

@@ -6,0 +6,0 @@ // `String.prototype.link` method

'use strict';
var $ = require('../internals/export');
var $padEnd = require('../internals/string-pad').end;
var WEBKIT_BUG = require('../internals/webkit-string-pad-bug');
var WEBKIT_BUG = require('../internals/string-pad-webkit-bug');

@@ -6,0 +6,0 @@ // `String.prototype.padEnd` method

'use strict';
var $ = require('../internals/export');
var $padStart = require('../internals/string-pad').start;
var WEBKIT_BUG = require('../internals/webkit-string-pad-bug');
var WEBKIT_BUG = require('../internals/string-pad-webkit-bug');

@@ -6,0 +6,0 @@ // `String.prototype.padStart` method

'use strict';
var $ = require('../internals/export');
var createHTML = require('../internals/create-html');
var forcedStringHTMLMethod = require('../internals/forced-string-html-method');
var forcedStringHTMLMethod = require('../internals/string-html-forced');

@@ -6,0 +6,0 @@ // `String.prototype.small` method

'use strict';
var $ = require('../internals/export');
var createHTML = require('../internals/create-html');
var forcedStringHTMLMethod = require('../internals/forced-string-html-method');
var forcedStringHTMLMethod = require('../internals/string-html-forced');

@@ -6,0 +6,0 @@ // `String.prototype.strike` method

'use strict';
var $ = require('../internals/export');
var createHTML = require('../internals/create-html');
var forcedStringHTMLMethod = require('../internals/forced-string-html-method');
var forcedStringHTMLMethod = require('../internals/string-html-forced');

@@ -6,0 +6,0 @@ // `String.prototype.sub` method

'use strict';
var $ = require('../internals/export');
var createHTML = require('../internals/create-html');
var forcedStringHTMLMethod = require('../internals/forced-string-html-method');
var forcedStringHTMLMethod = require('../internals/string-html-forced');

@@ -6,0 +6,0 @@ // `String.prototype.sup` method

'use strict';
var $ = require('../internals/export');
var $trimEnd = require('../internals/string-trim').end;
var forcedStringTrimMethod = require('../internals/forced-string-trim-method');
var forcedStringTrimMethod = require('../internals/string-trim-forced');

@@ -6,0 +6,0 @@ var FORCED = forcedStringTrimMethod('trimEnd');

'use strict';
var $ = require('../internals/export');
var $trimStart = require('../internals/string-trim').start;
var forcedStringTrimMethod = require('../internals/forced-string-trim-method');
var forcedStringTrimMethod = require('../internals/string-trim-forced');

@@ -6,0 +6,0 @@ var FORCED = forcedStringTrimMethod('trimStart');

'use strict';
var $ = require('../internals/export');
var $trim = require('../internals/string-trim').trim;
var forcedStringTrimMethod = require('../internals/forced-string-trim-method');
var forcedStringTrimMethod = require('../internals/string-trim-forced');

@@ -6,0 +6,0 @@ // `String.prototype.trim` method

@@ -33,3 +33,3 @@ 'use strict';

var wellKnownSymbol = require('../internals/well-known-symbol');
var wrappedWellKnownSymbolModule = require('../internals/wrapped-well-known-symbol');
var wrappedWellKnownSymbolModule = require('../internals/well-known-symbol-wrapped');
var defineWellKnownSymbol = require('../internals/define-well-known-symbol');

@@ -36,0 +36,0 @@ var setToStringTag = require('../internals/set-to-string-tag');

@@ -5,3 +5,3 @@ 'use strict';

var anObject = require('../internals/an-object');
var createAsyncIteratorProxy = require('../internals/create-async-iterator-proxy');
var createAsyncIteratorProxy = require('../internals/async-iterator-create-proxy');

@@ -8,0 +8,0 @@ var AsyncIteratorProxy = createAsyncIteratorProxy(function (arg, Promise) {

@@ -6,3 +6,3 @@ 'use strict';

var toPositiveInteger = require('../internals/to-positive-integer');
var createAsyncIteratorProxy = require('../internals/create-async-iterator-proxy');
var createAsyncIteratorProxy = require('../internals/async-iterator-create-proxy');

@@ -9,0 +9,0 @@ var AsyncIteratorProxy = createAsyncIteratorProxy(function (arg, Promise) {

@@ -6,3 +6,3 @@ 'use strict';

var anObject = require('../internals/an-object');
var createAsyncIteratorProxy = require('../internals/create-async-iterator-proxy');
var createAsyncIteratorProxy = require('../internals/async-iterator-create-proxy');

@@ -9,0 +9,0 @@ var AsyncIteratorProxy = createAsyncIteratorProxy(function (arg, Promise) {

@@ -6,3 +6,3 @@ 'use strict';

var anObject = require('../internals/an-object');
var createAsyncIteratorProxy = require('../internals/create-async-iterator-proxy');
var createAsyncIteratorProxy = require('../internals/async-iterator-create-proxy');
var getAsyncIteratorMethod = require('../internals/get-async-iterator-method');

@@ -9,0 +9,0 @@

@@ -7,3 +7,3 @@ // https://github.com/tc39/proposal-iterator-helpers

var toObject = require('../internals/to-object');
var createAsyncIteratorProxy = require('../internals/create-async-iterator-proxy');
var createAsyncIteratorProxy = require('../internals/async-iterator-create-proxy');
var getAsyncIteratorMethod = require('../internals/get-async-iterator-method');

@@ -10,0 +10,0 @@

@@ -6,3 +6,3 @@ 'use strict';

var anObject = require('../internals/an-object');
var createAsyncIteratorProxy = require('../internals/create-async-iterator-proxy');
var createAsyncIteratorProxy = require('../internals/async-iterator-create-proxy');

@@ -9,0 +9,0 @@ var AsyncIteratorProxy = createAsyncIteratorProxy(function (arg, Promise) {

@@ -6,3 +6,3 @@ 'use strict';

var toPositiveInteger = require('../internals/to-positive-integer');
var createAsyncIteratorProxy = require('../internals/create-async-iterator-proxy');
var createAsyncIteratorProxy = require('../internals/async-iterator-create-proxy');

@@ -9,0 +9,0 @@ var AsyncIteratorProxy = createAsyncIteratorProxy(function (arg) {

@@ -5,3 +5,3 @@ 'use strict';

var anObject = require('../internals/an-object');
var createIteratorProxy = require('../internals/create-iterator-proxy');
var createIteratorProxy = require('../internals/iterator-create-proxy');

@@ -8,0 +8,0 @@ var IteratorProxy = createIteratorProxy(function (arg) {

@@ -6,3 +6,3 @@ 'use strict';

var toPositiveInteger = require('../internals/to-positive-integer');
var createIteratorProxy = require('../internals/create-iterator-proxy');
var createIteratorProxy = require('../internals/iterator-create-proxy');

@@ -9,0 +9,0 @@ var IteratorProxy = createIteratorProxy(function (arg) {

@@ -6,3 +6,3 @@ 'use strict';

var anObject = require('../internals/an-object');
var createIteratorProxy = require('../internals/create-iterator-proxy');
var createIteratorProxy = require('../internals/iterator-create-proxy');
var callWithSafeIterationClosing = require('../internals/call-with-safe-iteration-closing');

@@ -9,0 +9,0 @@

@@ -7,3 +7,3 @@ 'use strict';

var getIteratorMethod = require('../internals/get-iterator-method');
var createIteratorProxy = require('../internals/create-iterator-proxy');
var createIteratorProxy = require('../internals/iterator-create-proxy');
var callWithSafeIterationClosing = require('../internals/call-with-safe-iteration-closing');

@@ -10,0 +10,0 @@

@@ -7,3 +7,3 @@ // https://github.com/tc39/proposal-iterator-helpers

var toObject = require('../internals/to-object');
var createIteratorProxy = require('../internals/create-iterator-proxy');
var createIteratorProxy = require('../internals/iterator-create-proxy');
var getIteratorMethod = require('../internals/get-iterator-method');

@@ -10,0 +10,0 @@

@@ -6,3 +6,3 @@ 'use strict';

var anObject = require('../internals/an-object');
var createIteratorProxy = require('../internals/create-iterator-proxy');
var createIteratorProxy = require('../internals/iterator-create-proxy');
var callWithSafeIterationClosing = require('../internals/call-with-safe-iteration-closing');

@@ -9,0 +9,0 @@

@@ -6,3 +6,3 @@ 'use strict';

var toPositiveInteger = require('../internals/to-positive-integer');
var createIteratorProxy = require('../internals/create-iterator-proxy');
var createIteratorProxy = require('../internals/iterator-create-proxy');

@@ -9,0 +9,0 @@ var IteratorProxy = createIteratorProxy(function (arg) {

@@ -5,3 +5,3 @@ 'use strict';

var anObject = require('../internals/an-object');
var bind = require('../internals/bind-context');
var bind = require('../internals/function-bind-context');
var getMapIterator = require('../internals/get-map-iterator');

@@ -8,0 +8,0 @@ var iterate = require('../internals/iterate');

@@ -7,3 +7,3 @@ 'use strict';

var aFunction = require('../internals/a-function');
var bind = require('../internals/bind-context');
var bind = require('../internals/function-bind-context');
var speciesConstructor = require('../internals/species-constructor');

@@ -10,0 +10,0 @@ var getMapIterator = require('../internals/get-map-iterator');

@@ -5,3 +5,3 @@ 'use strict';

var anObject = require('../internals/an-object');
var bind = require('../internals/bind-context');
var bind = require('../internals/function-bind-context');
var getMapIterator = require('../internals/get-map-iterator');

@@ -8,0 +8,0 @@ var iterate = require('../internals/iterate');

@@ -5,3 +5,3 @@ 'use strict';

var anObject = require('../internals/an-object');
var bind = require('../internals/bind-context');
var bind = require('../internals/function-bind-context');
var getMapIterator = require('../internals/get-map-iterator');

@@ -8,0 +8,0 @@ var iterate = require('../internals/iterate');

@@ -7,3 +7,3 @@ 'use strict';

var aFunction = require('../internals/a-function');
var bind = require('../internals/bind-context');
var bind = require('../internals/function-bind-context');
var speciesConstructor = require('../internals/species-constructor');

@@ -10,0 +10,0 @@ var getMapIterator = require('../internals/get-map-iterator');

@@ -7,3 +7,3 @@ 'use strict';

var aFunction = require('../internals/a-function');
var bind = require('../internals/bind-context');
var bind = require('../internals/function-bind-context');
var speciesConstructor = require('../internals/species-constructor');

@@ -10,0 +10,0 @@ var getMapIterator = require('../internals/get-map-iterator');

@@ -5,3 +5,3 @@ 'use strict';

var anObject = require('../internals/an-object');
var bind = require('../internals/bind-context');
var bind = require('../internals/function-bind-context');
var getMapIterator = require('../internals/get-map-iterator');

@@ -8,0 +8,0 @@ var iterate = require('../internals/iterate');

'use strict';
var $ = require('../internals/export');
var toInteger = require('../internals/to-integer');
var parseInt = require('../internals/parse-int');
var parseInt = require('../internals/number-parse-int');

@@ -6,0 +6,0 @@ var INVALID_NUMBER_REPRESENTATION = 'Invalid number representation';

@@ -5,3 +5,3 @@ 'use strict';

var anObject = require('../internals/an-object');
var bind = require('../internals/bind-context');
var bind = require('../internals/function-bind-context');
var getSetIterator = require('../internals/get-set-iterator');

@@ -8,0 +8,0 @@ var iterate = require('../internals/iterate');

@@ -7,3 +7,3 @@ 'use strict';

var aFunction = require('../internals/a-function');
var bind = require('../internals/bind-context');
var bind = require('../internals/function-bind-context');
var speciesConstructor = require('../internals/species-constructor');

@@ -10,0 +10,0 @@ var getSetIterator = require('../internals/get-set-iterator');

@@ -5,3 +5,3 @@ 'use strict';

var anObject = require('../internals/an-object');
var bind = require('../internals/bind-context');
var bind = require('../internals/function-bind-context');
var getSetIterator = require('../internals/get-set-iterator');

@@ -8,0 +8,0 @@ var iterate = require('../internals/iterate');

@@ -7,3 +7,3 @@ 'use strict';

var aFunction = require('../internals/a-function');
var bind = require('../internals/bind-context');
var bind = require('../internals/function-bind-context');
var speciesConstructor = require('../internals/species-constructor');

@@ -10,0 +10,0 @@ var getSetIterator = require('../internals/get-set-iterator');

@@ -5,3 +5,3 @@ 'use strict';

var anObject = require('../internals/an-object');
var bind = require('../internals/bind-context');
var bind = require('../internals/function-bind-context');
var getSetIterator = require('../internals/get-set-iterator');

@@ -8,0 +8,0 @@ var iterate = require('../internals/iterate');

var $ = require('../internals/export');
var global = require('../internals/global');
var userAgent = require('../internals/user-agent');
var userAgent = require('../internals/engine-user-agent');

@@ -5,0 +5,0 @@ var slice = [].slice;

@@ -14,3 +14,3 @@ 'use strict';

var hasOwn = require('../internals/has');
var bind = require('../internals/bind-context');
var bind = require('../internals/function-bind-context');
var classof = require('../internals/classof');

@@ -17,0 +17,0 @@ var anObject = require('../internals/an-object');

@@ -15,3 +15,3 @@ 'use strict';

var codeAt = require('../internals/string-multibyte').codeAt;
var toASCII = require('../internals/punycode-to-ascii');
var toASCII = require('../internals/string-punycode-to-ascii');
var setToStringTag = require('../internals/set-to-string-tag');

@@ -18,0 +18,0 @@ var URLSearchParamsModule = require('../modules/web.url-search-params');

{
"name": "core-js-pure",
"description": "Standard library",
"version": "3.6.1",
"version": "3.6.2",
"repository": {

@@ -6,0 +6,0 @@ "type": "git",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc