@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.
- package/dist/index.browser.cjs.js +2 -4
- package/dist/index.browser.cjs.js.map +1 -1
- package/dist/index.cjs.js +2 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm2017.js +3 -5
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +3 -5
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +4 -10
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +5 -7
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/dist/node-esm/src/implementation/string.d.ts +1 -1
- package/dist/node-esm/src/implementation/taskenums.d.ts +1 -1
- package/dist/node-esm/src/platform/node/connection.d.ts +3 -3
- package/dist/src/implementation/string.d.ts +1 -1
- package/dist/src/implementation/taskenums.d.ts +1 -1
- package/dist/src/platform/node/connection.d.ts +3 -3
- package/dist/storage-public.d.ts +1 -1
- package/dist/storage.d.ts +2 -2
- package/package.json +5 -5
- package/CHANGELOG.md +0 -462
- package/dist/src/tsdoc-metadata.json +0 -11
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _getProvider, getApp, _registerComponent, registerVersion, SDK_VERSION } from '@firebase/app';
|
|
2
|
-
import { FirebaseError,
|
|
2
|
+
import { FirebaseError, createMockUserToken, getModularInstance, getDefaultEmulatorHostnameAndPort } from '@firebase/util';
|
|
3
3
|
import { Transform, PassThrough } from 'stream';
|
|
4
|
-
import
|
|
4
|
+
import { fetch } from 'undici';
|
|
5
5
|
import { Component } from '@firebase/component';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -536,9 +536,7 @@ function isNativeBlob(p) {
|
|
|
536
536
|
return isNativeBlobDefined() && p instanceof Blob;
|
|
537
537
|
}
|
|
538
538
|
function isNativeBlobDefined() {
|
|
539
|
-
|
|
540
|
-
// PR: https://github.com/node-fetch/node-fetch/pull/1664
|
|
541
|
-
return typeof Blob !== 'undefined' && !isNode();
|
|
539
|
+
return typeof Blob !== 'undefined';
|
|
542
540
|
}
|
|
543
541
|
function validateNumber(argument, minValue, maxValue, value) {
|
|
544
542
|
if (value < minValue) {
|
|
@@ -2163,7 +2161,7 @@ class FetchConnection {
|
|
|
2163
2161
|
constructor() {
|
|
2164
2162
|
this.errorText_ = '';
|
|
2165
2163
|
this.sent_ = false;
|
|
2166
|
-
this.fetch_ =
|
|
2164
|
+
this.fetch_ = fetch;
|
|
2167
2165
|
this.errorCode_ = ErrorCode.NO_ERROR;
|
|
2168
2166
|
}
|
|
2169
2167
|
async send(url, method, body, headers) {
|
|
@@ -3379,7 +3377,7 @@ class FirebaseStorageImpl {
|
|
|
3379
3377
|
}
|
|
3380
3378
|
|
|
3381
3379
|
const name = "@firebase/storage";
|
|
3382
|
-
const version = "0.
|
|
3380
|
+
const version = "0.12.0-20231120214520";
|
|
3383
3381
|
|
|
3384
3382
|
/**
|
|
3385
3383
|
* @license
|