@firebase/storage 0.11.2 → 0.12.0-20231120214520

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.
@@ -5,13 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var app = require('@firebase/app');
6
6
  var util = require('@firebase/util');
7
7
  var stream = require('stream');
8
- var nodeFetch = require('node-fetch');
8
+ var undici = require('undici');
9
9
  var component = require('@firebase/component');
10
10
 
11
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
12
-
13
- var nodeFetch__default = /*#__PURE__*/_interopDefaultLegacy(nodeFetch);
14
-
15
11
  /**
16
12
  * @license
17
13
  * Copyright 2017 Google LLC
@@ -544,9 +540,7 @@ function isNativeBlob(p) {
544
540
  return isNativeBlobDefined() && p instanceof Blob;
545
541
  }
546
542
  function isNativeBlobDefined() {
547
- // Note: The `isNode()` check can be removed when `node-fetch` adds native Blob support
548
- // PR: https://github.com/node-fetch/node-fetch/pull/1664
549
- return typeof Blob !== 'undefined' && !util.isNode();
543
+ return typeof Blob !== 'undefined';
550
544
  }
551
545
  function validateNumber(argument, minValue, maxValue, value) {
552
546
  if (value < minValue) {
@@ -2171,7 +2165,7 @@ class FetchConnection {
2171
2165
  constructor() {
2172
2166
  this.errorText_ = '';
2173
2167
  this.sent_ = false;
2174
- this.fetch_ = nodeFetch__default["default"];
2168
+ this.fetch_ = undici.fetch;
2175
2169
  this.errorCode_ = ErrorCode.NO_ERROR;
2176
2170
  }
2177
2171
  async send(url, method, body, headers) {
@@ -3387,7 +3381,7 @@ class FirebaseStorageImpl {
3387
3381
  }
3388
3382
 
3389
3383
  const name = "@firebase/storage";
3390
- const version = "0.11.2";
3384
+ const version = "0.12.0-20231120214520";
3391
3385
 
3392
3386
  /**
3393
3387
  * @license