@firebase/storage 0.7.0 → 0.7.1-2022028193537

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.
Files changed (44) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/compat/cjs/compat/reference.d.ts +4 -4
  3. package/dist/compat/cjs/exp/api.d.ts +26 -25
  4. package/dist/compat/cjs/exp/public-types.d.ts +1 -1
  5. package/dist/compat/cjs/index.js +4 -4
  6. package/dist/compat/cjs/index.js.map +1 -1
  7. package/dist/compat/cjs/src/reference.d.ts +4 -4
  8. package/dist/compat/esm2017/compat/reference.d.ts +4 -4
  9. package/dist/compat/esm2017/exp/api.d.ts +26 -25
  10. package/dist/compat/esm2017/exp/public-types.d.ts +1 -1
  11. package/dist/compat/esm2017/index.js +4 -4
  12. package/dist/compat/esm2017/index.js.map +1 -1
  13. package/dist/compat/esm2017/src/reference.d.ts +4 -4
  14. package/dist/compat/esm5/compat/reference.d.ts +4 -4
  15. package/dist/compat/esm5/exp/api.d.ts +26 -25
  16. package/dist/compat/esm5/exp/public-types.d.ts +1 -1
  17. package/dist/compat/esm5/index.js +4 -4
  18. package/dist/compat/esm5/index.js.map +1 -1
  19. package/dist/compat/esm5/src/reference.d.ts +4 -4
  20. package/dist/compat/reference.d.ts +4 -4
  21. package/dist/exp/api.d.ts +26 -25
  22. package/dist/exp/public-types.d.ts +1 -1
  23. package/dist/index.browser.cjs.js +26 -25
  24. package/dist/index.browser.cjs.js.map +1 -1
  25. package/dist/index.browser.esm.js +26 -25
  26. package/dist/index.browser.esm.js.map +1 -1
  27. package/dist/index.browser.esm2017.js +26 -25
  28. package/dist/index.browser.esm2017.js.map +1 -1
  29. package/dist/index.node.cjs.js +26 -25
  30. package/dist/index.node.cjs.js.map +1 -1
  31. package/dist/src/reference.d.ts +4 -4
  32. package/exp/dist/compat/reference.d.ts +4 -4
  33. package/exp/dist/exp/api.d.ts +26 -25
  34. package/exp/dist/exp/public-types.d.ts +1 -1
  35. package/exp/dist/index.browser.esm2017.js +25 -24
  36. package/exp/dist/index.browser.esm2017.js.map +1 -1
  37. package/exp/dist/index.browser.esm5.js +25 -24
  38. package/exp/dist/index.browser.esm5.js.map +1 -1
  39. package/exp/dist/index.node.cjs.js +25 -24
  40. package/exp/dist/index.node.cjs.js.map +1 -1
  41. package/exp/dist/src/reference.d.ts +4 -4
  42. package/exp/dist/storage-public.d.ts +27 -26
  43. package/exp/dist/storage.d.ts +27 -26
  44. package/package.json +2 -2
@@ -2805,7 +2805,7 @@ async function list$1(ref, options) {
2805
2805
  return (await ref.storage.makeRequestWithTokens(requestInfo)).getPromise();
2806
2806
  }
2807
2807
  /**
2808
- * A promise that resolves with the metadata for this object. If this
2808
+ * A `Promise` that resolves with the metadata for this object. If this
2809
2809
  * object doesn't exist or metadata cannot be retreived, the promise is
2810
2810
  * rejected.
2811
2811
  * @public
@@ -2823,7 +2823,7 @@ async function getMetadata$1(ref) {
2823
2823
  * @param metadata - The new metadata for the object.
2824
2824
  * Only values that have been explicitly set will be changed. Explicitly
2825
2825
  * setting a value to null will remove the metadata.
2826
- * @returns A promise that resolves
2826
+ * @returns A `Promise` that resolves
2827
2827
  * with the new metadata for this object.
2828
2828
  * See `firebaseStorage.Reference.prototype.getMetadata`
2829
2829
  */
