Socket
Socket
Sign inDemoInstall

core-js-pure

Package Overview
Dependencies
0
Maintainers
1
Versions
151
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.22.3 to 3.22.4

internals/define-built-in-accessor.js

4

internals/async-from-sync-iterator.js

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

var getMethod = require('../internals/get-method');
var redefineAll = require('../internals/redefine-all');
var defineBuiltIns = require('../internals/define-built-ins');
var InternalStateModule = require('../internals/internal-state');

@@ -33,3 +33,3 @@ var getBuiltIn = require('../internals/get-built-in');

AsyncFromSyncIterator.prototype = redefineAll(create(AsyncIteratorPrototype), {
AsyncFromSyncIterator.prototype = defineBuiltIns(create(AsyncIteratorPrototype), {
next: function next(arg) {

@@ -36,0 +36,0 @@ var state = getInternalState(this);

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

var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
var redefineAll = require('../internals/redefine-all');
var defineBuiltIns = require('../internals/define-built-ins');
var wellKnownSymbol = require('../internals/well-known-symbol');

@@ -32,3 +32,3 @@ var InternalStateModule = require('../internals/internal-state');

AsyncIteratorProxy.prototype = redefineAll(create(AsyncIteratorPrototype), {
AsyncIteratorProxy.prototype = defineBuiltIns(create(AsyncIteratorPrototype), {
next: function next(arg) {

@@ -35,0 +35,0 @@ var that = this;

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

var getPrototypeOf = require('../internals/object-get-prototype-of');
var redefine = require('../internals/redefine');
var defineBuiltIn = require('../internals/define-built-in');
var wellKnownSymbol = require('../internals/well-known-symbol');

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

if (!isCallable(AsyncIteratorPrototype[ASYNC_ITERATOR])) {
redefine(AsyncIteratorPrototype, ASYNC_ITERATOR, function () {
defineBuiltIn(AsyncIteratorPrototype, ASYNC_ITERATOR, function () {
return this;

@@ -36,0 +36,0 @@ });

'use strict';
var defineProperty = require('../internals/object-define-property').f;
var create = require('../internals/object-create');
var redefineAll = require('../internals/redefine-all');
var defineBuiltIns = require('../internals/define-built-ins');
var bind = require('../internals/function-bind-context');

@@ -74,3 +74,3 @@ var anInstance = require('../internals/an-instance');

redefineAll(Prototype, {
defineBuiltIns(Prototype, {
// `{ Map, Set }.prototype.clear()` methods

@@ -135,3 +135,3 @@ // https://tc39.es/ecma262/#sec-map.prototype.clear

redefineAll(Prototype, IS_MAP ? {
defineBuiltIns(Prototype, IS_MAP ? {
// `Map.prototype.get(key)` method

@@ -138,0 +138,0 @@ // https://tc39.es/ecma262/#sec-map.prototype.get

'use strict';
var uncurryThis = require('../internals/function-uncurry-this');
var redefineAll = require('../internals/redefine-all');
var defineBuiltIns = require('../internals/define-built-ins');
var getWeakData = require('../internals/internal-metadata').getWeakData;

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

redefineAll(Prototype, {
defineBuiltIns(Prototype, {
// `{ WeakMap, WeakSet }.prototype.delete(key)` methods

@@ -105,3 +105,3 @@ // https://tc39.es/ecma262/#sec-weakmap.prototype.delete

redefineAll(Prototype, IS_MAP ? {
defineBuiltIns(Prototype, IS_MAP ? {
// `WeakMap.prototype.get(key)` method

@@ -108,0 +108,0 @@ // https://tc39.es/ecma262/#sec-weakmap.prototype.get

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

var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
var redefine = require('../internals/redefine');
var defineBuiltIn = require('../internals/define-built-in');
var wellKnownSymbol = require('../internals/well-known-symbol');

@@ -60,3 +60,3 @@ var Iterators = require('../internals/iterators');

} else if (!isCallable(CurrentIteratorPrototype[ITERATOR])) {
redefine(CurrentIteratorPrototype, ITERATOR, returnThis);
defineBuiltIn(CurrentIteratorPrototype, ITERATOR, returnThis);
}

@@ -89,3 +89,3 @@ }

if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
redefine(IterablePrototype, KEY, methods[KEY]);
defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
}

@@ -97,3 +97,3 @@ } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);

if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {
redefine(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT });
defineBuiltIn(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT });
}

@@ -100,0 +100,0 @@ Iterators[NAME] = defaultIterator;

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

var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
var redefineAll = require('../internals/redefine-all');
var defineBuiltIns = require('../internals/define-built-ins');
var wellKnownSymbol = require('../internals/well-known-symbol');

@@ -29,3 +29,3 @@ var InternalStateModule = require('../internals/internal-state');

IteratorProxy.prototype = redefineAll(create(IteratorPrototype), {
IteratorProxy.prototype = defineBuiltIns(create(IteratorPrototype), {
next: function next(arg) {

@@ -32,0 +32,0 @@ var state = getInternalState(this);

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

var getPrototypeOf = require('../internals/object-get-prototype-of');
var redefine = require('../internals/redefine');
var defineBuiltIn = require('../internals/define-built-in');
var wellKnownSymbol = require('../internals/well-known-symbol');

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

if (!isCallable(IteratorPrototype[ITERATOR])) {
redefine(IteratorPrototype, ITERATOR, function () {
defineBuiltIn(IteratorPrototype, ITERATOR, function () {
return this;

@@ -44,0 +44,0 @@ });

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

})('versions', []).push({
version: '3.22.3',
version: '3.22.4',
mode: IS_PURE ? 'pure' : 'global',
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
license: 'https://github.com/zloirock/core-js/blob/v3.22.3/LICENSE',
license: 'https://github.com/zloirock/core-js/blob/v3.22.4/LICENSE',
source: 'https://github.com/zloirock/core-js'
});
var call = require('../internals/function-call');
var getBuiltIn = require('../internals/get-built-in');
var wellKnownSymbol = require('../internals/well-known-symbol');
var redefine = require('../internals/redefine');
var defineBuiltIn = require('../internals/define-built-in');

@@ -16,6 +16,6 @@ module.exports = function () {

// eslint-disable-next-line no-unused-vars -- required for .length
redefine(SymbolPrototype, TO_PRIMITIVE, function (hint) {
defineBuiltIn(SymbolPrototype, TO_PRIMITIVE, function (hint) {
return call(valueOf, this);
});
}, { arity: 1 });
}
};

@@ -16,3 +16,3 @@ var $ = require('../internals/export');

// https://github.com/tc39/proposal-error-cause
$({ global: true, forced: FORCED }, {
$({ global: true, arity: 2, forced: FORCED }, {
AggregateError: wrapErrorConstructorWithCause(AGGREGATE_ERROR, function (init) {

@@ -19,0 +19,0 @@ // eslint-disable-next-line no-unused-vars -- required for functions `.length`

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

// with adding support of @@isConcatSpreadable and @@species
$({ target: 'Array', proto: true, forced: FORCED }, {
$({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
// eslint-disable-next-line no-unused-vars -- required for `.length`

@@ -45,0 +45,0 @@ concat: function concat(arg) {

@@ -15,3 +15,3 @@ /* eslint-disable no-unused-vars -- required for functions `.length` */

O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED);
$({ global: true, forced: FORCED }, O);
$({ global: true, arity: 1, forced: FORCED }, O);
};

@@ -23,3 +23,3 @@

O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED);
$({ target: WEB_ASSEMBLY, stat: true, forced: FORCED }, O);
$({ target: WEB_ASSEMBLY, stat: true, arity: 1, forced: FORCED }, O);
}

@@ -26,0 +26,0 @@ };

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

var wellKnownSymbol = require('../internals/well-known-symbol');
var makeBuiltIn = require('../internals/make-built-in');

@@ -15,3 +16,3 @@ var HAS_INSTANCE = wellKnownSymbol('hasInstance');

if (!(HAS_INSTANCE in FunctionPrototype)) {
definePropertyModule.f(FunctionPrototype, HAS_INSTANCE, { value: function (O) {
definePropertyModule.f(FunctionPrototype, HAS_INSTANCE, { value: makeBuiltIn(function (O) {
if (!isCallable(this) || !isObject(O)) return false;

@@ -23,3 +24,3 @@ var P = this.prototype;

return false;
} });
}, HAS_INSTANCE) });
}

@@ -64,3 +64,3 @@ var $ = require('../internals/export');

// https://tc39.es/ecma262/#sec-json.stringify
$({ target: 'JSON', stat: true, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
$({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
// eslint-disable-next-line no-unused-vars -- required for `.length`

@@ -67,0 +67,0 @@ stringify: function stringify(it, replacer, space) {

@@ -14,3 +14,3 @@ var $ = require('../internals/export');

// https://tc39.es/ecma262/#sec-math.hypot
$({ target: 'Math', stat: true, forced: BUGGY }, {
$({ target: 'Math', stat: true, arity: 2, forced: BUGGY }, {
// eslint-disable-next-line no-unused-vars -- required for `.length`

@@ -17,0 +17,0 @@ hypot: function hypot(value1, value2) {

@@ -7,4 +7,4 @@ var $ = require('../internals/export');

// eslint-disable-next-line es-x/no-object-assign -- required for testing
$({ target: 'Object', stat: true, forced: Object.assign !== assign }, {
$({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
assign: assign
});

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

var isCallable = require('../internals/is-callable');
var redefine = require('../internals/redefine');
var defineBuiltIn = require('../internals/define-built-in');

@@ -25,4 +25,4 @@ var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;

if (NativePromisePrototype['catch'] !== method) {
redefine(NativePromisePrototype, 'catch', method, { unsafe: true });
defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });
}
}

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

var call = require('../internals/function-call');
var redefine = require('../internals/redefine');
var redefineAll = require('../internals/redefine-all');
var defineBuiltIn = require('../internals/define-built-in');
var setPrototypeOf = require('../internals/object-set-prototype-of');

@@ -229,19 +228,16 @@ var setToStringTag = require('../internals/set-to-string-tag');

Internal.prototype = redefineAll(PromisePrototype, {
// `Promise.prototype.then` method
// https://tc39.es/ecma262/#sec-promise.prototype.then
// eslint-disable-next-line unicorn/no-thenable -- safe
then: function then(onFulfilled, onRejected) {
var state = getInternalPromiseState(this);
var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
state.parent = true;
reaction.ok = isCallable(onFulfilled) ? onFulfilled : true;
reaction.fail = isCallable(onRejected) && onRejected;
reaction.domain = IS_NODE ? process.domain : undefined;
if (state.state == PENDING) state.reactions.add(reaction);
else microtask(function () {
callReaction(reaction, state);
});
return reaction.promise;
}
// `Promise.prototype.then` method
// https://tc39.es/ecma262/#sec-promise.prototype.then
Internal.prototype = defineBuiltIn(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
var state = getInternalPromiseState(this);
var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
state.parent = true;
reaction.ok = isCallable(onFulfilled) ? onFulfilled : true;
reaction.fail = isCallable(onRejected) && onRejected;
reaction.domain = IS_NODE ? process.domain : undefined;
if (state.state == PENDING) state.reactions.add(reaction);
else microtask(function () {
callReaction(reaction, state);
});
return reaction.promise;
});

@@ -268,3 +264,3 @@

// make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
redefine(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {
defineBuiltIn(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {
var that = this;

@@ -271,0 +267,0 @@ return new PromiseConstructor(function (resolve, reject) {

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

var promiseResolve = require('../internals/promise-resolve');
var redefine = require('../internals/redefine');
var defineBuiltIn = require('../internals/define-built-in');

@@ -42,4 +42,4 @@ var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;

if (NativePromisePrototype['finally'] !== method) {
redefine(NativePromisePrototype, 'finally', method, { unsafe: true });
defineBuiltIn(NativePromisePrototype, 'finally', method, { unsafe: true });
}
}

@@ -17,3 +17,3 @@ var $ = require('../internals/export');

// https://tc39.es/ecma262/#sec-string.fromcodepoint
$({ target: 'String', stat: true, forced: INCORRECT_LENGTH }, {
$({ target: 'String', stat: true, arity: 1, forced: INCORRECT_LENGTH }, {
// eslint-disable-next-line no-unused-vars -- required for `.length`

@@ -20,0 +20,0 @@ fromCodePoint: function fromCodePoint(x) {

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

var getMethod = require('../internals/get-method');
var redefine = require('../internals/redefine');
var defineBuiltIn = require('../internals/define-built-in');
var fails = require('../internals/fails');

@@ -99,2 +99,2 @@ var wellKnownSymbol = require('../internals/well-known-symbol');

IS_PURE || MATCH_ALL in RegExpPrototype || redefine(RegExpPrototype, MATCH_ALL, $matchAll);
IS_PURE || MATCH_ALL in RegExpPrototype || defineBuiltIn(RegExpPrototype, MATCH_ALL, $matchAll);

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

var propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');
var redefine = require('../internals/redefine');
var defineBuiltIn = require('../internals/define-built-in');
var shared = require('../internals/shared');

@@ -178,7 +178,7 @@ var sharedKey = require('../internals/shared-key');

redefine(SymbolPrototype, 'toString', function toString() {
defineBuiltIn(SymbolPrototype, 'toString', function toString() {
return getInternalState(this).tag;
});
redefine($Symbol, 'withoutSetter', function (description) {
defineBuiltIn($Symbol, 'withoutSetter', function (description) {
return wrap(uid(description), description);

@@ -207,3 +207,3 @@ });

if (!IS_PURE) {
redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
defineBuiltIn(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
}

@@ -210,0 +210,0 @@ }

'use strict';
var global = require('../internals/global');
var uncurryThis = require('../internals/function-uncurry-this');
var redefineAll = require('../internals/redefine-all');
var defineBuiltIns = require('../internals/define-built-ins');
var InternalMetadataModule = require('../internals/internal-metadata');

@@ -37,3 +37,3 @@ var collection = require('../internals/collection');

var nativeSet = uncurryThis(WeakMapPrototype.set);
redefineAll(WeakMapPrototype, {
defineBuiltIns(WeakMapPrototype, {
'delete': function (key) {

@@ -40,0 +40,0 @@ if (isObject(key) && !isExtensible(key)) {

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

// https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.toSpliced
$({ target: 'Array', proto: true }, {
$({ target: 'Array', proto: true, arity: 2 }, {
// eslint-disable-next-line no-unused-vars -- required for .length

@@ -16,0 +16,0 @@ toSpliced: function toSpliced(start, deleteCount /* , ...items */) {

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

// https://github.com/tc39/proposal-collection-methods
$({ target: 'Map', proto: true, real: true, forced: true }, {
$({ target: 'Map', proto: true, real: true, arity: 1, forced: true }, {
// eslint-disable-next-line no-unused-vars -- required for `.length`

@@ -12,0 +12,0 @@ merge: function merge(iterable /* ...iterables */) {

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

var getMethod = require('../internals/get-method');
var defineProperty = require('../internals/object-define-property').f;
var redefine = require('../internals/redefine');
var redefineAll = require('../internals/redefine-all');
var defineBuiltIn = require('../internals/define-built-in');
var defineBuiltIns = require('../internals/define-built-ins');
var defineBuiltInAccessor = require('../internals/define-built-in-accessor');
var hostReportErrors = require('../internals/host-report-errors');

@@ -87,3 +87,3 @@ var wellKnownSymbol = require('../internals/well-known-symbol');

Subscription.prototype = redefineAll({}, {
Subscription.prototype = defineBuiltIns({}, {
unsubscribe: function unsubscribe() {

@@ -98,5 +98,5 @@ var subscriptionState = getSubscriptionInternalState(this);

if (DESCRIPTORS) defineProperty(Subscription.prototype, 'closed', {
if (DESCRIPTORS) defineBuiltInAccessor(Subscription.prototype, 'closed', {
configurable: true,
get: function () {
get: function closed() {
return getSubscriptionInternalState(this).isClosed();

@@ -114,3 +114,3 @@ }

SubscriptionObserver.prototype = redefineAll({}, {
SubscriptionObserver.prototype = defineBuiltIns({}, {
next: function next(value) {

@@ -157,5 +157,5 @@ var subscriptionState = getSubscriptionObserverInternalState(this).subscriptionState;

if (DESCRIPTORS) defineProperty(SubscriptionObserver.prototype, 'closed', {
if (DESCRIPTORS) defineBuiltInAccessor(SubscriptionObserver.prototype, 'closed', {
configurable: true,
get: function () {
get: function closed() {
return getSubscriptionObserverInternalState(this).subscriptionState.isClosed();

@@ -175,3 +175,3 @@ }

redefineAll(ObservablePrototype, {
defineBuiltIns(ObservablePrototype, {
subscribe: function subscribe(observer) {

@@ -187,3 +187,3 @@ var length = arguments.length;

redefine(ObservablePrototype, $$OBSERVABLE, function () { return this; });
defineBuiltIn(ObservablePrototype, $$OBSERVABLE, function () { return this; });

@@ -190,0 +190,0 @@ $({ global: true, forced: OBSERVABLE_FORCED }, {

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

var defineProperty = require('../internals/object-define-property').f;
var defineProperties = require('../internals/object-define-properties').f;
var redefine = require('../internals/redefine');
var defineBuiltIn = require('../internals/define-built-in');
var defineBuiltInAccessor = require('../internals/define-built-in-accessor');
var hasOwn = require('../internals/has-own-property');

@@ -83,7 +83,7 @@ var anInstance = require('../internals/an-instance');

if (DESCRIPTORS) defineProperties(DOMExceptionPrototype, {
name: getterFor('name'),
message: getterFor('message'),
code: getterFor('code')
});
if (DESCRIPTORS) {
defineBuiltInAccessor(DOMExceptionPrototype, 'code', getterFor('code'));
defineBuiltInAccessor(DOMExceptionPrototype, 'message', getterFor('message'));
defineBuiltInAccessor(DOMExceptionPrototype, 'name', getterFor('name'));
}

@@ -124,7 +124,7 @@ defineProperty(DOMExceptionPrototype, 'constructor', createPropertyDescriptor(1, $DOMException));

if (INCORRECT_TO_STRING && (IS_PURE || NativeDOMException === PolyfilledDOMException)) {
redefine(PolyfilledDOMExceptionPrototype, 'toString', errorToString);
defineBuiltIn(PolyfilledDOMExceptionPrototype, 'toString', errorToString);
}
if (INCORRECT_CODE && DESCRIPTORS && NativeDOMException === PolyfilledDOMException) {
defineProperty(PolyfilledDOMExceptionPrototype, 'code', createGetterDescriptor(function () {
defineBuiltInAccessor(PolyfilledDOMExceptionPrototype, 'code', createGetterDescriptor(function () {
return codeFor(anObject(this).name);

@@ -131,0 +131,0 @@ }));

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

var USE_NATIVE_URL = require('../internals/native-url');
var redefine = require('../internals/redefine');
var redefineAll = require('../internals/redefine-all');
var defineBuiltIn = require('../internals/define-built-in');
var defineBuiltIns = require('../internals/define-built-ins');
var setToStringTag = require('../internals/set-to-string-tag');

@@ -212,3 +212,3 @@ var createIteratorConstructor = require('../internals/create-iterator-constructor');

redefineAll(URLSearchParamsPrototype, {
defineBuiltIns(URLSearchParamsPrototype, {
// `URLSearchParams.prototype.append` method

@@ -332,7 +332,7 @@ // https://url.spec.whatwg.org/#dom-urlsearchparams-append

// `URLSearchParams.prototype[@@iterator]` method
redefine(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries, { name: 'entries' });
defineBuiltIn(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries, { name: 'entries' });
// `URLSearchParams.prototype.toString` method
// https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior
redefine(URLSearchParamsPrototype, 'toString', function toString() {
defineBuiltIn(URLSearchParamsPrototype, 'toString', function toString() {
return getInternalParamsState(this).serialize();

@@ -339,0 +339,0 @@ }, { enumerable: true });

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

var uncurryThis = require('../internals/function-uncurry-this');
var defineProperties = require('../internals/object-define-properties').f;
var redefine = require('../internals/redefine');
var defineBuiltIn = require('../internals/define-built-in');
var defineBuiltInAccessor = require('../internals/define-built-in-accessor');
var anInstance = require('../internals/an-instance');

@@ -978,40 +978,38 @@ var hasOwn = require('../internals/has-own-property');

if (DESCRIPTORS) {
defineProperties(URLPrototype, {
// `URL.prototype.href` accessors pair
// https://url.spec.whatwg.org/#dom-url-href
href: accessorDescriptor('serialize', 'setHref'),
// `URL.prototype.origin` getter
// https://url.spec.whatwg.org/#dom-url-origin
origin: accessorDescriptor('getOrigin'),
// `URL.prototype.protocol` accessors pair
// https://url.spec.whatwg.org/#dom-url-protocol
protocol: accessorDescriptor('getProtocol', 'setProtocol'),
// `URL.prototype.username` accessors pair
// https://url.spec.whatwg.org/#dom-url-username
username: accessorDescriptor('getUsername', 'setUsername'),
// `URL.prototype.password` accessors pair
// https://url.spec.whatwg.org/#dom-url-password
password: accessorDescriptor('getPassword', 'setPassword'),
// `URL.prototype.host` accessors pair
// https://url.spec.whatwg.org/#dom-url-host
host: accessorDescriptor('getHost', 'setHost'),
// `URL.prototype.hostname` accessors pair
// https://url.spec.whatwg.org/#dom-url-hostname
hostname: accessorDescriptor('getHostname', 'setHostname'),
// `URL.prototype.port` accessors pair
// https://url.spec.whatwg.org/#dom-url-port
port: accessorDescriptor('getPort', 'setPort'),
// `URL.prototype.pathname` accessors pair
// https://url.spec.whatwg.org/#dom-url-pathname
pathname: accessorDescriptor('getPathname', 'setPathname'),
// `URL.prototype.search` accessors pair
// https://url.spec.whatwg.org/#dom-url-search
search: accessorDescriptor('getSearch', 'setSearch'),
// `URL.prototype.searchParams` getter
// https://url.spec.whatwg.org/#dom-url-searchparams
searchParams: accessorDescriptor('getSearchParams'),
// `URL.prototype.hash` accessors pair
// https://url.spec.whatwg.org/#dom-url-hash
hash: accessorDescriptor('getHash', 'setHash')
});
// `URL.prototype.href` accessors pair
// https://url.spec.whatwg.org/#dom-url-href
defineBuiltInAccessor(URLPrototype, 'href', accessorDescriptor('serialize', 'setHref'));
// `URL.prototype.origin` getter
// https://url.spec.whatwg.org/#dom-url-origin
defineBuiltInAccessor(URLPrototype, 'origin', accessorDescriptor('getOrigin'));
// `URL.prototype.protocol` accessors pair
// https://url.spec.whatwg.org/#dom-url-protocol
defineBuiltInAccessor(URLPrototype, 'protocol', accessorDescriptor('getProtocol', 'setProtocol'));
// `URL.prototype.username` accessors pair
// https://url.spec.whatwg.org/#dom-url-username
defineBuiltInAccessor(URLPrototype, 'username', accessorDescriptor('getUsername', 'setUsername'));
// `URL.prototype.password` accessors pair
// https://url.spec.whatwg.org/#dom-url-password
defineBuiltInAccessor(URLPrototype, 'password', accessorDescriptor('getPassword', 'setPassword'));
// `URL.prototype.host` accessors pair
// https://url.spec.whatwg.org/#dom-url-host
defineBuiltInAccessor(URLPrototype, 'host', accessorDescriptor('getHost', 'setHost'));
// `URL.prototype.hostname` accessors pair
// https://url.spec.whatwg.org/#dom-url-hostname
defineBuiltInAccessor(URLPrototype, 'hostname', accessorDescriptor('getHostname', 'setHostname'));
// `URL.prototype.port` accessors pair
// https://url.spec.whatwg.org/#dom-url-port
defineBuiltInAccessor(URLPrototype, 'port', accessorDescriptor('getPort', 'setPort'));
// `URL.prototype.pathname` accessors pair
// https://url.spec.whatwg.org/#dom-url-pathname
defineBuiltInAccessor(URLPrototype, 'pathname', accessorDescriptor('getPathname', 'setPathname'));
// `URL.prototype.search` accessors pair
// https://url.spec.whatwg.org/#dom-url-search
defineBuiltInAccessor(URLPrototype, 'search', accessorDescriptor('getSearch', 'setSearch'));
// `URL.prototype.searchParams` getter
// https://url.spec.whatwg.org/#dom-url-searchparams
defineBuiltInAccessor(URLPrototype, 'searchParams', accessorDescriptor('getSearchParams'));
// `URL.prototype.hash` accessors pair
// https://url.spec.whatwg.org/#dom-url-hash
defineBuiltInAccessor(URLPrototype, 'hash', accessorDescriptor('getHash', 'setHash'));
}

@@ -1021,3 +1019,3 @@

// https://url.spec.whatwg.org/#dom-url-tojson
redefine(URLPrototype, 'toJSON', function toJSON() {
defineBuiltIn(URLPrototype, 'toJSON', function toJSON() {
return getInternalURLState(this).serialize();

@@ -1028,3 +1026,3 @@ }, { enumerable: true });

// https://url.spec.whatwg.org/#URL-stringification-behavior
redefine(URLPrototype, 'toString', function toString() {
defineBuiltIn(URLPrototype, 'toString', function toString() {
return getInternalURLState(this).serialize();

@@ -1038,6 +1036,6 @@ }, { enumerable: true });

// https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL
if (nativeCreateObjectURL) redefine(URLConstructor, 'createObjectURL', bind(nativeCreateObjectURL, NativeURL));
if (nativeCreateObjectURL) defineBuiltIn(URLConstructor, 'createObjectURL', bind(nativeCreateObjectURL, NativeURL));
// `URL.revokeObjectURL` method
// https://developer.mozilla.org/en-US/docs/Web/API/URL/revokeObjectURL
if (nativeRevokeObjectURL) redefine(URLConstructor, 'revokeObjectURL', bind(nativeRevokeObjectURL, NativeURL));
if (nativeRevokeObjectURL) defineBuiltIn(URLConstructor, 'revokeObjectURL', bind(nativeRevokeObjectURL, NativeURL));
}

@@ -1044,0 +1042,0 @@

{
"name": "core-js-pure",
"description": "Standard library",
"version": "3.22.3",
"version": "3.22.4",
"repository": {

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

},
"gitHead": "3c83544a650f20115b2a586ac226d00b2505fcae"
"gitHead": "6ba79a5aada7286aa44ca9e4029cbb74dd84ffd6"
}
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