core-js-pure
Advanced tools
Comparing version 3.30.2 to 3.31.0
var parent = require('../../stable/function'); | ||
require('../../modules/esnext.function.metadata'); | ||
module.exports = parent; |
@@ -1,10 +0,3 @@ | ||
var isPrototypeOf = require('../../internals/object-is-prototype-of'); | ||
var method = require('../string/virtual/is-well-formed'); | ||
var parent = require('../../stable/instance/is-well-formed'); | ||
var StringPrototype = String.prototype; | ||
module.exports = function (it) { | ||
var own = it.isWellFormed; | ||
return typeof it == 'string' || it === StringPrototype | ||
|| (isPrototypeOf(StringPrototype, it) && own === StringPrototype.isWellFormed) ? method : own; | ||
}; | ||
module.exports = parent; |
@@ -1,10 +0,3 @@ | ||
var isPrototypeOf = require('../../internals/object-is-prototype-of'); | ||
var method = require('../string/virtual/to-well-formed'); | ||
var parent = require('../../stable/instance/to-well-formed'); | ||
var StringPrototype = String.prototype; | ||
module.exports = function (it) { | ||
var own = it.toWellFormed; | ||
return typeof it == 'string' || it === StringPrototype | ||
|| (isPrototypeOf(StringPrototype, it) && own === StringPrototype.toWellFormed) ? method : own; | ||
}; | ||
module.exports = parent; |
var parent = require('../../stable/string'); | ||
// TODO: Remove from `core-js@4` | ||
require('../../modules/esnext.string.is-well-formed'); | ||
@@ -4,0 +5,0 @@ require('../../modules/esnext.string.to-well-formed'); |
@@ -0,3 +1,6 @@ | ||
// TODO: Remove from `core-js@4` | ||
require('../../modules/esnext.string.is-well-formed'); | ||
module.exports = require('../../internals/entry-unbind')('String', 'isWellFormed'); | ||
var parent = require('../../stable/string/is-well-formed'); | ||
module.exports = parent; |
@@ -0,3 +1,6 @@ | ||
// TODO: Remove from `core-js@4` | ||
require('../../modules/esnext.string.to-well-formed'); | ||
module.exports = require('../../internals/entry-unbind')('String', 'toWellFormed'); | ||
var parent = require('../../stable/string/to-well-formed'); | ||
module.exports = parent; |
var parent = require('../../../stable/string/virtual'); | ||
// TODO: Remove from `core-js@4` | ||
require('../../../modules/esnext.string.is-well-formed'); | ||
@@ -4,0 +5,0 @@ require('../../../modules/esnext.string.to-well-formed'); |
@@ -0,3 +1,6 @@ | ||
// TODO: Remove from `core-js@4` | ||
require('../../../modules/esnext.string.is-well-formed'); | ||
module.exports = require('../../../internals/entry-virtual')('String').isWellFormed; | ||
var parent = require('../../../stable/string/virtual/is-well-formed'); | ||
module.exports = parent; |
@@ -0,3 +1,6 @@ | ||
// TODO: Remove from `core-js@4` | ||
require('../../../modules/esnext.string.to-well-formed'); | ||
module.exports = require('../../../internals/entry-virtual')('String').toWellFormed; | ||
var parent = require('../../../stable/string/virtual/to-well-formed'); | ||
module.exports = parent; |
var parent = require('../../stable/symbol'); | ||
require('../../modules/esnext.function.metadata'); | ||
require('../../modules/esnext.symbol.dispose'); | ||
require('../../modules/esnext.symbol.metadata'); | ||
module.exports = parent; |
@@ -169,2 +169,3 @@ require('../modules/es.symbol'); | ||
require('../modules/es.string.includes'); | ||
require('../modules/es.string.is-well-formed'); | ||
require('../modules/es.string.iterator'); | ||
@@ -183,2 +184,3 @@ require('../modules/es.string.match'); | ||
require('../modules/es.string.substr'); | ||
require('../modules/es.string.to-well-formed'); | ||
require('../modules/es.string.trim'); | ||
@@ -185,0 +187,0 @@ require('../modules/es.string.trim-end'); |
@@ -9,2 +9,3 @@ require('../../modules/es.object.to-string'); | ||
require('../../modules/es.string.includes'); | ||
require('../../modules/es.string.is-well-formed'); | ||
require('../../modules/es.string.match'); | ||
@@ -21,2 +22,3 @@ require('../../modules/es.string.match-all'); | ||
require('../../modules/es.string.substr'); | ||
require('../../modules/es.string.to-well-formed'); | ||
require('../../modules/es.string.trim'); | ||
@@ -23,0 +25,0 @@ require('../../modules/es.string.trim-start'); |
@@ -169,2 +169,3 @@ require('../modules/es.symbol'); | ||
require('../modules/es.string.includes'); | ||
require('../modules/es.string.is-well-formed'); | ||
require('../modules/es.string.iterator'); | ||
@@ -183,2 +184,3 @@ require('../modules/es.string.match'); | ||
require('../modules/es.string.substr'); | ||
require('../modules/es.string.to-well-formed'); | ||
require('../modules/es.string.trim'); | ||
@@ -290,2 +292,3 @@ require('../modules/es.string.trim-end'); | ||
require('../modules/esnext.function.is-constructor'); | ||
require('../modules/esnext.function.metadata'); | ||
require('../modules/esnext.function.un-this'); | ||
@@ -353,2 +356,3 @@ require('../modules/esnext.global-this'); | ||
require('../modules/esnext.object.iterate-values'); | ||
require('../modules/esnext.object.group-by'); | ||
require('../modules/esnext.observable'); | ||
@@ -358,2 +362,3 @@ require('../modules/esnext.promise.all-settled'); | ||
require('../modules/esnext.promise.try'); | ||
require('../modules/esnext.promise.with-resolvers'); | ||
require('../modules/esnext.reflect.define-metadata'); | ||
@@ -397,9 +402,9 @@ require('../modules/esnext.reflect.delete-metadata'); | ||
require('../modules/esnext.string.dedent'); | ||
require('../modules/esnext.string.is-well-formed'); | ||
require('../modules/esnext.string.match-all'); | ||
require('../modules/esnext.string.replace-all'); | ||
require('../modules/esnext.string.to-well-formed'); | ||
require('../modules/esnext.symbol.async-dispose'); | ||
require('../modules/esnext.symbol.dispose'); | ||
require('../modules/esnext.symbol.is-registered-symbol'); | ||
require('../modules/esnext.symbol.is-registered'); | ||
require('../modules/esnext.symbol.is-well-known-symbol'); | ||
require('../modules/esnext.symbol.is-well-known'); | ||
@@ -449,4 +454,8 @@ require('../modules/esnext.symbol.matcher'); | ||
require('../modules/web.url-search-params'); | ||
require('../modules/web.url-search-params.delete'); | ||
require('../modules/web.url-search-params.has'); | ||
require('../modules/web.url-search-params.size'); | ||
require('../modules/esnext.string.is-well-formed'); | ||
require('../modules/esnext.string.to-well-formed'); | ||
module.exports = require('../internals/path'); |
var parent = require('../../actual/object'); | ||
require('../../modules/esnext.object.group-by'); | ||
// TODO: Remove from `core-js@4` | ||
@@ -3,0 +4,0 @@ require('../../modules/esnext.object.has-own'); |
var parent = require('../../actual/promise'); | ||
require('../../modules/esnext.promise.with-resolvers'); | ||
// TODO: Remove from `core-js@4` | ||
require('../../modules/esnext.aggregate-error'); | ||
// TODO: Remove from `core-js@4` | ||
require('../../modules/esnext.promise.all-settled'); | ||
@@ -5,0 +6,0 @@ require('../../modules/esnext.promise.try'); |
var parent = require('../../actual/symbol'); | ||
require('../../modules/esnext.symbol.async-dispose'); | ||
require('../../modules/esnext.symbol.is-registered-symbol'); | ||
require('../../modules/esnext.symbol.is-well-known-symbol'); | ||
require('../../modules/esnext.symbol.matcher'); | ||
require('../../modules/esnext.symbol.observable'); | ||
// TODO: Remove from `core-js@4` | ||
require('../../modules/esnext.symbol.is-registered'); | ||
require('../../modules/esnext.symbol.is-well-known'); | ||
require('../../modules/esnext.symbol.matcher'); | ||
require('../../modules/esnext.symbol.metadata-key'); | ||
require('../../modules/esnext.symbol.observable'); | ||
// TODO: Remove from `core-js@4` | ||
require('../../modules/esnext.symbol.metadata'); | ||
require('../../modules/esnext.symbol.pattern-match'); | ||
@@ -11,0 +12,0 @@ require('../../modules/esnext.symbol.replace-all'); |
@@ -1,4 +0,3 @@ | ||
require('../../modules/esnext.symbol.metadata'); | ||
var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped'); | ||
var parent = require('../../actual/symbol/metadata'); | ||
module.exports = WrappedWellKnownSymbolModule.f('metadata'); | ||
module.exports = parent; |
@@ -24,3 +24,3 @@ var bind = require('../internals/function-bind-context'); | ||
key = toPropertyKey(boundFunction(value, index, O)); | ||
// in some IE10 builds, `hasOwnProperty` returns incorrect result on integer keys | ||
// in some IE versions, `hasOwnProperty` returns incorrect result on integer keys | ||
// but since it's a `null` prototype object, we can safely use `in` | ||
@@ -27,0 +27,0 @@ if (key in target) push(target[key], value); |
@@ -1,8 +0,9 @@ | ||
var aCallable = require('../internals/a-callable'); | ||
// `GetIteratorDirect(obj)` abstract operation | ||
// https://tc39.es/proposal-iterator-helpers/#sec-getiteratordirect | ||
module.exports = function (obj) { | ||
return { | ||
iterator: obj, | ||
next: aCallable(obj.next) | ||
next: obj.next, | ||
done: false | ||
}; | ||
}; |
var DESCRIPTORS = require('../internals/descriptors'); | ||
var fails = require('../internals/fails'); | ||
var uncurryThis = require('../internals/function-uncurry-this'); | ||
var objectGetPrototypeOf = require('../internals/object-get-prototype-of'); | ||
var objectKeys = require('../internals/object-keys'); | ||
@@ -10,2 +12,11 @@ var toIndexedObject = require('../internals/to-indexed-object'); | ||
// in some IE versions, `propertyIsEnumerable` returns incorrect result on integer keys | ||
// of `null` prototype objects | ||
var IE_BUG = DESCRIPTORS && fails(function () { | ||
// eslint-disable-next-line es/no-object-create -- safe | ||
var O = Object.create(null); | ||
O[2] = 2; | ||
return !propertyIsEnumerable(O, 2); | ||
}); | ||
// `Object.{ entries, values }` methods implementation | ||
@@ -16,2 +27,3 @@ var createMethod = function (TO_ENTRIES) { | ||
var keys = objectKeys(O); | ||
var IE_WORKAROUND = IE_BUG && objectGetPrototypeOf(O) === null; | ||
var length = keys.length; | ||
@@ -23,3 +35,3 @@ var i = 0; | ||
key = keys[i++]; | ||
if (!DESCRIPTORS || propertyIsEnumerable(O, key)) { | ||
if (!DESCRIPTORS || (IE_WORKAROUND ? key in O : propertyIsEnumerable(O, key))) { | ||
push(result, TO_ENTRIES ? [key, O[key]] : O[key]); | ||
@@ -26,0 +38,0 @@ } |
@@ -7,7 +7,7 @@ var IS_PURE = require('../internals/is-pure'); | ||
})('versions', []).push({ | ||
version: '3.30.2', | ||
version: '3.31.0', | ||
mode: IS_PURE ? 'pure' : 'global', | ||
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)', | ||
license: 'https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE', | ||
license: 'https://github.com/zloirock/core-js/blob/v3.31.0/LICENSE', | ||
source: 'https://github.com/zloirock/core-js' | ||
}); |
@@ -12,2 +12,3 @@ var fails = require('../internals/fails'); | ||
var searchParams = url.searchParams; | ||
var searchParams2 = new URLSearchParams('a=1&a=2'); | ||
var result = ''; | ||
@@ -19,3 +20,4 @@ url.pathname = 'c%20d'; | ||
}); | ||
return (IS_PURE && !url.toJSON) | ||
searchParams2['delete']('a', 2); | ||
return (IS_PURE && (!url.toJSON || !searchParams2.has('a', 1) || searchParams2.has('a', 2))) | ||
|| (!searchParams.size && (IS_PURE || !DESCRIPTORS)) | ||
@@ -22,0 +24,0 @@ || !searchParams.sort |
@@ -98,3 +98,3 @@ 'use strict'; | ||
addDisposableResource(internalState, undefined, HINT, function () { | ||
onDispose(value); | ||
return onDispose(value); | ||
}); | ||
@@ -101,0 +101,0 @@ return value; |
'use strict'; | ||
var $ = require('../internals/export'); | ||
var call = require('../internals/function-call'); | ||
var uncurryThis = require('../internals/function-uncurry-this'); | ||
var isCallable = require('../internals/is-callable'); | ||
var aCallable = require('../internals/a-callable'); | ||
var requireObjectCoercible = require('../internals/require-object-coercible'); | ||
var iterate = require('../internals/iterate'); | ||
var Map = require('../internals/map-helpers').Map; | ||
var MapHelpers = require('../internals/map-helpers'); | ||
var Map = MapHelpers.Map; | ||
var has = MapHelpers.has; | ||
var get = MapHelpers.get; | ||
var set = MapHelpers.set; | ||
var push = uncurryThis([].push); | ||
// `Map.groupBy` method | ||
// https://github.com/tc39/proposal-collection-methods | ||
// https://github.com/tc39/proposal-array-grouping | ||
$({ target: 'Map', stat: true, forced: true }, { | ||
groupBy: function groupBy(iterable, keyDerivative) { | ||
var C = isCallable(this) ? this : Map; | ||
var newMap = new C(); | ||
aCallable(keyDerivative); | ||
var has = aCallable(newMap.has); | ||
var get = aCallable(newMap.get); | ||
var set = aCallable(newMap.set); | ||
iterate(iterable, function (element) { | ||
var derivedKey = keyDerivative(element); | ||
if (!call(has, newMap, derivedKey)) call(set, newMap, derivedKey, [element]); | ||
else push(call(get, newMap, derivedKey), element); | ||
groupBy: function groupBy(items, callbackfn) { | ||
requireObjectCoercible(items); | ||
aCallable(callbackfn); | ||
var map = new Map(); | ||
var k = 0; | ||
iterate(items, function (value) { | ||
var key = callbackfn(value, k++); | ||
if (!has(map, key)) set(map, key, [value]); | ||
else push(get(map, key), value); | ||
}); | ||
return newMap; | ||
return map; | ||
} | ||
}); |
@@ -1,23 +0,2 @@ | ||
'use strict'; | ||
var $ = require('../internals/export'); | ||
var uncurryThis = require('../internals/function-uncurry-this'); | ||
var requireObjectCoercible = require('../internals/require-object-coercible'); | ||
var toString = require('../internals/to-string'); | ||
var charCodeAt = uncurryThis(''.charCodeAt); | ||
// `String.prototype.isWellFormed` method | ||
// https://github.com/tc39/proposal-is-usv-string | ||
$({ target: 'String', proto: true }, { | ||
isWellFormed: function isWellFormed() { | ||
var S = toString(requireObjectCoercible(this)); | ||
var length = S.length; | ||
for (var i = 0; i < length; i++) { | ||
var charCode = charCodeAt(S, i); | ||
// single UTF-16 code unit | ||
if ((charCode & 0xF800) != 0xD800) continue; | ||
// unpaired surrogate | ||
if (charCode >= 0xDC00 || ++i >= length || (charCodeAt(S, i) & 0xFC00) != 0xDC00) return false; | ||
} return true; | ||
} | ||
}); | ||
// TODO: Remove from `core-js@4` | ||
require('../modules/es.string.is-well-formed'); |
@@ -1,42 +0,2 @@ | ||
'use strict'; | ||
var $ = require('../internals/export'); | ||
var call = require('../internals/function-call'); | ||
var uncurryThis = require('../internals/function-uncurry-this'); | ||
var requireObjectCoercible = require('../internals/require-object-coercible'); | ||
var toString = require('../internals/to-string'); | ||
var fails = require('../internals/fails'); | ||
var $Array = Array; | ||
var charAt = uncurryThis(''.charAt); | ||
var charCodeAt = uncurryThis(''.charCodeAt); | ||
var join = uncurryThis([].join); | ||
var $toWellFormed = ''.toWellFormed; | ||
var REPLACEMENT_CHARACTER = '\uFFFD'; | ||
// Safari bug | ||
var TO_STRING_CONVERSION_BUG = $toWellFormed && fails(function () { | ||
return call($toWellFormed, 1) !== '1'; | ||
}); | ||
// `String.prototype.toWellFormed` method | ||
// https://github.com/tc39/proposal-is-usv-string | ||
$({ target: 'String', proto: true, forced: TO_STRING_CONVERSION_BUG }, { | ||
toWellFormed: function toWellFormed() { | ||
var S = toString(requireObjectCoercible(this)); | ||
if (TO_STRING_CONVERSION_BUG) return call($toWellFormed, S); | ||
var length = S.length; | ||
var result = $Array(length); | ||
for (var i = 0; i < length; i++) { | ||
var charCode = charCodeAt(S, i); | ||
// single UTF-16 code unit | ||
if ((charCode & 0xF800) != 0xD800) result[i] = charAt(S, i); | ||
// unpaired surrogate | ||
else if (charCode >= 0xDC00 || i + 1 >= length || (charCodeAt(S, i + 1) & 0xFC00) != 0xDC00) result[i] = REPLACEMENT_CHARACTER; | ||
// surrogate pair | ||
else { | ||
result[i] = charAt(S, i); | ||
result[++i] = charAt(S, i); | ||
} | ||
} return join(result, ''); | ||
} | ||
}); | ||
// TODO: Remove from `core-js@4` | ||
require('../modules/es.string.to-well-formed'); |
var $ = require('../internals/export'); | ||
var getBuiltIn = require('../internals/get-built-in'); | ||
var uncurryThis = require('../internals/function-uncurry-this'); | ||
var isRegisteredSymbol = require('../internals/symbol-is-registered'); | ||
var Symbol = getBuiltIn('Symbol'); | ||
var keyFor = Symbol.keyFor; | ||
var thisSymbolValue = uncurryThis(Symbol.prototype.valueOf); | ||
// `Symbol.isRegistered` method | ||
// https://tc39.es/proposal-symbol-predicates/#sec-symbol-isregistered | ||
$({ target: 'Symbol', stat: true }, { | ||
isRegistered: function isRegistered(value) { | ||
try { | ||
return keyFor(thisSymbolValue(value)) !== undefined; | ||
} catch (error) { | ||
return false; | ||
} | ||
} | ||
// obsolete version of https://tc39.es/proposal-symbol-predicates/#sec-symbol-isregisteredsymbol | ||
$({ target: 'Symbol', stat: true, name: 'isRegisteredSymbol' }, { | ||
isRegistered: isRegisteredSymbol | ||
}); |
var $ = require('../internals/export'); | ||
var shared = require('../internals/shared'); | ||
var getBuiltIn = require('../internals/get-built-in'); | ||
var uncurryThis = require('../internals/function-uncurry-this'); | ||
var isSymbol = require('../internals/is-symbol'); | ||
var wellKnownSymbol = require('../internals/well-known-symbol'); | ||
var isWellKnownSymbol = require('../internals/symbol-is-well-known'); | ||
var Symbol = getBuiltIn('Symbol'); | ||
var $isWellKnown = Symbol.isWellKnown; | ||
var getOwnPropertyNames = getBuiltIn('Object', 'getOwnPropertyNames'); | ||
var thisSymbolValue = uncurryThis(Symbol.prototype.valueOf); | ||
var WellKnownSymbolsStore = shared('wks'); | ||
for (var i = 0, symbolKeys = getOwnPropertyNames(Symbol), symbolKeysLength = symbolKeys.length; i < symbolKeysLength; i++) { | ||
// some old engines throws on access to some keys like `arguments` or `caller` | ||
try { | ||
var symbolKey = symbolKeys[i]; | ||
if (isSymbol(Symbol[symbolKey])) wellKnownSymbol(symbolKey); | ||
} catch (error) { /* empty */ } | ||
} | ||
// `Symbol.isWellKnown` method | ||
// https://tc39.es/proposal-symbol-predicates/#sec-symbol-iswellknown | ||
// obsolete version of https://tc39.es/proposal-symbol-predicates/#sec-symbol-iswellknownsymbol | ||
// We should patch it for newly added well-known symbols. If it's not required, this module just will not be injected | ||
$({ target: 'Symbol', stat: true, forced: true }, { | ||
isWellKnown: function isWellKnown(value) { | ||
if ($isWellKnown && $isWellKnown(value)) return true; | ||
try { | ||
var symbol = thisSymbolValue(value); | ||
for (var j = 0, keys = getOwnPropertyNames(WellKnownSymbolsStore), keysLength = keys.length; j < keysLength; j++) { | ||
if (WellKnownSymbolsStore[keys[j]] == symbol) return true; | ||
} | ||
} catch (error) { /* empty */ } | ||
return false; | ||
} | ||
$({ target: 'Symbol', stat: true, name: 'isWellKnownSymbol', forced: true }, { | ||
isWellKnown: isWellKnownSymbol | ||
}); |
@@ -208,3 +208,3 @@ 'use strict'; | ||
var state = setInternalState(this, new URLSearchParamsState(init)); | ||
if (!DESCRIPTORS) this.length = state.entries.length; | ||
if (!DESCRIPTORS) this.size = state.entries.length; | ||
}; | ||
@@ -218,4 +218,4 @@ | ||
append: function append(name, value) { | ||
var state = getInternalParamsState(this); | ||
validateArgumentsLength(arguments.length, 2); | ||
var state = getInternalParamsState(this); | ||
push(state.entries, { key: $toString(name), value: $toString(value) }); | ||
@@ -227,13 +227,18 @@ if (!DESCRIPTORS) this.length++; | ||
// https://url.spec.whatwg.org/#dom-urlsearchparams-delete | ||
'delete': function (name) { | ||
validateArgumentsLength(arguments.length, 1); | ||
'delete': function (name /* , value */) { | ||
var state = getInternalParamsState(this); | ||
var length = validateArgumentsLength(arguments.length, 1); | ||
var entries = state.entries; | ||
var key = $toString(name); | ||
var $value = length < 2 ? undefined : arguments[1]; | ||
var value = $value === undefined ? $value : $toString($value); | ||
var index = 0; | ||
while (index < entries.length) { | ||
if (entries[index].key === key) splice(entries, index, 1); | ||
else index++; | ||
var entry = entries[index]; | ||
if (entry.key === key && (value === undefined || entry.value === value)) { | ||
splice(entries, index, 1); | ||
if (value !== undefined) break; | ||
} else index++; | ||
} | ||
if (!DESCRIPTORS) this.length = entries.length; | ||
if (!DESCRIPTORS) this.size = entries.length; | ||
state.updateURL(); | ||
@@ -244,4 +249,4 @@ }, | ||
get: function get(name) { | ||
var entries = getInternalParamsState(this).entries; | ||
validateArgumentsLength(arguments.length, 1); | ||
var entries = getInternalParamsState(this).entries; | ||
var key = $toString(name); | ||
@@ -257,4 +262,4 @@ var index = 0; | ||
getAll: function getAll(name) { | ||
var entries = getInternalParamsState(this).entries; | ||
validateArgumentsLength(arguments.length, 1); | ||
var entries = getInternalParamsState(this).entries; | ||
var key = $toString(name); | ||
@@ -270,9 +275,12 @@ var result = []; | ||
// https://url.spec.whatwg.org/#dom-urlsearchparams-has | ||
has: function has(name) { | ||
validateArgumentsLength(arguments.length, 1); | ||
has: function has(name /* , value */) { | ||
var entries = getInternalParamsState(this).entries; | ||
var length = validateArgumentsLength(arguments.length, 1); | ||
var key = $toString(name); | ||
var $value = length < 2 ? undefined : arguments[1]; | ||
var value = $value === undefined ? $value : $toString($value); | ||
var index = 0; | ||
while (index < entries.length) { | ||
if (entries[index++].key === key) return true; | ||
var entry = entries[index++]; | ||
if (entry.key === key && (value === undefined || entry.value === value)) return true; | ||
} | ||
@@ -284,4 +292,4 @@ return false; | ||
set: function set(name, value) { | ||
var state = getInternalParamsState(this); | ||
validateArgumentsLength(arguments.length, 1); | ||
var state = getInternalParamsState(this); | ||
var entries = state.entries; | ||
@@ -304,3 +312,3 @@ var found = false; | ||
if (!found) push(entries, { key: key, value: val }); | ||
if (!DESCRIPTORS) this.length = entries.length; | ||
if (!DESCRIPTORS) this.size = entries.length; | ||
state.updateURL(); | ||
@@ -307,0 +315,0 @@ }, |
{ | ||
"name": "core-js-pure", | ||
"version": "3.30.2", | ||
"version": "3.31.0", | ||
"description": "Standard library", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -23,3 +23,3 @@ var fs = require('fs'); | ||
var BANNER = '\u001B[96mThank you for using core-js (\u001B[94m https://github.com/zloirock/core-js \u001B[96m) for polyfilling JavaScript standard library!\u001B[0m\n\n' + | ||
'\u001B[96mThe project needs your help! Please consider supporting of core-js:\u001B[0m\n' + | ||
'\u001B[96mThe project needs your help! Please consider supporting core-js:\u001B[0m\n' + | ||
'\u001B[96m>\u001B[94m https://opencollective.com/core-js \u001B[0m\n' + | ||
@@ -26,0 +26,0 @@ '\u001B[96m>\u001B[94m https://patreon.com/zloirock \u001B[0m\n' + |
// https://github.com/tc39/proposal-decorator-metadata | ||
require('../modules/esnext.function.metadata'); | ||
require('../modules/esnext.symbol.metadata'); |
// https://github.com/jasnell/proposal-url | ||
require('../modules/web.url'); | ||
require('../modules/web.url.can-parse'); | ||
require('../modules/web.url.to-json'); | ||
require('../modules/web.url-search-params'); | ||
require('../modules/web.url-search-params.size'); | ||
require('../web/url'); |
@@ -169,2 +169,3 @@ require('../modules/es.symbol'); | ||
require('../modules/es.string.includes'); | ||
require('../modules/es.string.is-well-formed'); | ||
require('../modules/es.string.iterator'); | ||
@@ -183,2 +184,3 @@ require('../modules/es.string.match'); | ||
require('../modules/es.string.substr'); | ||
require('../modules/es.string.to-well-formed'); | ||
require('../modules/es.string.trim'); | ||
@@ -259,4 +261,6 @@ require('../modules/es.string.trim-end'); | ||
require('../modules/web.url-search-params'); | ||
require('../modules/web.url-search-params.delete'); | ||
require('../modules/web.url-search-params.has'); | ||
require('../modules/web.url-search-params.size'); | ||
module.exports = require('../internals/path'); |
var parent = require('./3'); | ||
require('../proposals/array-grouping-v2'); | ||
require('../proposals/array-is-template-object'); | ||
require('../proposals/async-explicit-resource-management'); | ||
require('../proposals/async-iterator-helpers'); | ||
require('../proposals/decorator-metadata-v2'); | ||
require('../proposals/iterator-range'); | ||
require('../proposals/map-upsert-stage-2'); | ||
require('../proposals/promise-with-resolvers'); | ||
require('../proposals/string-dedent'); | ||
require('../proposals/symbol-predicates'); | ||
require('../proposals/symbol-predicates-v2'); | ||
// TODO: Obsolete versions, remove from `core-js@4` | ||
@@ -17,4 +18,5 @@ require('../proposals/array-grouping'); | ||
require('../proposals/set-methods'); | ||
require('../proposals/symbol-predicates'); | ||
require('../proposals/using-statement'); | ||
module.exports = parent; |
var parent = require('./4'); | ||
require('../proposals/array-from-async-stage-2'); | ||
require('../proposals/array-grouping-stage-3-2'); | ||
require('../proposals/array-buffer-transfer'); | ||
require('../proposals/decorator-metadata-v2'); | ||
require('../proposals/explicit-resource-management'); | ||
@@ -10,5 +10,5 @@ require('../proposals/iterator-helpers-stage-3-2'); | ||
require('../proposals/set-methods-v2'); | ||
require('../proposals/well-formed-unicode-strings'); | ||
// TODO: Obsolete versions, remove from `core-js@4` | ||
require('../proposals/array-grouping-stage-3'); | ||
require('../proposals/array-grouping-stage-3-2'); | ||
require('../proposals/change-array-by-copy'); | ||
@@ -15,0 +15,0 @@ require('../proposals/iterator-helpers-stage-3'); |
@@ -12,2 +12,3 @@ // TODO: Remove this entry from `core-js@4` | ||
require('../proposals/string-replace-all-stage-4'); | ||
require('../proposals/well-formed-unicode-strings'); | ||
@@ -14,0 +15,0 @@ var path = require('../internals/path'); |
@@ -17,2 +17,4 @@ require('../modules/web.atob'); | ||
require('../modules/web.url-search-params'); | ||
require('../modules/web.url-search-params.delete'); | ||
require('../modules/web.url-search-params.has'); | ||
require('../modules/web.url-search-params.size'); | ||
@@ -19,0 +21,0 @@ var path = require('../internals/path'); |
require('../modules/web.url-search-params'); | ||
require('../modules/web.url-search-params.delete'); | ||
require('../modules/web.url-search-params.has'); | ||
require('../modules/web.url-search-params.size'); | ||
@@ -3,0 +5,0 @@ var path = require('../internals/path'); |
@@ -0,8 +1,7 @@ | ||
require('./url-search-params'); | ||
require('../modules/web.url'); | ||
require('../modules/web.url.can-parse'); | ||
require('../modules/web.url.to-json'); | ||
require('../modules/web.url-search-params'); | ||
require('../modules/web.url-search-params.size'); | ||
var path = require('../internals/path'); | ||
module.exports = path.URL; |
1005353
3376
23518