@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
package/dist/index.node.cjs.js
CHANGED
|
@@ -2800,7 +2800,7 @@ async function list$1(ref, options) {
|
|
|
2800
2800
|
return (await ref.storage.makeRequestWithTokens(requestInfo)).getPromise();
|
|
2801
2801
|
}
|
|
2802
2802
|
/**
|
|
2803
|
-
* A
|
|
2803
|
+
* A `Promise` that resolves with the metadata for this object. If this
|
|
2804
2804
|
* object doesn't exist or metadata cannot be retreived, the promise is
|
|
2805
2805
|
* rejected.
|
|
2806
2806
|
* @public
|
|
@@ -2818,7 +2818,7 @@ async function getMetadata$1(ref) {
|
|
|
2818
2818
|
* @param metadata - The new metadata for the object.
|
|
2819
2819
|
* Only values that have been explicitly set will be changed. Explicitly
|
|
2820
2820
|
* setting a value to null will remove the metadata.
|
|
2821
|
-
* @returns A
|
|
2821
|
+
* @returns A `Promise` that resolves
|
|
2822
2822
|
* with the new metadata for this object.
|
|
2823
2823
|
* See `firebaseStorage.Reference.prototype.getMetadata`
|
|
2824
2824
|
*/
|
|
@@ -2830,7 +2830,7 @@ async function updateMetadata$1(ref, metadata) {
|
|
|
2830
2830
|
/**
|
|
2831
2831
|
* Returns the download URL for the given Reference.
|
|
2832
2832
|
* @public
|
|
2833
|
-
* @returns A
|
|
2833
|
+
* @returns A `Promise` that resolves with the download
|
|
2834
2834
|
* URL for this object.
|
|
2835
2835
|
*/
|
|
2836
2836
|
async function getDownloadURL$1(ref) {
|
|
@@ -2849,7 +2849,7 @@ async function getDownloadURL$1(ref) {
|
|
|
2849
2849
|
* Deletes the object at this location.
|
|
2850
2850
|
* @public
|
|
2851
2851
|
* @param ref - StorageReference for object to delete.
|
|
2852
|
-
* @returns A
|
|
2852
|
+
* @returns A `Promise` that resolves if the deletion succeeds.
|
|
2853
2853
|
*/
|
|
2854
2854
|
async function deleteObject$1(ref) {
|
|
2855
2855
|
ref._throwIfRoot('deleteObject');
|
|
@@ -3140,11 +3140,11 @@ function uploadBytesResumable(ref, data, metadata) {
|
|
|
3140
3140
|
return uploadBytesResumable$1(ref, data, metadata);
|
|
3141
3141
|
}
|
|
3142
3142
|
/**
|
|
3143
|
-
* A
|
|
3143
|
+
* A `Promise` that resolves with the metadata for this object. If this
|
|
3144
3144
|
* object doesn't exist or metadata cannot be retreived, the promise is
|
|
3145
3145
|
* rejected.
|
|
3146
3146
|
* @public
|
|
3147
|
-
* @param ref - StorageReference to get metadata from.
|
|
3147
|
+
* @param ref - {@link StorageReference} to get metadata from.
|
|
3148
3148
|
*/
|
|
3149
3149
|
function getMetadata(ref) {
|
|
3150
3150
|
ref = util.getModularInstance(ref);
|
|
@@ -3153,11 +3153,11 @@ function getMetadata(ref) {
|
|
|
3153
3153
|
/**
|
|
3154
3154
|
* Updates the metadata for this object.
|
|
3155
3155
|
* @public
|
|
3156
|
-
* @param ref - StorageReference to update metadata for.
|
|
3156
|
+
* @param ref - {@link StorageReference} to update metadata for.
|
|
3157
3157
|
* @param metadata - The new metadata for the object.
|
|
3158
3158
|
* Only values that have been explicitly set will be changed. Explicitly
|
|
3159
3159
|
* setting a value to null will remove the metadata.
|
|
3160
|
-
* @returns A
|
|
3160
|
+
* @returns A `Promise` that resolves with the new metadata for this object.
|
|
3161
3161
|
*/
|
|
3162
3162
|
function updateMetadata(ref, metadata) {
|
|
3163
3163
|
ref = util.getModularInstance(ref);
|
|
@@ -3178,9 +3178,9 @@ function updateMetadata(ref, metadata) {
|
|
|
3178
3178
|
* list() may fail if there are too many unsupported objects in the bucket.
|
|
3179
3179
|
* @public
|
|
3180
3180
|
*
|
|
3181
|
-
* @param ref - StorageReference to get list from.
|
|
3182
|
-
* @param options - See ListOptions for details.
|
|
3183
|
-
* @returns A Promise that resolves with the items and prefixes.
|
|
3181
|
+
* @param ref - {@link StorageReference} to get list from.
|
|
3182
|
+
* @param options - See {@link ListOptions} for details.
|
|
3183
|
+
* @returns A `Promise` that resolves with the items and prefixes.
|
|
3184
3184
|
* `prefixes` contains references to sub-folders and `items`
|
|
3185
3185
|
* contains references to objects in this folder. `nextPageToken`
|
|
3186
3186
|
* can be used to get the rest of the results.
|
|
@@ -3198,12 +3198,12 @@ function list(ref, options) {
|
|
|
3198
3198
|
* Note: The results may not be consistent if objects are changed while this
|
|
3199
3199
|
* operation is running.
|
|
3200
3200
|
*
|
|
3201
|
-
* Warning: listAll may potentially consume too many resources if there are
|
|
3201
|
+
* Warning: `listAll` may potentially consume too many resources if there are
|
|
3202
3202
|
* too many results.
|
|
3203
3203
|
* @public
|
|
3204
|
-
* @param ref - StorageReference to get list from.
|
|
3204
|
+
* @param ref - {@link StorageReference} to get list from.
|
|
3205
3205
|
*
|
|
3206
|
-
* @returns A Promise that resolves with all the items and prefixes under
|
|
3206
|
+
* @returns A `Promise` that resolves with all the items and prefixes under
|
|
3207
3207
|
* the current storage reference. `prefixes` contains references to
|
|
3208
3208
|
* sub-directories and `items` contains references to objects in this
|
|
3209
3209
|
* folder. `nextPageToken` is never returned.
|
|
@@ -3213,9 +3213,10 @@ function listAll(ref) {
|
|
|
3213
3213
|
return listAll$1(ref);
|
|
3214
3214
|
}
|
|
3215
3215
|
/**
|
|
3216
|
-
* Returns the download URL for the given
|
|
3216
|
+
* Returns the download URL for the given {@link StorageReference}.
|
|
3217
3217
|
* @public
|
|
3218
|
-
* @
|
|
3218
|
+
* @param ref - {@link StorageReference} to get the download URL for.
|
|
3219
|
+
* @returns A `Promise` that resolves with the download
|
|
3219
3220
|
* URL for this object.
|
|
3220
3221
|
*/
|
|
3221
3222
|
function getDownloadURL(ref) {
|
|
@@ -3225,8 +3226,8 @@ function getDownloadURL(ref) {
|
|
|
3225
3226
|
/**
|
|
3226
3227
|
* Deletes the object at this location.
|
|
3227
3228
|
* @public
|
|
3228
|
-
* @param ref - StorageReference for object to delete.
|
|
3229
|
-
* @returns A
|
|
3229
|
+
* @param ref - {@link StorageReference} for object to delete.
|
|
3230
|
+
* @returns A `Promise` that resolves if the deletion succeeds.
|
|
3230
3231
|
*/
|
|
3231
3232
|
function deleteObject(ref) {
|
|
3232
3233
|
ref = util.getModularInstance(ref);
|
|
@@ -3243,9 +3244,9 @@ function _getChild(ref, childPath) {
|
|
|
3243
3244
|
return _getChild$1(ref, childPath);
|
|
3244
3245
|
}
|
|
3245
3246
|
/**
|
|
3246
|
-
* Modify this
|
|
3247
|
+
* Modify this {@link FirebaseStorage} instance to communicate with the Cloud Storage emulator.
|
|
3247
3248
|
*
|
|
3248
|
-
* @param storage - The
|
|
3249
|
+
* @param storage - The {@link FirebaseStorage} instance
|
|
3249
3250
|
* @param host - The emulator host (ex: localhost)
|
|
3250
3251
|
* @param port - The emulator port (ex: 5001)
|
|
3251
3252
|
* @param options.mockUserToken - the mock auth token to use for unit testing Security Rules.
|
|
@@ -3487,7 +3488,7 @@ class ReferenceCompat {
|
|
|
3487
3488
|
return list(this._delegate, options || undefined).then(r => new ListResultCompat(r, this.storage));
|
|
3488
3489
|
}
|
|
3489
3490
|
/**
|
|
3490
|
-
* A
|
|
3491
|
+
* A `Promise` that resolves with the metadata for this object. If this
|
|
3491
3492
|
* object doesn't exist or metadata cannot be retreived, the promise is
|
|
3492
3493
|
* rejected.
|
|
3493
3494
|
*/
|
|
@@ -3499,7 +3500,7 @@ class ReferenceCompat {
|
|
|
3499
3500
|
* @param metadata - The new metadata for the object.
|
|
3500
3501
|
* Only values that have been explicitly set will be changed. Explicitly
|
|
3501
3502
|
* setting a value to null will remove the metadata.
|
|
3502
|
-
* @returns A
|
|
3503
|
+
* @returns A `Promise` that resolves
|
|
3503
3504
|
* with the new metadata for this object.
|
|
3504
3505
|
* @see firebaseStorage.Reference.prototype.getMetadata
|
|
3505
3506
|
*/
|
|
@@ -3507,7 +3508,7 @@ class ReferenceCompat {
|
|
|
3507
3508
|
return updateMetadata(this._delegate, metadata);
|
|
3508
3509
|
}
|
|
3509
3510
|
/**
|
|
3510
|
-
* @returns A
|
|
3511
|
+
* @returns A `Promise` that resolves with the download
|
|
3511
3512
|
* URL for this object.
|
|
3512
3513
|
*/
|
|
3513
3514
|
getDownloadURL() {
|
|
@@ -3515,7 +3516,7 @@ class ReferenceCompat {
|
|
|
3515
3516
|
}
|
|
3516
3517
|
/**
|
|
3517
3518
|
* Deletes the object at this location.
|
|
3518
|
-
* @returns A
|
|
3519
|
+
* @returns A `Promise` that resolves if the deletion succeeds.
|
|
3519
3520
|
*/
|
|
3520
3521
|
delete() {
|
|
3521
3522
|
this._throwIfRoot('delete');
|
|
@@ -3597,7 +3598,7 @@ class StorageServiceCompat {
|
|
|
3597
3598
|
}
|
|
3598
3599
|
|
|
3599
3600
|
const name = "@firebase/storage";
|
|
3600
|
-
const version = "0.7.
|
|
3601
|
+
const version = "0.7.1-2022028193537";
|
|
3601
3602
|
|
|
3602
3603
|
/**
|
|
3603
3604
|
* @license
|