web-streams-polyfill 3.2.0 → 3.2.1
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/dist/polyfill.es2018.js +21 -9
- package/dist/polyfill.es2018.js.map +1 -1
- package/dist/polyfill.es2018.min.js +1 -1
- package/dist/polyfill.es2018.min.js.map +1 -1
- package/dist/polyfill.es2018.mjs +21 -9
- package/dist/polyfill.es2018.mjs.map +1 -1
- package/dist/polyfill.es6.js +21 -9
- package/dist/polyfill.es6.js.map +1 -1
- package/dist/polyfill.es6.min.js +1 -1
- package/dist/polyfill.es6.min.js.map +1 -1
- package/dist/polyfill.es6.mjs +21 -9
- package/dist/polyfill.es6.mjs.map +1 -1
- package/dist/polyfill.js +21 -9
- package/dist/polyfill.js.map +1 -1
- package/dist/polyfill.min.js +1 -1
- package/dist/polyfill.min.js.map +1 -1
- package/dist/polyfill.mjs +21 -9
- package/dist/polyfill.mjs.map +1 -1
- package/dist/ponyfill.es2018.js +21 -9
- package/dist/ponyfill.es2018.js.map +1 -1
- package/dist/ponyfill.es2018.mjs +21 -9
- package/dist/ponyfill.es2018.mjs.map +1 -1
- package/dist/ponyfill.es6.js +21 -9
- package/dist/ponyfill.es6.js.map +1 -1
- package/dist/ponyfill.es6.mjs +21 -9
- package/dist/ponyfill.es6.mjs.map +1 -1
- package/dist/ponyfill.js +21 -9
- package/dist/ponyfill.js.map +1 -1
- package/dist/ponyfill.mjs +21 -9
- package/dist/ponyfill.mjs.map +1 -1
- package/package.json +1 -1
- package/CHANGELOG.md +0 -134
package/dist/polyfill.es2018.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* web-streams-polyfill v3.2.
|
|
2
|
+
* web-streams-polyfill v3.2.1
|
|
3
3
|
*/
|
|
4
4
|
/// <reference lib="es2015.symbol" />
|
|
5
5
|
const SymbolPolyfill = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ?
|
|
@@ -3696,10 +3696,16 @@ function convertQueuingStrategyInit(init, context) {
|
|
|
3696
3696
|
const byteLengthSizeFunction = (chunk) => {
|
|
3697
3697
|
return chunk.byteLength;
|
|
3698
3698
|
};
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3699
|
+
try {
|
|
3700
|
+
Object.defineProperty(byteLengthSizeFunction, 'name', {
|
|
3701
|
+
value: 'size',
|
|
3702
|
+
configurable: true
|
|
3703
|
+
});
|
|
3704
|
+
}
|
|
3705
|
+
catch (_a) {
|
|
3706
|
+
// This property is non-configurable in older browsers, so ignore if this throws.
|
|
3707
|
+
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name#browser_compatibility
|
|
3708
|
+
}
|
|
3703
3709
|
/**
|
|
3704
3710
|
* A queuing strategy that counts the number of bytes in each chunk.
|
|
3705
3711
|
*
|
|
@@ -3758,10 +3764,16 @@ function IsByteLengthQueuingStrategy(x) {
|
|
|
3758
3764
|
const countSizeFunction = () => {
|
|
3759
3765
|
return 1;
|
|
3760
3766
|
};
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3767
|
+
try {
|
|
3768
|
+
Object.defineProperty(countSizeFunction, 'name', {
|
|
3769
|
+
value: 'size',
|
|
3770
|
+
configurable: true
|
|
3771
|
+
});
|
|
3772
|
+
}
|
|
3773
|
+
catch (_a) {
|
|
3774
|
+
// This property is non-configurable in older browsers, so ignore if this throws.
|
|
3775
|
+
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name#browser_compatibility
|
|
3776
|
+
}
|
|
3765
3777
|
/**
|
|
3766
3778
|
* A queuing strategy that counts the number of chunks.
|
|
3767
3779
|
*
|