@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.
@@ -810,7 +810,7 @@ function addAuthHeader_(headers, authToken) {
810
810
  }
811
811
  function addVersionHeader_(headers, firebaseVersion) {
812
812
  headers['X-Firebase-Storage-Version'] =
813
- 'webjs/' + (firebaseVersion !== null && firebaseVersion !== void 0 ? firebaseVersion : 'AppManager');
813
+ 'webjs/' + (firebaseVersion ?? 'AppManager');
814
814
  }
815
815
  function addGmpidHeader_(headers, appId) {
816
816
  if (appId) {
@@ -2076,8 +2076,8 @@ class Observer {
2076
2076
  const asFunctions = isFunction(nextOrObserver) || error != null || complete != null;
2077
2077
  if (asFunctions) {
2078
2078
  this.next = nextOrObserver;
2079
- this.error = error !== null && error !== void 0 ? error : undefined;
2080
- this.complete = complete !== null && complete !== void 0 ? complete : undefined;
2079
+ this.error = error ?? undefined;
2080
+ this.complete = complete ?? undefined;
2081
2081
  }
2082
2082
  else {
2083
2083
  const observer = nextOrObserver;
@@ -2937,7 +2937,7 @@ function uploadBytesResumable$1(ref, data, metadata) {
2937
2937
  function uploadString$1(ref, value, format = StringFormat.RAW, metadata) {
2938
2938
  ref._throwIfRoot('uploadString');
2939
2939
  const data = dataFromString(format, value);
2940
- const metadataClone = Object.assign({}, metadata);
2940
+ const metadataClone = { ...metadata };
2941
2941
  if (metadataClone['contentType'] == null && data.contentType != null) {
2942
2942
  metadataClone['contentType'] = data.contentType;
2943
2943
  }
@@ -3162,7 +3162,7 @@ function ref$1(serviceOrRef, pathOrUrl) {
3162
3162
  }
3163
3163
  }
3164
3164
  function extractBucket(host, config) {
3165
- const bucketString = config === null || config === void 0 ? void 0 : config[CONFIG_STORAGE_BUCKET_KEY];
3165
+ const bucketString = config?.[CONFIG_STORAGE_BUCKET_KEY];
3166
3166
  if (bucketString == null) {
3167
3167
  return null;
3168
3168
  }
@@ -3345,7 +3345,7 @@ class FirebaseStorageImpl {
3345
3345
  }
3346
3346
 
3347
3347
  const name = "@firebase/storage";
3348
- const version = "0.13.13";
3348
+ const version = "0.13.14-canary.25b60fdaa";
3349
3349
 
3350
3350
  /**
3351
3351
  * @license
@@ -3647,10 +3647,10 @@ function registerStorage() {
3647
3647
  _registerComponent(new Component(STORAGE_TYPE, factory, "PUBLIC" /* ComponentType.PUBLIC */).setMultipleInstances(true));
3648
3648
  //RUNTIME_ENV will be replaced during the compilation to "node" for nodejs and an empty string for browser
3649
3649
  registerVersion(name, version, '');
3650
- // BUILD_TARGET will be replaced by values like esm2017, cjs2017, etc during the compilation
3651
- registerVersion(name, version, 'esm2017');
3650
+ // BUILD_TARGET will be replaced by values like esm, cjs, etc during the compilation
3651
+ registerVersion(name, version, 'esm2020');
3652
3652
  }
3653
3653
  registerStorage();
3654
3654
 
3655
3655
  export { StorageError, StorageErrorCode, StringFormat, FbsBlob as _FbsBlob, Location as _Location, TaskEvent as _TaskEvent, TaskState as _TaskState, UploadTask as _UploadTask, dataFromString as _dataFromString, _getChild, invalidArgument as _invalidArgument, invalidRootOperation as _invalidRootOperation, connectStorageEmulator, deleteObject, getBlob, getBytes, getDownloadURL, getMetadata, getStorage, getStream, list, listAll, ref, updateMetadata, uploadBytes, uploadBytesResumable, uploadString };
3656
- //# sourceMappingURL=index.esm2017.js.map
3656
+ //# sourceMappingURL=index.esm.js.map