@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.
@@ -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 !== null && firebaseVersion !== void 0 ? firebaseVersion : 'AppManager');
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 !== null && error !== void 0 ? error : undefined;
2079
- this.complete = complete !== null && complete !== void 0 ? complete : undefined;
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 === null || e === void 0 ? void 0 : e.message;
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 === null || e === void 0 ? void 0 : e.message;
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 = Object.assign({}, metadata);
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 === null || config === void 0 ? void 0 : config[CONFIG_STORAGE_BUCKET_KEY];
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.13";
3375
+ const version = "0.13.14-canary.25b60fdaa";
3376
3376
 
3377
3377
  /**
3378
3378
  * @license