@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
@@ -2820,7 +2820,7 @@ async function list$1(ref, options) {
2820
2820
  return (await ref.storage.makeRequestWithTokens(requestInfo)).getPromise();
2821
2821
  }
2822
2822
  /**
2823
- * A promise that resolves with the metadata for this object. If this
2823
+ * A `Promise` that resolves with the metadata for this object. If this
2824
2824
  * object doesn't exist or metadata cannot be retreived, the promise is
2825
2825
  * rejected.
2826
2826
  * @public
@@ -2838,7 +2838,7 @@ async function getMetadata$1(ref) {
2838
2838
  * @param metadata - The new metadata for the object.
2839
2839
  * Only values that have been explicitly set will be changed. Explicitly
2840
2840
  * setting a value to null will remove the metadata.
2841
- * @returns A promise that resolves
2841
+ * @returns A `Promise` that resolves
2842
2842
  * with the new metadata for this object.
2843
2843
  * See `firebaseStorage.Reference.prototype.getMetadata`
2844
2844
  */
@@ -2850,7 +2850,7 @@ async function updateMetadata$1(ref, metadata) {
2850
2850
  /**
2851
2851
  * Returns the download URL for the given Reference.
2852
2852
  * @public
2853
- * @returns A promise that resolves with the download
2853
+ * @returns A `Promise` that resolves with the download
2854
2854
  * URL for this object.
2855
2855
  */
2856
2856
  async function getDownloadURL$1(ref) {
@@ -2869,7 +2869,7 @@ async function getDownloadURL$1(ref) {
2869
2869
  * Deletes the object at this location.
2870
2870
  * @public
2871
2871
  * @param ref - StorageReference for object to delete.
2872
- * @returns A promise that resolves if the deletion succeeds.
2872
+ * @returns A `Promise` that resolves if the deletion succeeds.
2873
2873
  */
2874
2874
  async function deleteObject$1(ref) {
2875
2875
  ref._throwIfRoot('deleteObject');
@@ -3131,7 +3131,7 @@ class FirebaseStorageImpl {
3131
3131
  }
3132
3132
 
3133
3133
  const name = "@firebase/storage";
3134
- const version = "0.7.0";
3134
+ const version = "0.7.1-2022028193537";
3135
3135
 
3136
3136
  /**
3137
3137
  * @license
@@ -3211,11 +3211,11 @@ function uploadBytesResumable(ref, data, metadata) {
3211
3211
  return uploadBytesResumable$1(ref, data, metadata);
3212
3212
  }
3213
3213
  /**
3214
- * A promise that resolves with the metadata for this object. If this
3214
+ * A `Promise` that resolves with the metadata for this object. If this
3215
3215
  * object doesn't exist or metadata cannot be retreived, the promise is
3216
3216
  * rejected.
3217
3217
  * @public
3218
- * @param ref - StorageReference to get metadata from.
3218
+ * @param ref - {@link StorageReference} to get metadata from.
3219
3219
  */
3220
3220
  function getMetadata(ref) {
3221
3221
  ref = util.getModularInstance(ref);
@@ -3224,11 +3224,11 @@ function getMetadata(ref) {
3224
3224
  /**
3225
3225
  * Updates the metadata for this object.
3226
3226
  * @public
3227
- * @param ref - StorageReference to update metadata for.
3227
+ * @param ref - {@link StorageReference} to update metadata for.
3228
3228
  * @param metadata - The new metadata for the object.
3229
3229
  * Only values that have been explicitly set will be changed. Explicitly
3230
3230
  * setting a value to null will remove the metadata.
3231
- * @returns A promise that resolves with the new metadata for this object.
3231
+ * @returns A `Promise` that resolves with the new metadata for this object.
3232
3232
  */
3233
3233
  function updateMetadata(ref, metadata) {
3234
3234
  ref = util.getModularInstance(ref);
@@ -3249,9 +3249,9 @@ function updateMetadata(ref, metadata) {
3249
3249
  * list() may fail if there are too many unsupported objects in the bucket.
3250
3250
  * @public
3251
3251
  *
3252
- * @param ref - StorageReference to get list from.
3253
- * @param options - See ListOptions for details.
3254
- * @returns A Promise that resolves with the items and prefixes.
3252
+ * @param ref - {@link StorageReference} to get list from.
3253
+ * @param options - See {@link ListOptions} for details.
3254
+ * @returns A `Promise` that resolves with the items and prefixes.
3255
3255
  * `prefixes` contains references to sub-folders and `items`
3256
3256
  * contains references to objects in this folder. `nextPageToken`
3257
3257
  * can be used to get the rest of the results.
@@ -3269,12 +3269,12 @@ function list(ref, options) {
3269
3269
  * Note: The results may not be consistent if objects are changed while this
3270
3270
  * operation is running.
3271
3271
  *
3272
- * Warning: listAll may potentially consume too many resources if there are
3272
+ * Warning: `listAll` may potentially consume too many resources if there are
3273
3273
  * too many results.
3274
3274
  * @public
3275
- * @param ref - StorageReference to get list from.
3275
+ * @param ref - {@link StorageReference} to get list from.
3276
3276
  *
3277
- * @returns A Promise that resolves with all the items and prefixes under
3277
+ * @returns A `Promise` that resolves with all the items and prefixes under
3278
3278
  * the current storage reference. `prefixes` contains references to
3279
3279
  * sub-directories and `items` contains references to objects in this
3280
3280
  * folder. `nextPageToken` is never returned.
@@ -3284,9 +3284,10 @@ function listAll(ref) {
3284
3284
  return listAll$1(ref);
3285
3285
  }
3286
3286
  /**
3287
- * Returns the download URL for the given Reference.
3287
+ * Returns the download URL for the given {@link StorageReference}.
3288
3288
  * @public
3289
- * @returns A promise that resolves with the download
3289
+ * @param ref - {@link StorageReference} to get the download URL for.
3290
+ * @returns A `Promise` that resolves with the download
3290
3291
  * URL for this object.
3291
3292
  */
3292
3293
  function getDownloadURL(ref) {
@@ -3296,8 +3297,8 @@ function getDownloadURL(ref) {
3296
3297
  /**
3297
3298
  * Deletes the object at this location.
3298
3299
  * @public
3299
- * @param ref - StorageReference for object to delete.
3300
- * @returns A promise that resolves if the deletion succeeds.
3300
+ * @param ref - {@link StorageReference} for object to delete.
3301
+ * @returns A `Promise` that resolves if the deletion succeeds.
3301
3302
  */
3302
3303
  function deleteObject(ref) {
3303
3304
  ref = util.getModularInstance(ref);
@@ -3314,12 +3315,12 @@ function _getChild(ref, childPath) {
3314
3315
  return _getChild$1(ref, childPath);
3315
3316
  }
3316
3317
  /**
3317
- * Gets a Firebase StorageService instance for the given Firebase app.
3318
+ * Gets a {@link FirebaseStorage} instance for the given Firebase app.
3318
3319
  * @public
3319
- * @param app - Firebase app to get Storage instance for.
3320
+ * @param app - Firebase app to get {@link FirebaseStorage} instance for.
3320
3321
  * @param bucketUrl - The gs:// url to your Firebase Storage Bucket.
3321
3322
  * If not passed, uses the app's default Storage Bucket.
3322
- * @returns A Firebase StorageService instance.
3323
+ * @returns A {@link FirebaseStorage} instance.
3323
3324
  */
3324
3325
  function getStorage(app$1 = app.getApp(), bucketUrl) {
3325
3326
  app$1 = util.getModularInstance(app$1);
@@ -3330,9 +3331,9 @@ function getStorage(app$1 = app.getApp(), bucketUrl) {
3330
3331
  return storageInstance;
3331
3332
  }
3332
3333
  /**
3333
- * Modify this `StorageService` instance to communicate with the Cloud Storage emulator.
3334
+ * Modify this {@link FirebaseStorage} instance to communicate with the Cloud Storage emulator.
3334
3335
  *
3335
- * @param storage - The `StorageService` instance
3336
+ * @param storage - The {@link FirebaseStorage} instance
3336
3337
  * @param host - The emulator host (ex: localhost)
3337
3338
  * @param port - The emulator port (ex: 5001)
3338
3339
  * @param options.mockUserToken - the mock auth token to use for unit testing Security Rules.