@firebase/storage 0.9.12 → 0.9.13-canary.0c0c58f47
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/CHANGELOG.md +12 -0
- package/dist/index.browser.cjs.js +13 -2
- package/dist/index.browser.cjs.js.map +1 -1
- package/dist/index.esm2017.js +15 -4
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +15 -4
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +7 -2
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +9 -4
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/dist/node-esm/src/implementation/error.d.ts +1 -0
- package/dist/node-esm/test/browser/string.browser.test.d.ts +17 -0
- package/dist/src/implementation/error.d.ts +1 -0
- package/dist/test/browser/string.browser.test.d.ts +17 -0
- package/package.json +7 -7
package/dist/index.node.cjs.js
CHANGED
|
@@ -510,7 +510,9 @@ function isNativeBlob(p) {
|
|
|
510
510
|
return isNativeBlobDefined() && p instanceof Blob;
|
|
511
511
|
}
|
|
512
512
|
function isNativeBlobDefined() {
|
|
513
|
-
|
|
513
|
+
// Note: The `isNode()` check can be removed when `node-fetch` adds native Blob support
|
|
514
|
+
// PR: https://github.com/node-fetch/node-fetch/pull/1664
|
|
515
|
+
return typeof Blob !== 'undefined' && !util.isNode();
|
|
514
516
|
}
|
|
515
517
|
function validateNumber(argument, minValue, maxValue, value) {
|
|
516
518
|
if (value < minValue) {
|
|
@@ -1077,6 +1079,9 @@ function base64Bytes_(format, value) {
|
|
|
1077
1079
|
bytes = decodeBase64(value);
|
|
1078
1080
|
}
|
|
1079
1081
|
catch (e) {
|
|
1082
|
+
if (e.message.includes('polyfill')) {
|
|
1083
|
+
throw e;
|
|
1084
|
+
}
|
|
1080
1085
|
throw invalidFormat(format, 'Invalid character found');
|
|
1081
1086
|
}
|
|
1082
1087
|
const array = new Uint8Array(bytes.length);
|
|
@@ -3350,7 +3355,7 @@ class FirebaseStorageImpl {
|
|
|
3350
3355
|
}
|
|
3351
3356
|
|
|
3352
3357
|
const name = "@firebase/storage";
|
|
3353
|
-
const version = "0.9.
|
|
3358
|
+
const version = "0.9.13-canary.0c0c58f47";
|
|
3354
3359
|
|
|
3355
3360
|
/**
|
|
3356
3361
|
* @license
|