Socket
Socket
Sign inDemoInstall

core-js-pure

Package Overview
Dependencies
0
Maintainers
2
Versions
151
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.13.0 to 3.13.1

1

internals/call-with-safe-iteration-closing.js

@@ -8,3 +8,2 @@ var anObject = require('../internals/an-object');

return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);
// 7.4.6 IteratorClose(iterator, completion)
} catch (error) {

@@ -11,0 +10,0 @@ iteratorClose(iterator);

44

internals/collection-strong.js

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

redefineAll(C.prototype, {
// 23.1.3.1 Map.prototype.clear()
// 23.2.3.2 Set.prototype.clear()
// `{ Map, Set }.prototype.clear()` methods
// https://tc39.es/ecma262/#sec-map.prototype.clear
// https://tc39.es/ecma262/#sec-set.prototype.clear
clear: function clear() {

@@ -91,4 +92,5 @@ var that = this;

},
// 23.1.3.3 Map.prototype.delete(key)
// 23.2.3.4 Set.prototype.delete(value)
// `{ Map, Set }.prototype.delete(key)` methods
// https://tc39.es/ecma262/#sec-map.prototype.delete
// https://tc39.es/ecma262/#sec-set.prototype.delete
'delete': function (key) {

@@ -111,4 +113,5 @@ var that = this;

},
// 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)
// 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)
// `{ Map, Set }.prototype.forEach(callbackfn, thisArg = undefined)` methods
// https://tc39.es/ecma262/#sec-map.prototype.foreach
// https://tc39.es/ecma262/#sec-set.prototype.foreach
forEach: function forEach(callbackfn /* , that = undefined */) {

@@ -124,4 +127,5 @@ var state = getInternalState(this);

},
// 23.1.3.7 Map.prototype.has(key)
// 23.2.3.7 Set.prototype.has(value)
// `{ Map, Set}.prototype.has(key)` methods
// https://tc39.es/ecma262/#sec-map.prototype.has
// https://tc39.es/ecma262/#sec-set.prototype.has
has: function has(key) {

@@ -133,3 +137,4 @@ return !!getEntry(this, key);

redefineAll(C.prototype, IS_MAP ? {
// 23.1.3.6 Map.prototype.get(key)
// `Map.prototype.get(key)` method
// https://tc39.es/ecma262/#sec-map.prototype.get
get: function get(key) {

@@ -139,3 +144,4 @@ var entry = getEntry(this, key);

},
// 23.1.3.9 Map.prototype.set(key, value)
// `Map.prototype.set(key, value)` method
// https://tc39.es/ecma262/#sec-map.prototype.set
set: function set(key, value) {

@@ -145,3 +151,4 @@ return define(this, key === 0 ? 0 : key, value);

} : {
// 23.2.3.1 Set.prototype.add(value)
// `Set.prototype.add(value)` method
// https://tc39.es/ecma262/#sec-set.prototype.add
add: function add(value) {

@@ -162,4 +169,11 @@ return define(this, value = value === 0 ? 0 : value, value);

var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);
// add .keys, .values, .entries, [@@iterator]
// 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11
// `{ Map, Set }.prototype.{ keys, values, entries, @@iterator }()` methods
// https://tc39.es/ecma262/#sec-map.prototype.entries
// https://tc39.es/ecma262/#sec-map.prototype.keys
// https://tc39.es/ecma262/#sec-map.prototype.values
// https://tc39.es/ecma262/#sec-map.prototype-@@iterator
// https://tc39.es/ecma262/#sec-set.prototype.entries
// https://tc39.es/ecma262/#sec-set.prototype.keys
// https://tc39.es/ecma262/#sec-set.prototype.values
// https://tc39.es/ecma262/#sec-set.prototype-@@iterator
defineIterator(C, CONSTRUCTOR_NAME, function (iterated, kind) {

@@ -191,5 +205,7 @@ setInternalState(this, {

// add [@@species], 23.1.2.2, 23.2.2.2
// `{ Map, Set }.prototype[@@species]` accessors
// https://tc39.es/ecma262/#sec-get-map-@@species
// https://tc39.es/ecma262/#sec-get-set-@@species
setSpecies(CONSTRUCTOR_NAME);
}
};

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

redefineAll(C.prototype, {
// 23.3.3.2 WeakMap.prototype.delete(key)
// 23.4.3.3 WeakSet.prototype.delete(value)
// `{ WeakMap, WeakSet }.prototype.delete(key)` methods
// https://tc39.es/ecma262/#sec-weakmap.prototype.delete
// https://tc39.es/ecma262/#sec-weakset.prototype.delete
'delete': function (key) {

@@ -88,4 +89,5 @@ var state = getInternalState(this);

},
// 23.3.3.4 WeakMap.prototype.has(key)
// 23.4.3.4 WeakSet.prototype.has(value)
// `{ WeakMap, WeakSet }.prototype.has(key)` methods
// https://tc39.es/ecma262/#sec-weakmap.prototype.has
// https://tc39.es/ecma262/#sec-weakset.prototype.has
has: function has(key) {

@@ -101,3 +103,4 @@ var state = getInternalState(this);

redefineAll(C.prototype, IS_MAP ? {
// 23.3.3.3 WeakMap.prototype.get(key)
// `WeakMap.prototype.get(key)` method
// https://tc39.es/ecma262/#sec-weakmap.prototype.get
get: function get(key) {

@@ -111,3 +114,4 @@ var state = getInternalState(this);

},
// 23.3.3.5 WeakMap.prototype.set(key, value)
// `WeakMap.prototype.set(key, value)` method
// https://tc39.es/ecma262/#sec-weakmap.prototype.set
set: function set(key, value) {

@@ -117,3 +121,4 @@ return define(this, key, value);

} : {
// 23.4.3.1 WeakSet.prototype.add(value)
// `WeakSet.prototype.add(value)` method
// https://tc39.es/ecma262/#sec-weakset.prototype.add
add: function add(value) {

@@ -120,0 +125,0 @@ return define(this, value, true);

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

// B.2.3.2.1 CreateHTML(string, tag, attribute, value)
// `CreateHTML` abstract operation
// https://tc39.es/ecma262/#sec-createhtml

@@ -8,0 +8,0 @@ module.exports = function (string, tag, attribute, value) {

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

// `Date.prototype[@@toPrimitive](hint)` method implementation
// https://tc39.es/ecma262/#sec-date.prototype-@@toprimitive
module.exports = function (hint) {

@@ -7,0 +9,0 @@ if (hint !== 'string' && hint !== 'number' && hint !== 'default') {

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

// fix Array#{values, @@iterator}.name in V8 / FF
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {

@@ -66,0 +66,0 @@ INCORRECT_VALUES_NAME = true;

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

// `GetSubstitution` abstract operation
// https://tc39.es/ecma262/#sec-getsubstitution

@@ -10,0 +11,0 @@ module.exports = function (matched, str, position, captures, namedCaptures, replacement) {

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

module.exports = function hasOwn(it, key) {
module.exports = Object.hasOwn || function hasOwn(it, key) {
return hasOwnProperty.call(toObject(it), key);
};

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

// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
if (typeof store.inspectSource != 'function') {

@@ -8,0 +8,0 @@ store.inspectSource = function (it) {

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

// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
// `%IteratorPrototype%[@@iterator]()` method
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
if ((!IS_PURE || NEW_ITERATOR_PROTOTYPE) && !has(IteratorPrototype, ITERATOR)) {

@@ -40,0 +41,0 @@ createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis);

@@ -7,6 +7,8 @@ /* eslint-disable es/no-symbol -- required for testing */

module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
return !String(Symbol()) ||
// Chrome 38 Symbol has incorrect toString conversion
var symbol = Symbol();
// Chrome 38 Symbol has incorrect toString conversion
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
!Symbol.sham && V8_VERSION && V8_VERSION < 41;
});

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

// 25.4.1.5 NewPromiseCapability(C)
// `NewPromiseCapability` abstract operation
// https://tc39.es/ecma262/#sec-newpromisecapability
module.exports.f = function (C) {
return new PromiseCapability(C);
};

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

var fails = require('../internals/fails');
var userAgent = require('../internals/engine-user-agent');
// Forced replacement object prototype accessors methods
module.exports = IS_PURE || !fails(function () {
// This feature detection crashes old WebKit
// https://github.com/zloirock/core-js/issues/232
var webkit = userAgent.match(/AppleWebKit\/(\d+)\./);
if (webkit && +webkit[1] < 535) return;
var key = Math.random();

@@ -10,0 +15,0 @@ // In FF throws only define methods

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

})('versions', []).push({
version: '3.13.0',
version: '3.13.1',
mode: IS_PURE ? 'pure' : 'global',
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
});
{
"name": "core-js-pure",
"description": "Standard library",
"version": "3.13.0",
"version": "3.13.1",
"repository": {

@@ -58,3 +58,3 @@ "type": "git",

},
"gitHead": "f4307bc98ea7e1ca10b1c6e27847f9faad4a76d3"
"gitHead": "a05c21cbf99ccb39b75746f3f65cbb91ef80d697"
}
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc