@firebase/storage 0.13.2 → 0.13.3
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/index.browser.cjs.js +806 -975
- package/dist/index.browser.cjs.js.map +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm2017.js +2 -2
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.node.cjs.js +3 -5
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +3 -5
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/dist/node-esm/src/platform/node/connection.d.ts +1 -3
- package/dist/src/platform/node/connection.d.ts +1 -3
- package/package.json +9 -9
- package/dist/index.esm5.js +0 -3810
- package/dist/index.esm5.js.map +0 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { _getProvider, getApp, _registerComponent, registerVersion, SDK_VERSION } from '@firebase/app';
|
|
2
2
|
import { FirebaseError, createMockUserToken, getModularInstance, getDefaultEmulatorHostnameAndPort } from '@firebase/util';
|
|
3
|
-
import { fetch } from 'undici';
|
|
4
3
|
import { Component } from '@firebase/component';
|
|
5
4
|
|
|
6
5
|
/**
|
|
@@ -2144,7 +2143,6 @@ class FetchConnection {
|
|
|
2144
2143
|
constructor() {
|
|
2145
2144
|
this.errorText_ = '';
|
|
2146
2145
|
this.sent_ = false;
|
|
2147
|
-
this.fetch_ = fetch;
|
|
2148
2146
|
this.errorCode_ = ErrorCode.NO_ERROR;
|
|
2149
2147
|
}
|
|
2150
2148
|
async send(url, method, body, headers) {
|
|
@@ -2153,7 +2151,7 @@ class FetchConnection {
|
|
|
2153
2151
|
}
|
|
2154
2152
|
this.sent_ = true;
|
|
2155
2153
|
try {
|
|
2156
|
-
const response = await
|
|
2154
|
+
const response = await fetch(url, {
|
|
2157
2155
|
method,
|
|
2158
2156
|
headers: headers || {},
|
|
2159
2157
|
body: body
|
|
@@ -2236,7 +2234,7 @@ class FetchStreamConnection extends FetchConnection {
|
|
|
2236
2234
|
}
|
|
2237
2235
|
this.sent_ = true;
|
|
2238
2236
|
try {
|
|
2239
|
-
const response = await
|
|
2237
|
+
const response = await fetch(url, {
|
|
2240
2238
|
method,
|
|
2241
2239
|
headers: headers || {},
|
|
2242
2240
|
body: body
|
|
@@ -3359,7 +3357,7 @@ class FirebaseStorageImpl {
|
|
|
3359
3357
|
}
|
|
3360
3358
|
|
|
3361
3359
|
const name = "@firebase/storage";
|
|
3362
|
-
const version = "0.13.
|
|
3360
|
+
const version = "0.13.3";
|
|
3363
3361
|
|
|
3364
3362
|
/**
|
|
3365
3363
|
* @license
|