@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
@@ -2950,7 +2950,7 @@ function list$1(ref, options) {
2950
2950
  });
2951
2951
  }
2952
2952
  /**
2953
- * A promise that resolves with the metadata for this object. If this
2953
+ * A `Promise` that resolves with the metadata for this object. If this
2954
2954
  * object doesn't exist or metadata cannot be retreived, the promise is
2955
2955
  * rejected.
2956
2956
  * @public
@@ -2977,7 +2977,7 @@ function getMetadata$1(ref) {
2977
2977
  * @param metadata - The new metadata for the object.
2978
2978
  * Only values that have been explicitly set will be changed. Explicitly
2979
2979
  * setting a value to null will remove the metadata.
2980
- * @returns A promise that resolves
2980
+ * @returns A `Promise` that resolves
2981
2981
  * with the new metadata for this object.
2982
2982
  * See `firebaseStorage.Reference.prototype.getMetadata`
2983
2983
  */
@@ -2998,7 +2998,7 @@ function updateMetadata$1(ref, metadata) {
2998
2998
  /**
2999
2999
  * Returns the download URL for the given Reference.
3000
3000
  * @public
3001
- * @returns A promise that resolves with the download
3001
+ * @returns A `Promise` that resolves with the download
3002
3002
  * URL for this object.
3003
3003
  */
3004
3004
  function getDownloadURL$1(ref) {
@@ -3026,7 +3026,7 @@ function getDownloadURL$1(ref) {
3026
3026
  * Deletes the object at this location.
3027
3027
  * @public
3028
3028
  * @param ref - StorageReference for object to delete.
3029
- * @returns A promise that resolves if the deletion succeeds.
3029
+ * @returns A `Promise` that resolves if the deletion succeeds.
3030
3030
  */
3031
3031
  function deleteObject$1(ref) {
3032
3032
  return __awaiter(this, void 0, void 0, function () {
@@ -3340,7 +3340,7 @@ var FirebaseStorageImpl = /** @class */ (function () {
3340
3340
  }());
3341
3341
 
3342
3342
  var name = "@firebase/storage";
3343
- var version = "0.7.0";
3343
+ var version = "0.7.1-2022028193537";
3344
3344
 
3345
3345
  /**
3346
3346
  * @license
@@ -3420,11 +3420,11 @@ function uploadBytesResumable(ref, data, metadata) {
3420
3420
  return uploadBytesResumable$1(ref, data, metadata);
3421
3421
  }
3422
3422
  /**
3423
- * A promise that resolves with the metadata for this object. If this
3423
+ * A `Promise` that resolves with the metadata for this object. If this
3424
3424
  * object doesn't exist or metadata cannot be retreived, the promise is
3425
3425
  * rejected.
3426
3426
  * @public
3427
- * @param ref - StorageReference to get metadata from.
3427
+ * @param ref - {@link StorageReference} to get metadata from.
3428
3428
  */
3429
3429
  function getMetadata(ref) {
3430
3430
  ref = getModularInstance(ref);
@@ -3433,11 +3433,11 @@ function getMetadata(ref) {
3433
3433
  /**
3434
3434
  * Updates the metadata for this object.
3435
3435
  * @public
3436
- * @param ref - StorageReference to update metadata for.
3436
+ * @param ref - {@link StorageReference} to update metadata for.
3437
3437
  * @param metadata - The new metadata for the object.
3438
3438
  * Only values that have been explicitly set will be changed. Explicitly
3439
3439
  * setting a value to null will remove the metadata.
3440
- * @returns A promise that resolves with the new metadata for this object.
3440
+ * @returns A `Promise` that resolves with the new metadata for this object.
3441
3441
  */
3442
3442
  function updateMetadata(ref, metadata) {
3443
3443
  ref = getModularInstance(ref);
@@ -3458,9 +3458,9 @@ function updateMetadata(ref, metadata) {
3458
3458
  * list() may fail if there are too many unsupported objects in the bucket.
3459
3459
  * @public
3460
3460
  *
3461
- * @param ref - StorageReference to get list from.
3462
- * @param options - See ListOptions for details.
3463
- * @returns A Promise that resolves with the items and prefixes.
3461
+ * @param ref - {@link StorageReference} to get list from.
3462
+ * @param options - See {@link ListOptions} for details.
3463
+ * @returns A `Promise` that resolves with the items and prefixes.
3464
3464
  * `prefixes` contains references to sub-folders and `items`
3465
3465
  * contains references to objects in this folder. `nextPageToken`
3466
3466
  * can be used to get the rest of the results.
@@ -3478,12 +3478,12 @@ function list(ref, options) {
3478
3478
  * Note: The results may not be consistent if objects are changed while this
3479
3479
  * operation is running.
3480
3480
  *
3481
- * Warning: listAll may potentially consume too many resources if there are
3481
+ * Warning: `listAll` may potentially consume too many resources if there are
3482
3482
  * too many results.
3483
3483
  * @public
3484
- * @param ref - StorageReference to get list from.
3484
+ * @param ref - {@link StorageReference} to get list from.
3485
3485
  *
3486
- * @returns A Promise that resolves with all the items and prefixes under
3486
+ * @returns A `Promise` that resolves with all the items and prefixes under
3487
3487
  * the current storage reference. `prefixes` contains references to
3488
3488
  * sub-directories and `items` contains references to objects in this
3489
3489
  * folder. `nextPageToken` is never returned.
@@ -3493,9 +3493,10 @@ function listAll(ref) {
3493
3493
  return listAll$1(ref);
3494
3494
  }
3495
3495
  /**
3496
- * Returns the download URL for the given Reference.
3496
+ * Returns the download URL for the given {@link StorageReference}.
3497
3497
  * @public
3498
- * @returns A promise that resolves with the download
3498
+ * @param ref - {@link StorageReference} to get the download URL for.
3499
+ * @returns A `Promise` that resolves with the download
3499
3500
  * URL for this object.
3500
3501
  */
3501
3502
  function getDownloadURL(ref) {
@@ -3505,8 +3506,8 @@ function getDownloadURL(ref) {
3505
3506
  /**
3506
3507
  * Deletes the object at this location.
3507
3508
  * @public
3508
- * @param ref - StorageReference for object to delete.
3509
- * @returns A promise that resolves if the deletion succeeds.
3509
+ * @param ref - {@link StorageReference} for object to delete.
3510
+ * @returns A `Promise` that resolves if the deletion succeeds.
3510
3511
  */
3511
3512
  function deleteObject(ref) {
3512
3513
  ref = getModularInstance(ref);
@@ -3523,12 +3524,12 @@ function _getChild(ref, childPath) {
3523
3524
  return _getChild$1(ref, childPath);
3524
3525
  }
3525
3526
  /**
3526
- * Gets a Firebase StorageService instance for the given Firebase app.
3527
+ * Gets a {@link FirebaseStorage} instance for the given Firebase app.
3527
3528
  * @public
3528
- * @param app - Firebase app to get Storage instance for.
3529
+ * @param app - Firebase app to get {@link FirebaseStorage} instance for.
3529
3530
  * @param bucketUrl - The gs:// url to your Firebase Storage Bucket.
3530
3531
  * If not passed, uses the app's default Storage Bucket.
3531
- * @returns A Firebase StorageService instance.
3532
+ * @returns A {@link FirebaseStorage} instance.
3532
3533
  */
3533
3534
  function getStorage(app, bucketUrl) {
3534
3535
  if (app === void 0) { app = getApp(); }
@@ -3540,9 +3541,9 @@ function getStorage(app, bucketUrl) {
3540
3541
  return storageInstance;
3541
3542
  }
3542
3543
  /**
3543
- * Modify this `StorageService` instance to communicate with the Cloud Storage emulator.
3544
+ * Modify this {@link FirebaseStorage} instance to communicate with the Cloud Storage emulator.
3544
3545
  *
3545
- * @param storage - The `StorageService` instance
3546
+ * @param storage - The {@link FirebaseStorage} instance
3546
3547
  * @param host - The emulator host (ex: localhost)
3547
3548
  * @param port - The emulator port (ex: 5001)
3548
3549
  * @param options.mockUserToken - the mock auth token to use for unit testing Security Rules.