@firebase/storage 0.13.13 → 0.13.14-canary.25b60fdaa
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 +8 -8
- package/dist/index.browser.cjs.js.map +1 -1
- package/dist/index.cjs.js +8 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/{index.esm2017.js → index.esm.js} +9 -9
- package/dist/index.esm.js.map +1 -0
- package/dist/index.node.cjs.js +8 -8
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +8 -8
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/package.json +11 -11
- package/dist/index.esm2017.js.map +0 -1
|
@@ -807,7 +807,7 @@ function addAuthHeader_(headers, authToken) {
|
|
|
807
807
|
}
|
|
808
808
|
function addVersionHeader_(headers, firebaseVersion) {
|
|
809
809
|
headers['X-Firebase-Storage-Version'] =
|
|
810
|
-
'webjs/' + (firebaseVersion
|
|
810
|
+
'webjs/' + (firebaseVersion ?? 'AppManager');
|
|
811
811
|
}
|
|
812
812
|
function addGmpidHeader_(headers, appId) {
|
|
813
813
|
if (appId) {
|
|
@@ -2075,8 +2075,8 @@ class Observer {
|
|
|
2075
2075
|
const asFunctions = isFunction(nextOrObserver) || error != null || complete != null;
|
|
2076
2076
|
if (asFunctions) {
|
|
2077
2077
|
this.next = nextOrObserver;
|
|
2078
|
-
this.error = error
|
|
2079
|
-
this.complete = complete
|
|
2078
|
+
this.error = error ?? undefined;
|
|
2079
|
+
this.complete = complete ?? undefined;
|
|
2080
2080
|
}
|
|
2081
2081
|
else {
|
|
2082
2082
|
const observer = nextOrObserver;
|
|
@@ -2159,7 +2159,7 @@ class FetchConnection {
|
|
|
2159
2159
|
this.body_ = await response.arrayBuffer();
|
|
2160
2160
|
}
|
|
2161
2161
|
catch (e) {
|
|
2162
|
-
this.errorText_ = e
|
|
2162
|
+
this.errorText_ = e?.message;
|
|
2163
2163
|
// emulate XHR which sets status to 0 when encountering a network error
|
|
2164
2164
|
this.statusCode_ = 0;
|
|
2165
2165
|
this.errorCode_ = ErrorCode.NETWORK_ERROR;
|
|
@@ -2238,7 +2238,7 @@ class FetchStreamConnection extends FetchConnection {
|
|
|
2238
2238
|
this.stream_ = response.body;
|
|
2239
2239
|
}
|
|
2240
2240
|
catch (e) {
|
|
2241
|
-
this.errorText_ = e
|
|
2241
|
+
this.errorText_ = e?.message;
|
|
2242
2242
|
// emulate XHR which sets status to 0 when encountering a network error
|
|
2243
2243
|
this.statusCode_ = 0;
|
|
2244
2244
|
this.errorCode_ = ErrorCode.NETWORK_ERROR;
|
|
@@ -2964,7 +2964,7 @@ function uploadBytesResumable$1(ref, data, metadata) {
|
|
|
2964
2964
|
function uploadString$1(ref, value, format = StringFormat.RAW, metadata) {
|
|
2965
2965
|
ref._throwIfRoot('uploadString');
|
|
2966
2966
|
const data = dataFromString(format, value);
|
|
2967
|
-
const metadataClone =
|
|
2967
|
+
const metadataClone = { ...metadata };
|
|
2968
2968
|
if (metadataClone['contentType'] == null && data.contentType != null) {
|
|
2969
2969
|
metadataClone['contentType'] = data.contentType;
|
|
2970
2970
|
}
|
|
@@ -3189,7 +3189,7 @@ function ref$1(serviceOrRef, pathOrUrl) {
|
|
|
3189
3189
|
}
|
|
3190
3190
|
}
|
|
3191
3191
|
function extractBucket(host, config) {
|
|
3192
|
-
const bucketString = config
|
|
3192
|
+
const bucketString = config?.[CONFIG_STORAGE_BUCKET_KEY];
|
|
3193
3193
|
if (bucketString == null) {
|
|
3194
3194
|
return null;
|
|
3195
3195
|
}
|
|
@@ -3372,7 +3372,7 @@ class FirebaseStorageImpl {
|
|
|
3372
3372
|
}
|
|
3373
3373
|
|
|
3374
3374
|
const name = "@firebase/storage";
|
|
3375
|
-
const version = "0.13.
|
|
3375
|
+
const version = "0.13.14-canary.25b60fdaa";
|
|
3376
3376
|
|
|
3377
3377
|
/**
|
|
3378
3378
|
* @license
|