@@ -2835,7 +2835,7 @@ async function updateMetadata$1(ref, metadata) {
2835
2835
  /**
2836
2836
  * Returns the download URL for the given Reference.
2837
2837
  * @public
2838
- * @returns A promise that resolves with the download
2838
+ * @returns A `Promise` that resolves with the download
2839
2839
  * URL for this object.
2840
2840
  */
2841
2841
  async function getDownloadURL$1(ref) {
@@ -2854,7 +2854,7 @@ async function getDownloadURL$1(ref) {
2854
2854
  * Deletes the object at this location.
2855
2855
  * @public
2856
2856
  * @param ref - StorageReference for object to delete.
2857
- * @returns A promise that resolves if the deletion succeeds.
2857
+ * @returns A `Promise` that resolves if the deletion succeeds.
2858
2858
  */
2859
2859
  async function deleteObject$1(ref) {
2860
2860
  ref._throwIfRoot('deleteObject');
@@ -3145,11 +3145,11 @@ function uploadBytesResumable(ref, data, metadata) {
3145
3145
  return uploadBytesResumable$1(ref, data, metadata);
3146
3146
  }
3147
3147
  /**
3148
- * A promise that resolves with the metadata for this object. If this
3148
+ * A `Promise` that resolves with the metadata for this object. If this
3149
3149
  * object doesn't exist or metadata cannot be retreived, the promise is
3150
3150
  * rejected.
3151
3151
  * @public
3152
- * @param ref - StorageReference to get metadata from.
3152
+ * @param ref - {@link StorageReference} to get metadata from.
3153
3153
  */
3154
3154
  function getMetadata(ref) {
3155
3155
  ref = getModularInstance(ref);
@@ -3158,11 +3158,11 @@ function getMetadata(ref) {
3158
3158
  /**
3159
3159
  * Updates the metadata for this object.
3160
3160
  * @public
3161
- * @param ref - StorageReference to update metadata for.
3161
+ * @param ref - {@link StorageReference} to update metadata for.
3162
3162
  * @param metadata - The new metadata for the object.
3163
3163
  * Only values that have been explicitly set will be changed. Explicitly
3164
3164
  * setting a value to null will remove the metadata.
3165
- * @returns A promise that resolves with the new metadata for this object.
3165
+ * @returns A `Promise` that resolves with the new metadata for this object.
3166
3166
  */
3167
3167
  function updateMetadata(ref, metadata) {
3168
3168
  ref = getModularInstance(ref);
@@ -3183,9 +3183,9 @@ function updateMetadata(ref, metadata) {
3183
3183
  * list() may fail if there are too many unsupported objects in the bucket.
3184
3184
  * @public
3185
3185
  *
3186
- * @param ref - StorageReference to get list from.
3187
- * @param options - See ListOptions for details.
3188
- * @returns A Promise that resolves with the items and prefixes.
3186
+ * @param ref - {@link StorageReference} to get list from.
3187
+ * @param options - See {@link ListOptions} for details.
3188
+ * @returns A `Promise` that resolves with the items and prefixes.
3189
3189
  * `prefixes` contains references to sub-folders and `items`
3190
3190
  * contains references to objects in this folder. `nextPageToken`
3191
3191
  * can be used to get the rest of the results.
@@ -3203,12 +3203,12 @@ function list(ref, options) {
3203
3203
  * Note: The results may not be consistent if objects are changed while this
3204
3204
  * operation is running.
3205
3205
  *
3206
- * Warning: listAll may potentially consume too many resources if there are
3206
+ * Warning: `listAll` may potentially consume too many resources if there are
3207
3207
  * too many results.
3208
3208
  * @public
3209
- * @param ref - StorageReference to get list from.
3209
+ * @param ref - {@link StorageReference} to get list from.
3210
3210
  *
3211
- * @returns A Promise that resolves with all the items and prefixes under
3211
+ * @returns A `Promise` that resolves with all the items and prefixes under
3212
3212
  * the current storage reference. `prefixes` contains references to
3213
3213
  * sub-directories and `items` contains references to objects in this
3214
3214
  * folder. `nextPageToken` is never returned.
@@ -3218,9 +3218,10 @@ function listAll(ref) {
3218
3218
  return listAll$1(ref);
3219
3219
  }
3220
3220
  /**
3221
- * Returns the download URL for the given Reference.
3221
+ * Returns the download URL for the given {@link StorageReference}.
3222
3222
  * @public
3223
- * @returns A promise that resolves with the download
3223
+ * @param ref - {@link StorageReference} to get the download URL for.
3224
+ * @returns A `Promise` that resolves with the download
3224
3225
  * URL for this object.
3225
3226
  */
3226
3227
  function getDownloadURL(ref) {
@@ -3230,8 +3231,8 @@ function getDownloadURL(ref) {
3230
3231
  /**
3231
3232
  * Deletes the object at this location.
3232
3233
  * @public
3233
- * @param ref - StorageReference for object to delete.
3234
- * @returns A promise that resolves if the deletion succeeds.
3234
+ * @param ref - {@link StorageReference} for object to delete.
3235
+ * @returns A `Promise` that resolves if the deletion succeeds.
3235
3236
  */
3236
3237
  function deleteObject(ref) {
3237
3238
  ref = getModularInstance(ref);
@@ -3248,9 +3249,9 @@ function _getChild(ref, childPath) {
3248
3249
  return _getChild$1(ref, childPath);
3249
3250
  }
3250
3251
  /**
3251
- * Modify this `StorageService` instance to communicate with the Cloud Storage emulator.
3252
+ * Modify this {@link FirebaseStorage} instance to communicate with the Cloud Storage emulator.
3252
3253
  *
3253
- * @param storage - The `StorageService` instance
3254
+ * @param storage - The {@link FirebaseStorage} instance
3254
3255
  * @param host - The emulator host (ex: localhost)
3255
3256
  * @param port - The emulator port (ex: 5001)
3256
3257
  * @param options.mockUserToken - the mock auth token to use for unit testing Security Rules.
@@ -3492,7 +3493,7 @@ class ReferenceCompat {
3492
3493
  return list(this._delegate, options || undefined).then(r => new ListResultCompat(r, this.storage));
3493
3494
  }
3494
3495
  /**
3495
- * A promise that resolves with the metadata for this object. If this
3496
+ * A `Promise` that resolves with the metadata for this object. If this
3496
3497
  * object doesn't exist or metadata cannot be retreived, the promise is
3497
3498
  * rejected.
3498
3499
  */
@@ -3504,7 +3505,7 @@ class ReferenceCompat {
3504
3505
  * @param metadata - The new metadata for the object.
3505
3506
  * Only values that have been explicitly set will be changed. Explicitly
3506
3507
  * setting a value to null will remove the metadata.
3507
- * @returns A promise that resolves
3508
+ * @returns A `Promise` that resolves
3508
3509
  * with the new metadata for this object.
3509
3510
  * @see firebaseStorage.Reference.prototype.getMetadata
3510
3511
  */
@@ -3512,7 +3513,7 @@ class ReferenceCompat {
3512
3513
  return updateMetadata(this._delegate, metadata);
3513
3514
  }
3514
3515
  /**
3515
- * @returns A promise that resolves with the download
3516
+ * @returns A `Promise` that resolves with the download
3516
3517
  * URL for this object.
3517
3518
  */
3518
3519
  getDownloadURL() {
@@ -3520,7 +3521,7 @@ class ReferenceCompat {
3520
3521
  }
3521
3522
  /**
3522
3523
  * Deletes the object at this location.
3523
- * @returns A promise that resolves if the deletion succeeds.
3524
+ * @returns A `Promise` that resolves if the deletion succeeds.
3524
3525
  */
3525
3526
  delete() {
3526
3527
  this._throwIfRoot('delete');
@@ -3602,7 +3603,7 @@ class StorageServiceCompat {
3602
3603
  }
3603
3604
 
3604
3605
  const name = "@firebase/storage";
3605
- const version = "0.7.0";
3606
+ const version = "0.7.1-2022028193537";
3606
3607
 
3607
3608
  /**
3608
3609
  * @license