@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.
@@ -510,7 +510,9 @@ function isNativeBlob(p) {
510
510
  return isNativeBlobDefined() && p instanceof Blob;
511
511
  }
512
512
  function isNativeBlobDefined() {
513
- return typeof Blob !== 'undefined';
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.12";
3358
+ const version = "0.9.13-canary.0c0c58f47";
3354
3359
 
3355
3360
  /**
3356
3361
  * @license