core-js-bundle 3.19.2 → 3.19.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +84 -63
- package/minified.js +7 -7
- package/minified.js.map +1 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* core-js 3.19.
|
|
2
|
+
* core-js 3.19.3
|
|
3
3
|
* https://github.com/zloirock/core-js
|
|
4
4
|
* License: http://rock.mit-license.org
|
|
5
5
|
* © 2021 Denis Pushkarev (zloirock.ru)
|
|
@@ -1359,7 +1359,7 @@ var store = __webpack_require__(33);
|
|
|
1359
1359
|
(module.exports = function (key, value) {
|
|
1360
1360
|
return store[key] || (store[key] = value !== undefined ? value : {});
|
|
1361
1361
|
})('versions', []).push({
|
|
1362
|
-
version: '3.19.
|
|
1362
|
+
version: '3.19.3',
|
|
1363
1363
|
mode: IS_PURE ? 'pure' : 'global',
|
|
1364
1364
|
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
|
|
1365
1365
|
});
|
|
@@ -4000,9 +4000,9 @@ var Iterators = __webpack_require__(107);
|
|
|
4000
4000
|
|
|
4001
4001
|
var returnThis = function () { return this; };
|
|
4002
4002
|
|
|
4003
|
-
module.exports = function (IteratorConstructor, NAME, next) {
|
|
4003
|
+
module.exports = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
4004
4004
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
4005
|
-
IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(
|
|
4005
|
+
IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
|
|
4006
4006
|
setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);
|
|
4007
4007
|
Iterators[TO_STRING_TAG] = returnThis;
|
|
4008
4008
|
return IteratorConstructor;
|
|
@@ -8275,7 +8275,7 @@ var V8_VERSION = __webpack_require__(24);
|
|
|
8275
8275
|
var SPECIES = wellKnownSymbol('species');
|
|
8276
8276
|
var PROMISE = 'Promise';
|
|
8277
8277
|
|
|
8278
|
-
var getInternalState = InternalStateModule.
|
|
8278
|
+
var getInternalState = InternalStateModule.getterFor(PROMISE);
|
|
8279
8279
|
var setInternalState = InternalStateModule.set;
|
|
8280
8280
|
var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
|
|
8281
8281
|
var NativePromisePrototype = NativePromise && NativePromise.prototype;
|
|
@@ -13331,8 +13331,9 @@ var AsyncIteratorPrototype = __webpack_require__(420);
|
|
|
13331
13331
|
|
|
13332
13332
|
var Promise = getBuiltIn('Promise');
|
|
13333
13333
|
|
|
13334
|
+
var ASYNC_FROM_SYNC_ITERATOR = 'AsyncFromSyncIterator';
|
|
13334
13335
|
var setInternalState = InternalStateModule.set;
|
|
13335
|
-
var getInternalState = InternalStateModule.
|
|
13336
|
+
var getInternalState = InternalStateModule.getterFor(ASYNC_FROM_SYNC_ITERATOR);
|
|
13336
13337
|
|
|
13337
13338
|
var asyncFromSyncIteratorContinuation = function (result, resolve, reject) {
|
|
13338
13339
|
var done = result.done;
|
|
@@ -13343,6 +13344,7 @@ var asyncFromSyncIteratorContinuation = function (result, resolve, reject) {
|
|
|
13343
13344
|
|
|
13344
13345
|
var AsyncFromSyncIterator = function AsyncIterator(iterator) {
|
|
13345
13346
|
setInternalState(this, {
|
|
13347
|
+
type: ASYNC_FROM_SYNC_ITERATOR,
|
|
13346
13348
|
iterator: anObject(iterator),
|
|
13347
13349
|
next: iterator.next
|
|
13348
13350
|
});
|
|
@@ -13985,13 +13987,15 @@ var AsyncIteratorPrototype = __webpack_require__(420);
|
|
|
13985
13987
|
|
|
13986
13988
|
var Promise = getBuiltIn('Promise');
|
|
13987
13989
|
|
|
13990
|
+
var ASYNC_ITERATOR_PROXY = 'AsyncIteratorProxy';
|
|
13988
13991
|
var setInternalState = InternalStateModule.set;
|
|
13989
|
-
var getInternalState = InternalStateModule.
|
|
13992
|
+
var getInternalState = InternalStateModule.getterFor(ASYNC_ITERATOR_PROXY);
|
|
13990
13993
|
|
|
13991
13994
|
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
13992
13995
|
|
|
13993
13996
|
module.exports = function (nextHandler, IS_ITERATOR) {
|
|
13994
13997
|
var AsyncIteratorProxy = function AsyncIterator(state) {
|
|
13998
|
+
state.type = ASYNC_ITERATOR_PROXY;
|
|
13995
13999
|
state.next = aCallable(state.iterator.next);
|
|
13996
14000
|
state.done = false;
|
|
13997
14001
|
state.ignoreArgument = !IS_ITERATOR;
|
|
@@ -14812,13 +14816,15 @@ var InternalStateModule = __webpack_require__(45);
|
|
|
14812
14816
|
var getMethod = __webpack_require__(26);
|
|
14813
14817
|
var IteratorPrototype = __webpack_require__(141).IteratorPrototype;
|
|
14814
14818
|
|
|
14819
|
+
var ITERATOR_PROXY = 'IteratorProxy';
|
|
14815
14820
|
var setInternalState = InternalStateModule.set;
|
|
14816
|
-
var getInternalState = InternalStateModule.
|
|
14821
|
+
var getInternalState = InternalStateModule.getterFor(ITERATOR_PROXY);
|
|
14817
14822
|
|
|
14818
14823
|
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
14819
14824
|
|
|
14820
14825
|
module.exports = function (nextHandler, IS_ITERATOR) {
|
|
14821
14826
|
var IteratorProxy = function Iterator(state) {
|
|
14827
|
+
state.type = ITERATOR_PROXY;
|
|
14822
14828
|
state.next = aCallable(state.iterator.next);
|
|
14823
14829
|
state.done = false;
|
|
14824
14830
|
state.ignoreArg = !IS_ITERATOR;
|
|
@@ -16395,42 +16401,51 @@ var hostReportErrors = __webpack_require__(288);
|
|
|
16395
16401
|
var wellKnownSymbol = __webpack_require__(30);
|
|
16396
16402
|
var InternalStateModule = __webpack_require__(45);
|
|
16397
16403
|
|
|
16398
|
-
var OBSERVABLE = wellKnownSymbol('observable');
|
|
16399
|
-
var
|
|
16404
|
+
var $$OBSERVABLE = wellKnownSymbol('observable');
|
|
16405
|
+
var OBSERVABLE = 'Observable';
|
|
16406
|
+
var SUBSCRIPTION = 'Subscription';
|
|
16407
|
+
var SUBSCRIPTION_OBSERVER = 'SubscriptionObserver';
|
|
16408
|
+
var getterFor = InternalStateModule.getterFor;
|
|
16400
16409
|
var setInternalState = InternalStateModule.set;
|
|
16410
|
+
var getObservableInternalState = getterFor(OBSERVABLE);
|
|
16411
|
+
var getSubscriptionInternalState = getterFor(SUBSCRIPTION);
|
|
16412
|
+
var getSubscriptionObserverInternalState = getterFor(SUBSCRIPTION_OBSERVER);
|
|
16401
16413
|
var Array = global.Array;
|
|
16402
16414
|
|
|
16403
|
-
var
|
|
16404
|
-
|
|
16405
|
-
|
|
16406
|
-
|
|
16407
|
-
try {
|
|
16408
|
-
cleanup();
|
|
16409
|
-
} catch (error) {
|
|
16410
|
-
hostReportErrors(error);
|
|
16411
|
-
}
|
|
16412
|
-
}
|
|
16413
|
-
};
|
|
16414
|
-
|
|
16415
|
-
var subscriptionClosed = function (subscriptionState) {
|
|
16416
|
-
return subscriptionState.observer === undefined;
|
|
16415
|
+
var SubscriptionState = function (observer) {
|
|
16416
|
+
this.observer = anObject(observer);
|
|
16417
|
+
this.cleanup = undefined;
|
|
16418
|
+
this.subscriptionObserver = undefined;
|
|
16417
16419
|
};
|
|
16418
16420
|
|
|
16419
|
-
|
|
16420
|
-
|
|
16421
|
-
|
|
16422
|
-
|
|
16423
|
-
|
|
16424
|
-
|
|
16425
|
-
|
|
16421
|
+
SubscriptionState.prototype = {
|
|
16422
|
+
type: SUBSCRIPTION,
|
|
16423
|
+
clean: function () {
|
|
16424
|
+
var cleanup = this.cleanup;
|
|
16425
|
+
if (cleanup) {
|
|
16426
|
+
this.cleanup = undefined;
|
|
16427
|
+
try {
|
|
16428
|
+
cleanup();
|
|
16429
|
+
} catch (error) {
|
|
16430
|
+
hostReportErrors(error);
|
|
16431
|
+
}
|
|
16432
|
+
}
|
|
16433
|
+
},
|
|
16434
|
+
close: function () {
|
|
16435
|
+
if (!DESCRIPTORS) {
|
|
16436
|
+
var subscription = this.facade;
|
|
16437
|
+
var subscriptionObserver = this.subscriptionObserver;
|
|
16438
|
+
subscription.closed = true;
|
|
16439
|
+
if (subscriptionObserver) subscriptionObserver.closed = true;
|
|
16440
|
+
} this.observer = undefined;
|
|
16441
|
+
},
|
|
16442
|
+
isClosed: function () {
|
|
16443
|
+
return this.observer === undefined;
|
|
16444
|
+
}
|
|
16426
16445
|
};
|
|
16427
16446
|
|
|
16428
16447
|
var Subscription = function (observer, subscriber) {
|
|
16429
|
-
var subscriptionState = setInternalState(this,
|
|
16430
|
-
cleanup: undefined,
|
|
16431
|
-
observer: anObject(observer),
|
|
16432
|
-
subscriptionObserver: undefined
|
|
16433
|
-
});
|
|
16448
|
+
var subscriptionState = setInternalState(this, new SubscriptionState(observer));
|
|
16434
16449
|
var start;
|
|
16435
16450
|
if (!DESCRIPTORS) this.closed = false;
|
|
16436
16451
|
try {
|
|
@@ -16438,8 +16453,8 @@ var Subscription = function (observer, subscriber) {
|
|
|
16438
16453
|
} catch (error) {
|
|
16439
16454
|
hostReportErrors(error);
|
|
16440
16455
|
}
|
|
16441
|
-
if (
|
|
16442
|
-
var subscriptionObserver = subscriptionState.subscriptionObserver = new SubscriptionObserver(
|
|
16456
|
+
if (subscriptionState.isClosed()) return;
|
|
16457
|
+
var subscriptionObserver = subscriptionState.subscriptionObserver = new SubscriptionObserver(subscriptionState);
|
|
16443
16458
|
try {
|
|
16444
16459
|
var cleanup = subscriber(subscriptionObserver);
|
|
16445
16460
|
var subscription = cleanup;
|
|
@@ -16449,15 +16464,15 @@ var Subscription = function (observer, subscriber) {
|
|
|
16449
16464
|
} catch (error) {
|
|
16450
16465
|
subscriptionObserver.error(error);
|
|
16451
16466
|
return;
|
|
16452
|
-
} if (
|
|
16467
|
+
} if (subscriptionState.isClosed()) subscriptionState.clean();
|
|
16453
16468
|
};
|
|
16454
16469
|
|
|
16455
16470
|
Subscription.prototype = redefineAll({}, {
|
|
16456
16471
|
unsubscribe: function unsubscribe() {
|
|
16457
|
-
var subscriptionState =
|
|
16458
|
-
if (!
|
|
16459
|
-
close(
|
|
16460
|
-
|
|
16472
|
+
var subscriptionState = getSubscriptionInternalState(this);
|
|
16473
|
+
if (!subscriptionState.isClosed()) {
|
|
16474
|
+
subscriptionState.close();
|
|
16475
|
+
subscriptionState.clean();
|
|
16461
16476
|
}
|
|
16462
16477
|
}
|
|
16463
16478
|
});
|
|
@@ -16465,19 +16480,22 @@ Subscription.prototype = redefineAll({}, {
|
|
|
16465
16480
|
if (DESCRIPTORS) defineProperty(Subscription.prototype, 'closed', {
|
|
16466
16481
|
configurable: true,
|
|
16467
16482
|
get: function () {
|
|
16468
|
-
return
|
|
16483
|
+
return getSubscriptionInternalState(this).isClosed();
|
|
16469
16484
|
}
|
|
16470
16485
|
});
|
|
16471
16486
|
|
|
16472
|
-
var SubscriptionObserver = function (
|
|
16473
|
-
setInternalState(this, {
|
|
16487
|
+
var SubscriptionObserver = function (subscriptionState) {
|
|
16488
|
+
setInternalState(this, {
|
|
16489
|
+
type: SUBSCRIPTION_OBSERVER,
|
|
16490
|
+
subscriptionState: subscriptionState
|
|
16491
|
+
});
|
|
16474
16492
|
if (!DESCRIPTORS) this.closed = false;
|
|
16475
16493
|
};
|
|
16476
16494
|
|
|
16477
16495
|
SubscriptionObserver.prototype = redefineAll({}, {
|
|
16478
16496
|
next: function next(value) {
|
|
16479
|
-
var subscriptionState =
|
|
16480
|
-
if (!
|
|
16497
|
+
var subscriptionState = getSubscriptionObserverInternalState(this).subscriptionState;
|
|
16498
|
+
if (!subscriptionState.isClosed()) {
|
|
16481
16499
|
var observer = subscriptionState.observer;
|
|
16482
16500
|
try {
|
|
16483
16501
|
var nextMethod = getMethod(observer, 'next');
|
|
@@ -16488,30 +16506,30 @@ SubscriptionObserver.prototype = redefineAll({}, {
|
|
|
16488
16506
|
}
|
|
16489
16507
|
},
|
|
16490
16508
|
error: function error(value) {
|
|
16491
|
-
var subscriptionState =
|
|
16492
|
-
if (!
|
|
16509
|
+
var subscriptionState = getSubscriptionObserverInternalState(this).subscriptionState;
|
|
16510
|
+
if (!subscriptionState.isClosed()) {
|
|
16493
16511
|
var observer = subscriptionState.observer;
|
|
16494
|
-
close(
|
|
16512
|
+
subscriptionState.close();
|
|
16495
16513
|
try {
|
|
16496
16514
|
var errorMethod = getMethod(observer, 'error');
|
|
16497
16515
|
if (errorMethod) call(errorMethod, observer, value);
|
|
16498
16516
|
else hostReportErrors(value);
|
|
16499
16517
|
} catch (err) {
|
|
16500
16518
|
hostReportErrors(err);
|
|
16501
|
-
}
|
|
16519
|
+
} subscriptionState.clean();
|
|
16502
16520
|
}
|
|
16503
16521
|
},
|
|
16504
16522
|
complete: function complete() {
|
|
16505
|
-
var subscriptionState =
|
|
16506
|
-
if (!
|
|
16523
|
+
var subscriptionState = getSubscriptionObserverInternalState(this).subscriptionState;
|
|
16524
|
+
if (!subscriptionState.isClosed()) {
|
|
16507
16525
|
var observer = subscriptionState.observer;
|
|
16508
|
-
close(
|
|
16526
|
+
subscriptionState.close();
|
|
16509
16527
|
try {
|
|
16510
16528
|
var completeMethod = getMethod(observer, 'complete');
|
|
16511
16529
|
if (completeMethod) call(completeMethod, observer);
|
|
16512
16530
|
} catch (error) {
|
|
16513
16531
|
hostReportErrors(error);
|
|
16514
|
-
}
|
|
16532
|
+
} subscriptionState.clean();
|
|
16515
16533
|
}
|
|
16516
16534
|
}
|
|
16517
16535
|
});
|
|
@@ -16519,13 +16537,16 @@ SubscriptionObserver.prototype = redefineAll({}, {
|
|
|
16519
16537
|
if (DESCRIPTORS) defineProperty(SubscriptionObserver.prototype, 'closed', {
|
|
16520
16538
|
configurable: true,
|
|
16521
16539
|
get: function () {
|
|
16522
|
-
return
|
|
16540
|
+
return getSubscriptionObserverInternalState(this).subscriptionState.isClosed();
|
|
16523
16541
|
}
|
|
16524
16542
|
});
|
|
16525
16543
|
|
|
16526
16544
|
var $Observable = function Observable(subscriber) {
|
|
16527
16545
|
anInstance(this, ObservablePrototype);
|
|
16528
|
-
setInternalState(this, {
|
|
16546
|
+
setInternalState(this, {
|
|
16547
|
+
type: OBSERVABLE,
|
|
16548
|
+
subscriber: aCallable(subscriber)
|
|
16549
|
+
});
|
|
16529
16550
|
};
|
|
16530
16551
|
|
|
16531
16552
|
var ObservablePrototype = $Observable.prototype;
|
|
@@ -16537,14 +16558,14 @@ redefineAll(ObservablePrototype, {
|
|
|
16537
16558
|
next: observer,
|
|
16538
16559
|
error: length > 1 ? arguments[1] : undefined,
|
|
16539
16560
|
complete: length > 2 ? arguments[2] : undefined
|
|
16540
|
-
} : isObject(observer) ? observer : {},
|
|
16561
|
+
} : isObject(observer) ? observer : {}, getObservableInternalState(this).subscriber);
|
|
16541
16562
|
}
|
|
16542
16563
|
});
|
|
16543
16564
|
|
|
16544
16565
|
redefineAll($Observable, {
|
|
16545
16566
|
from: function from(x) {
|
|
16546
16567
|
var C = isConstructor(this) ? this : $Observable;
|
|
16547
|
-
var observableMethod = getMethod(anObject(x), OBSERVABLE);
|
|
16568
|
+
var observableMethod = getMethod(anObject(x), $$OBSERVABLE);
|
|
16548
16569
|
if (observableMethod) {
|
|
16549
16570
|
var observable = anObject(call(observableMethod, x));
|
|
16550
16571
|
return observable.constructor === C ? observable : new C(function (observer) {
|
|
@@ -16575,13 +16596,13 @@ redefineAll($Observable, {
|
|
|
16575
16596
|
}
|
|
16576
16597
|
});
|
|
16577
16598
|
|
|
16578
|
-
redefine(ObservablePrototype, OBSERVABLE, function () { return this; });
|
|
16599
|
+
redefine(ObservablePrototype, $$OBSERVABLE, function () { return this; });
|
|
16579
16600
|
|
|
16580
16601
|
$({ global: true }, {
|
|
16581
16602
|
Observable: $Observable
|
|
16582
16603
|
});
|
|
16583
16604
|
|
|
16584
|
-
setSpecies(
|
|
16605
|
+
setSpecies(OBSERVABLE);
|
|
16585
16606
|
|
|
16586
16607
|
|
|
16587
16608
|
/***/ }),
|
|
@@ -19507,7 +19528,7 @@ var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params
|
|
|
19507
19528
|
if (!step.done) {
|
|
19508
19529
|
step.value = kind === 'keys' ? entry.key : kind === 'values' ? entry.value : [entry.key, entry.value];
|
|
19509
19530
|
} return step;
|
|
19510
|
-
});
|
|
19531
|
+
}, true);
|
|
19511
19532
|
|
|
19512
19533
|
var URLSearchParamsState = function (init) {
|
|
19513
19534
|
this.entries = [];
|