@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.
@@ -811,7 +811,7 @@ function addAuthHeader_(headers, authToken) {
811
811
  }
812
812
  function addVersionHeader_(headers, firebaseVersion) {
813
813
  headers['X-Firebase-Storage-Version'] =
814
- 'webjs/' + (firebaseVersion !== null && firebaseVersion !== void 0 ? firebaseVersion : 'AppManager');
814
+ 'webjs/' + (firebaseVersion ?? 'AppManager');
815
815
  }
816
816
  function addGmpidHeader_(headers, appId) {
817
817
  if (appId) {
@@ -2079,8 +2079,8 @@ class Observer {
2079
2079
  const asFunctions = isFunction(nextOrObserver) || error != null || complete != null;
2080
2080
  if (asFunctions) {
2081
2081
  this.next = nextOrObserver;
2082
- this.error = error !== null && error !== void 0 ? error : undefined;
2083
- this.complete = complete !== null && complete !== void 0 ? complete : undefined;
2082
+ this.error = error ?? undefined;
2083
+ this.complete = complete ?? undefined;
2084
2084
  }
2085
2085
  else {
2086
2086
  const observer = nextOrObserver;
@@ -2163,7 +2163,7 @@ class FetchConnection {
2163
2163
  this.body_ = await response.arrayBuffer();
2164
2164
  }
2165
2165
  catch (e) {
2166
- this.errorText_ = e === null || e === void 0 ? void 0 : e.message;
2166
+ this.errorText_ = e?.message;
2167
2167
  // emulate XHR which sets status to 0 when encountering a network error
2168
2168
  this.statusCode_ = 0;
2169
2169
  this.errorCode_ = ErrorCode.NETWORK_ERROR;
@@ -2242,7 +2242,7 @@ class FetchStreamConnection extends FetchConnection {
2242
2242
  this.stream_ = response.body;
2243
2243
  }
2244
2244
  catch (e) {
2245
- this.errorText_ = e === null || e === void 0 ? void 0 : e.message;
2245
+ this.errorText_ = e?.message;
2246
2246
  // emulate XHR which sets status to 0 when encountering a network error
2247
2247
  this.statusCode_ = 0;
2248
2248
  this.errorCode_ = ErrorCode.NETWORK_ERROR;
@@ -2968,7 +2968,7 @@ function uploadBytesResumable$1(ref, data, metadata) {
2968
2968
  function uploadString$1(ref, value, format = StringFormat.RAW, metadata) {
2969
2969
  ref._throwIfRoot('uploadString');
2970
2970
  const data = dataFromString(format, value);
2971
- const metadataClone = Object.assign({}, metadata);
2971
+ const metadataClone = { ...metadata };
2972
2972
  if (metadataClone['contentType'] == null && data.contentType != null) {
2973
2973
  metadataClone['contentType'] = data.contentType;
2974
2974
  }
@@ -3193,7 +3193,7 @@ function ref$1(serviceOrRef, pathOrUrl) {
3193
3193
  }
3194
3194
  }
3195
3195
  function extractBucket(host, config) {
3196
- const bucketString = config === null || config === void 0 ? void 0 : config[CONFIG_STORAGE_BUCKET_KEY];
3196
+ const bucketString = config?.[CONFIG_STORAGE_BUCKET_KEY];
3197
3197
  if (bucketString == null) {
3198
3198
  return null;
3199
3199
  }
@@ -3376,7 +3376,7 @@ class FirebaseStorageImpl {
3376
3376
  }
3377
3377
 
3378
3378
  const name = "@firebase/storage";
3379
- const version = "0.13.13";
3379
+ const version = "0.13.14-canary.25b60fdaa";
3380
3380
 
3381
3381
  /**
3382
3382
  * @license