@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.cjs.js CHANGED
@@ -814,7 +814,7 @@ function addAuthHeader_(headers, authToken) {
814
814
  }
815
815
  function addVersionHeader_(headers, firebaseVersion) {
816
816
  headers['X-Firebase-Storage-Version'] =
817
- 'webjs/' + (firebaseVersion !== null && firebaseVersion !== void 0 ? firebaseVersion : 'AppManager');
817
+ 'webjs/' + (firebaseVersion ?? 'AppManager');
818
818
  }
819
819
  function addGmpidHeader_(headers, appId) {
820
820
  if (appId) {
@@ -2080,8 +2080,8 @@ class Observer {
2080
2080
  const asFunctions = isFunction(nextOrObserver) || error != null || complete != null;
2081
2081
  if (asFunctions) {
2082
2082
  this.next = nextOrObserver;
2083
- this.error = error !== null && error !== void 0 ? error : undefined;
2084
- this.complete = complete !== null && complete !== void 0 ? complete : undefined;
2083
+ this.error = error ?? undefined;
2084
+ this.complete = complete ?? undefined;
2085
2085
  }
2086
2086
  else {
2087
2087
  const observer = nextOrObserver;
@@ -2941,7 +2941,7 @@ function uploadBytesResumable$1(ref, data, metadata) {
2941
2941
  function uploadString$1(ref, value, format = StringFormat.RAW, metadata) {
2942
2942
  ref._throwIfRoot('uploadString');
2943
2943
  const data = dataFromString(format, value);
2944
- const metadataClone = Object.assign({}, metadata);
2944
+ const metadataClone = { ...metadata };
2945
2945
  if (metadataClone['contentType'] == null && data.contentType != null) {
2946
2946
  metadataClone['contentType'] = data.contentType;
2947
2947
  }
@@ -3166,7 +3166,7 @@ function ref$1(serviceOrRef, pathOrUrl) {
3166
3166
  }
3167
3167
  }
3168
3168
  function extractBucket(host, config) {
3169
- const bucketString = config === null || config === void 0 ? void 0 : config[CONFIG_STORAGE_BUCKET_KEY];
3169
+ const bucketString = config?.[CONFIG_STORAGE_BUCKET_KEY];
3170
3170
  if (bucketString == null) {
3171
3171
  return null;
3172
3172
  }
@@ -3349,7 +3349,7 @@ class FirebaseStorageImpl {
3349
3349
  }
3350
3350
 
3351
3351
  const name = "@firebase/storage";
3352
- const version = "0.13.13";
3352
+ const version = "0.13.14-canary.25b60fdaa";
3353
3353
 
3354
3354
  /**
3355
3355
  * @license
@@ -3651,8 +3651,8 @@ function registerStorage() {
3651
3651
  app._registerComponent(new component.Component(STORAGE_TYPE, factory, "PUBLIC" /* ComponentType.PUBLIC */).setMultipleInstances(true));
3652
3652
  //RUNTIME_ENV will be replaced during the compilation to "node" for nodejs and an empty string for browser
3653
3653
  app.registerVersion(name, version, '');
3654
- // BUILD_TARGET will be replaced by values like esm2017, cjs2017, etc during the compilation
3655
- app.registerVersion(name, version, 'cjs2017');
3654
+ // BUILD_TARGET will be replaced by values like esm, cjs, etc during the compilation
3655
+ app.registerVersion(name, version, 'cjs2020');
3656
3656
  }
3657
3657
  registerStorage();
3658
3658