@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.
- package/CHANGELOG.md +6 -0
- package/dist/compat/cjs/compat/reference.d.ts +4 -4
- package/dist/compat/cjs/exp/api.d.ts +26 -25
- package/dist/compat/cjs/exp/public-types.d.ts +1 -1
- package/dist/compat/cjs/index.js +4 -4
- package/dist/compat/cjs/index.js.map +1 -1
- package/dist/compat/cjs/src/reference.d.ts +4 -4
- package/dist/compat/esm2017/compat/reference.d.ts +4 -4
- package/dist/compat/esm2017/exp/api.d.ts +26 -25
- package/dist/compat/esm2017/exp/public-types.d.ts +1 -1
- package/dist/compat/esm2017/index.js +4 -4
- package/dist/compat/esm2017/index.js.map +1 -1
- package/dist/compat/esm2017/src/reference.d.ts +4 -4
- package/dist/compat/esm5/compat/reference.d.ts +4 -4
- package/dist/compat/esm5/exp/api.d.ts +26 -25
- package/dist/compat/esm5/exp/public-types.d.ts +1 -1
- package/dist/compat/esm5/index.js +4 -4
- package/dist/compat/esm5/index.js.map +1 -1
- package/dist/compat/esm5/src/reference.d.ts +4 -4
- package/dist/compat/reference.d.ts +4 -4
- package/dist/exp/api.d.ts +26 -25
- package/dist/exp/public-types.d.ts +1 -1
- package/dist/index.browser.cjs.js +26 -25
- package/dist/index.browser.cjs.js.map +1 -1
- package/dist/index.browser.esm.js +26 -25
- package/dist/index.browser.esm.js.map +1 -1
- package/dist/index.browser.esm2017.js +26 -25
- package/dist/index.browser.esm2017.js.map +1 -1
- package/dist/index.node.cjs.js +26 -25
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/src/reference.d.ts +4 -4
- package/exp/dist/compat/reference.d.ts +4 -4
- package/exp/dist/exp/api.d.ts +26 -25
- package/exp/dist/exp/public-types.d.ts +1 -1
- package/exp/dist/index.browser.esm2017.js +25 -24
- package/exp/dist/index.browser.esm2017.js.map +1 -1
- package/exp/dist/index.browser.esm5.js +25 -24
- package/exp/dist/index.browser.esm5.js.map +1 -1
- package/exp/dist/index.node.cjs.js +25 -24
- package/exp/dist/index.node.cjs.js.map +1 -1
- package/exp/dist/src/reference.d.ts +4 -4
- package/exp/dist/storage-public.d.ts +27 -26
- package/exp/dist/storage.d.ts +27 -26
- package/package.json +2 -2
|
@@ -2950,7 +2950,7 @@ function list$1(ref, options) {
|
|
|
2950
2950
|
});
|
|
2951
2951
|
}
|
|
2952
2952
|
/**
|
|
2953
|
-
* A
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
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
|
|
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
|
|
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
|
|
3496
|
+
* Returns the download URL for the given {@link StorageReference}.
|
|
3497
3497
|
* @public
|
|
3498
|
-
* @
|
|
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
|
|
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
|
|
3527
|
+
* Gets a {@link FirebaseStorage} instance for the given Firebase app.
|
|
3527
3528
|
* @public
|
|
3528
|
-
* @param app - Firebase app to get
|
|
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
|
|
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
|
|
3544
|
+
* Modify this {@link FirebaseStorage} instance to communicate with the Cloud Storage emulator.
|
|
3544
3545
|
*
|
|
3545
|
-
* @param storage - The
|
|
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.
|