@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
|
@@ -2926,7 +2926,7 @@ function list$1(ref, options) {
|
|
|
2926
2926
|
});
|
|
2927
2927
|
}
|
|
2928
2928
|
/**
|
|
2929
|
-
* A
|
|
2929
|
+
* A `Promise` that resolves with the metadata for this object. If this
|
|
2930
2930
|
* object doesn't exist or metadata cannot be retreived, the promise is
|
|
2931
2931
|
* rejected.
|
|
2932
2932
|
* @public
|
|
@@ -2953,7 +2953,7 @@ function getMetadata$1(ref) {
|
|
|
2953
2953
|
* @param metadata - The new metadata for the object.
|
|
2954
2954
|
* Only values that have been explicitly set will be changed. Explicitly
|
|
2955
2955
|
* setting a value to null will remove the metadata.
|
|
2956
|
-
* @returns A
|
|
2956
|
+
* @returns A `Promise` that resolves
|
|
2957
2957
|
* with the new metadata for this object.
|
|
2958
2958
|
* See `firebaseStorage.Reference.prototype.getMetadata`
|
|
2959
2959
|
*/
|
|
@@ -2974,7 +2974,7 @@ function updateMetadata$1(ref, metadata) {
|
|
|
2974
2974
|
/**
|
|
2975
2975
|
* Returns the download URL for the given Reference.
|
|
2976
2976
|
* @public
|
|
2977
|
-
* @returns A
|
|
2977
|
+
* @returns A `Promise` that resolves with the download
|
|
2978
2978
|
* URL for this object.
|
|
2979
2979
|
*/
|
|
2980
2980
|
function getDownloadURL$1(ref) {
|
|
@@ -3002,7 +3002,7 @@ function getDownloadURL$1(ref) {
|
|
|
3002
3002
|
* Deletes the object at this location.
|
|
3003
3003
|
* @public
|
|
3004
3004
|
* @param ref - StorageReference for object to delete.
|
|
3005
|
-
* @returns A
|
|
3005
|
+
* @returns A `Promise` that resolves if the deletion succeeds.
|
|
3006
3006
|
*/
|
|
3007
3007
|
function deleteObject$1(ref) {
|
|
3008
3008
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -3345,11 +3345,11 @@ function uploadBytesResumable(ref, data, metadata) {
|
|
|
3345
3345
|
return uploadBytesResumable$1(ref, data, metadata);
|
|
3346
3346
|
}
|
|
3347
3347
|
/**
|
|
3348
|
-
* A
|
|
3348
|
+
* A `Promise` that resolves with the metadata for this object. If this
|
|
3349
3349
|
* object doesn't exist or metadata cannot be retreived, the promise is
|
|
3350
3350
|
* rejected.
|
|
3351
3351
|
* @public
|
|
3352
|
-
* @param ref - StorageReference to get metadata from.
|
|
3352
|
+
* @param ref - {@link StorageReference} to get metadata from.
|
|
3353
3353
|
*/
|
|
3354
3354
|
function getMetadata(ref) {
|
|
3355
3355
|
ref = getModularInstance(ref);
|
|
@@ -3358,11 +3358,11 @@ function getMetadata(ref) {
|
|
|
3358
3358
|
/**
|
|
3359
3359
|
* Updates the metadata for this object.
|
|
3360
3360
|
* @public
|
|
3361
|
-
* @param ref - StorageReference to update metadata for.
|
|
3361
|
+
* @param ref - {@link StorageReference} to update metadata for.
|
|
3362
3362
|
* @param metadata - The new metadata for the object.
|
|
3363
3363
|
* Only values that have been explicitly set will be changed. Explicitly
|
|
3364
3364
|
* setting a value to null will remove the metadata.
|
|
3365
|
-
* @returns A
|
|
3365
|
+
* @returns A `Promise` that resolves with the new metadata for this object.
|
|
3366
3366
|
*/
|
|
3367
3367
|
function updateMetadata(ref, metadata) {
|
|
3368
3368
|
ref = getModularInstance(ref);
|
|
@@ -3383,9 +3383,9 @@ function updateMetadata(ref, metadata) {
|
|
|
3383
3383
|
* list() may fail if there are too many unsupported objects in the bucket.
|
|
3384
3384
|
* @public
|
|
3385
3385
|
*
|
|
3386
|
-
* @param ref - StorageReference to get list from.
|
|
3387
|
-
* @param options - See ListOptions for details.
|
|
3388
|
-
* @returns A Promise that resolves with the items and prefixes.
|
|
3386
|
+
* @param ref - {@link StorageReference} to get list from.
|
|
3387
|
+
* @param options - See {@link ListOptions} for details.
|
|
3388
|
+
* @returns A `Promise` that resolves with the items and prefixes.
|
|
3389
3389
|
* `prefixes` contains references to sub-folders and `items`
|
|
3390
3390
|
* contains references to objects in this folder. `nextPageToken`
|
|
3391
3391
|
* can be used to get the rest of the results.
|
|
@@ -3403,12 +3403,12 @@ function list(ref, options) {
|
|
|
3403
3403
|
* Note: The results may not be consistent if objects are changed while this
|
|
3404
3404
|
* operation is running.
|
|
3405
3405
|
*
|
|
3406
|
-
* Warning: listAll may potentially consume too many resources if there are
|
|
3406
|
+
* Warning: `listAll` may potentially consume too many resources if there are
|
|
3407
3407
|
* too many results.
|
|
3408
3408
|
* @public
|
|
3409
|
-
* @param ref - StorageReference to get list from.
|
|
3409
|
+
* @param ref - {@link StorageReference} to get list from.
|
|
3410
3410
|
*
|
|
3411
|
-
* @returns A Promise that resolves with all the items and prefixes under
|
|
3411
|
+
* @returns A `Promise` that resolves with all the items and prefixes under
|
|
3412
3412
|
* the current storage reference. `prefixes` contains references to
|
|
3413
3413
|
* sub-directories and `items` contains references to objects in this
|
|
3414
3414
|
* folder. `nextPageToken` is never returned.
|
|
@@ -3418,9 +3418,10 @@ function listAll(ref) {
|
|
|
3418
3418
|
return listAll$1(ref);
|
|
3419
3419
|
}
|
|
3420
3420
|
/**
|
|
3421
|
-
* Returns the download URL for the given
|
|
3421
|
+
* Returns the download URL for the given {@link StorageReference}.
|
|
3422
3422
|
* @public
|
|
3423
|
-
* @
|
|
3423
|
+
* @param ref - {@link StorageReference} to get the download URL for.
|
|
3424
|
+
* @returns A `Promise` that resolves with the download
|
|
3424
3425
|
* URL for this object.
|
|
3425
3426
|
*/
|
|
3426
3427
|
function getDownloadURL(ref) {
|
|
@@ -3430,8 +3431,8 @@ function getDownloadURL(ref) {
|
|
|
3430
3431
|
/**
|
|
3431
3432
|
* Deletes the object at this location.
|
|
3432
3433
|
* @public
|
|
3433
|
-
* @param ref - StorageReference for object to delete.
|
|
3434
|
-
* @returns A
|
|
3434
|
+
* @param ref - {@link StorageReference} for object to delete.
|
|
3435
|
+
* @returns A `Promise` that resolves if the deletion succeeds.
|
|
3435
3436
|
*/
|
|
3436
3437
|
function deleteObject(ref) {
|
|
3437
3438
|
ref = getModularInstance(ref);
|
|
@@ -3448,9 +3449,9 @@ function _getChild(ref, childPath) {
|
|
|
3448
3449
|
return _getChild$1(ref, childPath);
|
|
3449
3450
|
}
|
|
3450
3451
|
/**
|
|
3451
|
-
* Modify this
|
|
3452
|
+
* Modify this {@link FirebaseStorage} instance to communicate with the Cloud Storage emulator.
|
|
3452
3453
|
*
|
|
3453
|
-
* @param storage - The
|
|
3454
|
+
* @param storage - The {@link FirebaseStorage} instance
|
|
3454
3455
|
* @param host - The emulator host (ex: localhost)
|
|
3455
3456
|
* @param port - The emulator port (ex: 5001)
|
|
3456
3457
|
* @param options.mockUserToken - the mock auth token to use for unit testing Security Rules.
|
|
@@ -3759,7 +3760,7 @@ var ReferenceCompat = /** @class */ (function () {
|
|
|
3759
3760
|
return list(this._delegate, options || undefined).then(function (r) { return new ListResultCompat(r, _this.storage); });
|
|
3760
3761
|
};
|
|
3761
3762
|
/**
|
|
3762
|
-
* A
|
|
3763
|
+
* A `Promise` that resolves with the metadata for this object. If this
|
|
3763
3764
|
* object doesn't exist or metadata cannot be retreived, the promise is
|
|
3764
3765
|
* rejected.
|
|
3765
3766
|
*/
|
|
@@ -3771,7 +3772,7 @@ var ReferenceCompat = /** @class */ (function () {
|
|
|
3771
3772
|
* @param metadata - The new metadata for the object.
|
|
3772
3773
|
* Only values that have been explicitly set will be changed. Explicitly
|
|
3773
3774
|
* setting a value to null will remove the metadata.
|
|
3774
|
-
* @returns A
|
|
3775
|
+
* @returns A `Promise` that resolves
|
|
3775
3776
|
* with the new metadata for this object.
|
|
3776
3777
|
* @see firebaseStorage.Reference.prototype.getMetadata
|
|
3777
3778
|
*/
|
|
@@ -3779,7 +3780,7 @@ var ReferenceCompat = /** @class */ (function () {
|
|
|
3779
3780
|
return updateMetadata(this._delegate, metadata);
|
|
3780
3781
|
};
|
|
3781
3782
|
/**
|
|
3782
|
-
* @returns A
|
|
3783
|
+
* @returns A `Promise` that resolves with the download
|
|
3783
3784
|
* URL for this object.
|
|
3784
3785
|
*/
|
|
3785
3786
|
ReferenceCompat.prototype.getDownloadURL = function () {
|
|
@@ -3787,7 +3788,7 @@ var ReferenceCompat = /** @class */ (function () {
|
|
|
3787
3788
|
};
|
|
3788
3789
|
/**
|
|
3789
3790
|
* Deletes the object at this location.
|
|
3790
|
-
* @returns A
|
|
3791
|
+
* @returns A `Promise` that resolves if the deletion succeeds.
|
|
3791
3792
|
*/
|
|
3792
3793
|
ReferenceCompat.prototype.delete = function () {
|
|
3793
3794
|
this._throwIfRoot('delete');
|
|
@@ -3880,7 +3881,7 @@ var StorageServiceCompat = /** @class */ (function () {
|
|
|
3880
3881
|
}());
|
|
3881
3882
|
|
|
3882
3883
|
var name = "@firebase/storage";
|
|
3883
|
-
var version = "0.7.
|
|
3884
|
+
var version = "0.7.1-2022028193537";
|
|
3884
3885
|
|
|
3885
3886
|
/**
|
|
3886
3887
|
* @license
|