core-js-pure 3.32.0 → 3.32.2
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/internals/array-includes.js +2 -2
- package/internals/array-iteration-from-last.js +1 -1
- package/internals/array-iteration.js +7 -7
- package/internals/array-slice-simple.js +2 -1
- package/internals/async-iterator-iteration.js +4 -4
- package/internals/caller.js +1 -1
- package/internals/check-correctness-of-iteration.js +3 -1
- package/internals/classof.js +2 -2
- package/internals/collection-strong.js +5 -5
- package/internals/collection.js +5 -4
- package/internals/date-to-iso-string.js +1 -1
- package/internals/descriptors.js +1 -1
- package/internals/engine-is-node.js +2 -1
- package/internals/function-bind.js +3 -1
- package/internals/get-json-replacer-function.js +1 -1
- package/internals/get-set-record.js +1 -1
- package/internals/global.js +1 -1
- package/internals/host-report-errors.js +1 -1
- package/internals/ie8-dom-define.js +1 -1
- package/internals/ieee754.js +25 -14
- package/internals/indexed-object.js +1 -1
- package/internals/is-array.js +1 -1
- package/internals/is-big-int-array.js +1 -1
- package/internals/is-forced.js +2 -2
- package/internals/is-regexp.js +1 -1
- package/internals/iterator-define.js +7 -4
- package/internals/math-expm1.js +3 -2
- package/internals/math-fround.js +1 -1
- package/internals/math-scale.js +1 -1
- package/internals/math-sign.js +1 -1
- package/internals/number-parse-float.js +1 -1
- package/internals/numeric-range-iterator.js +1 -1
- package/internals/object-assign.js +2 -2
- package/internals/object-get-own-property-names-external.js +1 -1
- package/internals/object-is-extensible.js +1 -1
- package/internals/parse-json-string.js +3 -3
- package/internals/same-value-zero.js +1 -1
- package/internals/same-value.js +1 -1
- package/internals/schedulers-fix.js +1 -1
- package/internals/shared.js +2 -2
- package/internals/string-pad.js +1 -1
- package/internals/string-punycode-to-ascii.js +4 -4
- package/internals/string-repeat.js +1 -1
- package/internals/structured-clone-proper-transfer.js +1 -1
- package/internals/symbol-constructor-detection.js +1 -1
- package/internals/symbol-is-well-known.js +1 -0
- package/internals/v8-prototype-define-bug.js +1 -1
- package/modules/es.array.for-each.js +1 -1
- package/modules/es.array.iterator.js +4 -3
- package/modules/es.array.join.js +1 -1
- package/modules/es.date.set-year.js +1 -1
- package/modules/es.date.to-json.js +1 -1
- package/modules/es.json.stringify.js +4 -4
- package/modules/es.math.acosh.js +2 -2
- package/modules/es.math.asinh.js +1 -1
- package/modules/es.math.atanh.js +1 -1
- package/modules/es.math.expm1.js +1 -1
- package/modules/es.math.imul.js +1 -1
- package/modules/es.math.sinh.js +1 -1
- package/modules/es.math.tanh.js +1 -1
- package/modules/es.number.constructor.js +14 -3
- package/modules/es.number.is-nan.js +1 -1
- package/modules/es.number.parse-float.js +1 -1
- package/modules/es.number.parse-int.js +1 -1
- package/modules/es.number.to-fixed.js +1 -1
- package/modules/es.object.is-frozen.js +1 -1
- package/modules/es.object.is-sealed.js +1 -1
- package/modules/es.parse-float.js +1 -1
- package/modules/es.parse-int.js +1 -1
- package/modules/es.promise.constructor.js +2 -2
- package/modules/es.reflect.construct.js +1 -1
- package/modules/es.string.from-code-point.js +1 -1
- package/modules/es.string.is-well-formed.js +2 -2
- package/modules/es.string.match-all.js +1 -1
- package/modules/es.string.to-well-formed.js +2 -2
- package/modules/es.symbol.constructor.js +1 -1
- package/modules/es.weak-map.constructor.js +2 -2
- package/modules/esnext.async-disposable-stack.constructor.js +3 -3
- package/modules/esnext.composite-symbol.js +1 -1
- package/modules/esnext.disposable-stack.constructor.js +3 -3
- package/modules/esnext.json.parse.js +15 -15
- package/modules/esnext.json.raw-json.js +3 -3
- package/modules/esnext.math.signbit.js +1 -1
- package/modules/esnext.number.from-string.js +1 -1
- package/modules/esnext.set.intersection.v2.js +1 -1
- package/modules/esnext.string.dedent.js +8 -3
- package/modules/web.atob.js +2 -2
- package/modules/web.dom-exception.constructor.js +1 -1
- package/modules/web.structured-clone.js +4 -4
- package/modules/web.url.constructor.js +129 -125
- package/package.json +1 -1
- package/postinstall.js +1 -0
|
@@ -65,7 +65,7 @@ var dedentStringsArray = function (template) {
|
|
|
65
65
|
var blocks = $Array(length);
|
|
66
66
|
var dedented = $Array(length);
|
|
67
67
|
var i = 0;
|
|
68
|
-
var lines, common;
|
|
68
|
+
var lines, common, quasi, k;
|
|
69
69
|
|
|
70
70
|
if (!length) throw $TypeError(INVALID_TAG);
|
|
71
71
|
|
|
@@ -107,7 +107,9 @@ var dedentStringsArray = function (template) {
|
|
|
107
107
|
|
|
108
108
|
for (i = 0; i < length; i++) {
|
|
109
109
|
lines = blocks[i];
|
|
110
|
-
|
|
110
|
+
quasi = lines[0];
|
|
111
|
+
k = 1;
|
|
112
|
+
for (; k < lines.length; k += 2) {
|
|
111
113
|
quasi += lines[k] + stringSlice(lines[k + 1], count);
|
|
112
114
|
}
|
|
113
115
|
dedented[i] = quasi;
|
|
@@ -126,7 +128,10 @@ var commonLeadingIndentation = function (a, b) {
|
|
|
126
128
|
};
|
|
127
129
|
|
|
128
130
|
var cookStrings = function (raw) {
|
|
129
|
-
|
|
131
|
+
var i = 0;
|
|
132
|
+
var length = raw.length;
|
|
133
|
+
var result = $Array(length);
|
|
134
|
+
for (; i < length; i++) {
|
|
130
135
|
result[i] = parse(raw[i]);
|
|
131
136
|
} return result;
|
|
132
137
|
};
|
package/modules/web.atob.js
CHANGED
|
@@ -46,10 +46,10 @@ $({ global: true, bind: true, enumerable: true, forced: NO_SPACES_IGNORE || NO_E
|
|
|
46
46
|
var position = 0;
|
|
47
47
|
var bc = 0;
|
|
48
48
|
var chr, bs;
|
|
49
|
-
if (string.length % 4
|
|
49
|
+
if (string.length % 4 === 0) {
|
|
50
50
|
string = replace(string, finalEq, '');
|
|
51
51
|
}
|
|
52
|
-
if (string.length % 4
|
|
52
|
+
if (string.length % 4 === 1 || exec(disallowed, string)) {
|
|
53
53
|
throw new (getBuiltIn('DOMException'))('The string is not correctly encoded', 'InvalidCharacterError');
|
|
54
54
|
}
|
|
55
55
|
while (chr = charAt(string, position++)) {
|
|
@@ -30,7 +30,7 @@ var NativeDOMException = getBuiltIn(DOM_EXCEPTION) || (function () {
|
|
|
30
30
|
// eslint-disable-next-line es/no-weak-map, unicorn/require-post-message-target-origin -- safe
|
|
31
31
|
new MessageChannel().port1.postMessage(new WeakMap());
|
|
32
32
|
} catch (error) {
|
|
33
|
-
if (error.name
|
|
33
|
+
if (error.name === DATA_CLONE_ERR && error.code === 25) return error.constructor;
|
|
34
34
|
}
|
|
35
35
|
})();
|
|
36
36
|
var NativeDOMExceptionPrototype = NativeDOMException && NativeDOMException.prototype;
|
|
@@ -62,7 +62,7 @@ var checkBasicSemantic = function (structuredCloneImplementation) {
|
|
|
62
62
|
var set1 = new global.Set([7]);
|
|
63
63
|
var set2 = structuredCloneImplementation(set1);
|
|
64
64
|
var number = structuredCloneImplementation(Object(7));
|
|
65
|
-
return set2
|
|
65
|
+
return set2 === set1 || !set2.has(7) || typeof number != 'object' || +number !== 7;
|
|
66
66
|
}) && structuredCloneImplementation;
|
|
67
67
|
};
|
|
68
68
|
|
|
@@ -78,7 +78,7 @@ var checkErrorsCloning = function (structuredCloneImplementation, $Error) {
|
|
|
78
78
|
var checkNewErrorsCloningSemantic = function (structuredCloneImplementation) {
|
|
79
79
|
return !fails(function () {
|
|
80
80
|
var test = structuredCloneImplementation(new global.AggregateError([1], PERFORMANCE_MARK, { cause: 3 }));
|
|
81
|
-
return test.name
|
|
81
|
+
return test.name !== 'AggregateError' || test.errors[0] !== 1 || test.message !== PERFORMANCE_MARK || test.cause !== 3;
|
|
82
82
|
});
|
|
83
83
|
};
|
|
84
84
|
|
|
@@ -440,7 +440,7 @@ var structuredCloneInternal = function (value, map, transferredBuffers) {
|
|
|
440
440
|
if (hasOwn(value, 'cause')) {
|
|
441
441
|
createNonEnumerableProperty(cloned, 'cause', structuredCloneInternal(value.cause, map, transferredBuffers));
|
|
442
442
|
}
|
|
443
|
-
if (name
|
|
443
|
+
if (name === 'AggregateError') {
|
|
444
444
|
cloned.errors = structuredCloneInternal(value.errors, map, transferredBuffers);
|
|
445
445
|
} // break omitted
|
|
446
446
|
case 'DOMException':
|
|
@@ -508,7 +508,7 @@ var replacePlaceholders = function (value, map) {
|
|
|
508
508
|
if (hasOwn(value, 'cause')) {
|
|
509
509
|
value.cause = replacePlaceholders(value.cause, map);
|
|
510
510
|
}
|
|
511
|
-
if (value.name
|
|
511
|
+
if (value.name === 'AggregateError') {
|
|
512
512
|
value.errors = replacePlaceholders(value.errors, map);
|
|
513
513
|
} // break omitted
|
|
514
514
|
case 'DOMException':
|