@firebase/storage 0.9.12 → 0.9.13-canary.d7acc9653

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.
@@ -1,5 +1,5 @@
1
- import { getApp, _getProvider, _registerComponent, registerVersion, SDK_VERSION } from '@firebase/app';
2
- import { FirebaseError, createMockUserToken, getModularInstance, getDefaultEmulatorHostnameAndPort } from '@firebase/util';
1
+ import { _getProvider, getApp, _registerComponent, registerVersion, SDK_VERSION } from '@firebase/app';
2
+ import { FirebaseError, isNode, createMockUserToken, getModularInstance, getDefaultEmulatorHostnameAndPort } from '@firebase/util';
3
3
  import { Component } from '@firebase/component';
4
4
 
5
5
  /**
@@ -500,7 +500,9 @@ function isNativeBlob(p) {
500
500
  return isNativeBlobDefined() && p instanceof Blob;
501
501
  }
502
502
  function isNativeBlobDefined() {
503
- return typeof Blob !== 'undefined';
503
+ // Note: The `isNode()` check can be removed when `node-fetch` adds native Blob support
504
+ // PR: https://github.com/node-fetch/node-fetch/pull/1664
505
+ return typeof Blob !== 'undefined' && !isNode();
504
506
  }
505
507
  function validateNumber(argument, minValue, maxValue, value) {
506
508
  if (value < minValue) {
@@ -3303,7 +3305,7 @@ class FirebaseStorageImpl {
3303
3305
  }
3304
3306
 
3305
3307
  const name = "@firebase/storage";
3306
- const version = "0.9.12";
3308
+ const version = "0.9.13-canary.d7acc9653";
3307
3309
 
3308
3310
  /**
3309
3311
  * @license