@firebase/storage 0.9.0 → 0.9.1-202202014332
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 +10 -0
- package/dist/index.browser.cjs.js +17 -1
- package/dist/index.browser.cjs.js.map +1 -1
- package/dist/index.esm2017.js +17 -1
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +17 -1
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +17 -1
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +17 -1
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/dist/node-esm/src/implementation/error.d.ts +16 -0
- package/dist/node-esm/src/public-types.d.ts +2 -2
- package/dist/src/implementation/error.d.ts +16 -0
- package/dist/src/public-types.d.ts +2 -2
- package/dist/storage-public.d.ts +4 -9
- package/dist/storage.d.ts +2 -2
- package/package.json +5 -5
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2017 Google LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
1
17
|
import { FirebaseError } from '@firebase/util';
|
|
2
18
|
/**
|
|
3
19
|
* An error returned by the Firebase Storage SDK.
|
|
@@ -171,12 +171,12 @@ export interface FullMetadata extends UploadMetadata {
|
|
|
171
171
|
fullPath: string;
|
|
172
172
|
/**
|
|
173
173
|
* The object's generation.
|
|
174
|
-
* {@link https://cloud.google.com/storage/docs/
|
|
174
|
+
* {@link https://cloud.google.com/storage/docs/metadata#generation-number}
|
|
175
175
|
*/
|
|
176
176
|
generation: string;
|
|
177
177
|
/**
|
|
178
178
|
* The object's metageneration.
|
|
179
|
-
* {@link https://cloud.google.com/storage/docs/
|
|
179
|
+
* {@link https://cloud.google.com/storage/docs/metadata#generation-number}
|
|
180
180
|
*/
|
|
181
181
|
metageneration: string;
|
|
182
182
|
/**
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2017 Google LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
1
17
|
import { FirebaseError } from '@firebase/util';
|
|
2
18
|
/**
|
|
3
19
|
* An error returned by the Firebase Storage SDK.
|
|
@@ -171,12 +171,12 @@ export interface FullMetadata extends UploadMetadata {
|
|
|
171
171
|
fullPath: string;
|
|
172
172
|
/**
|
|
173
173
|
* The object's generation.
|
|
174
|
-
* {@link https://cloud.google.com/storage/docs/
|
|
174
|
+
* {@link https://cloud.google.com/storage/docs/metadata#generation-number}
|
|
175
175
|
*/
|
|
176
176
|
generation: string;
|
|
177
177
|
/**
|
|
178
178
|
* The object's metageneration.
|
|
179
|
-
* {@link https://cloud.google.com/storage/docs/
|
|
179
|
+
* {@link https://cloud.google.com/storage/docs/metadata#generation-number}
|
|
180
180
|
*/
|
|
181
181
|
metageneration: string;
|
|
182
182
|
/**
|
package/dist/storage-public.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @packageDocumentation
|
|
5
5
|
*/
|
|
6
6
|
/// <reference types="node" />
|
|
7
|
-
import { CompleteFn , EmulatorMockTokenOptions ,
|
|
7
|
+
import { CompleteFn , EmulatorMockTokenOptions , FirebaseError , NextFn , Subscribe , Unsubscribe } from '@firebase/util';
|
|
8
8
|
import { FirebaseApp } from '@firebase/app';
|
|
9
9
|
/**
|
|
10
10
|
* Modify this {@link FirebaseStorage} instance to communicate with the Cloud Storage emulator.
|
|
@@ -65,12 +65,12 @@ export declare interface FullMetadata extends UploadMetadata {
|
|
|
65
65
|
fullPath: string;
|
|
66
66
|
/**
|
|
67
67
|
* The object's generation.
|
|
68
|
-
* {@link https://cloud.google.com/storage/docs/
|
|
68
|
+
* {@link https://cloud.google.com/storage/docs/metadata#generation-number}
|
|
69
69
|
*/
|
|
70
70
|
generation: string;
|
|
71
71
|
/**
|
|
72
72
|
* The object's metageneration.
|
|
73
|
-
* {@link https://cloud.google.com/storage/docs/
|
|
73
|
+
* {@link https://cloud.google.com/storage/docs/metadata#generation-number}
|
|
74
74
|
*/
|
|
75
75
|
metageneration: string;
|
|
76
76
|
/**
|
|
@@ -307,16 +307,11 @@ export declare interface SettableMetadata {
|
|
|
307
307
|
* An error returned by the Firebase Storage SDK.
|
|
308
308
|
* @public
|
|
309
309
|
*/
|
|
310
|
-
export declare interface StorageError {
|
|
310
|
+
export declare interface StorageError extends FirebaseError {
|
|
311
311
|
/**
|
|
312
312
|
* A server response message for the error, if applicable.
|
|
313
313
|
*/
|
|
314
314
|
serverResponse: string | null;
|
|
315
|
-
code: string;
|
|
316
|
-
customData?: Record<string, unknown>;
|
|
317
|
-
name: 'FirebaseError';
|
|
318
|
-
message: string;
|
|
319
|
-
stack?: string;
|
|
320
315
|
}
|
|
321
316
|
/**
|
|
322
317
|
* A stream observer for Firebase Storage.
|
package/dist/storage.d.ts
CHANGED
|
@@ -254,12 +254,12 @@ export declare interface FullMetadata extends UploadMetadata {
|
|
|
254
254
|
fullPath: string;
|
|
255
255
|
/**
|
|
256
256
|
* The object's generation.
|
|
257
|
-
* {@link https://cloud.google.com/storage/docs/
|
|
257
|
+
* {@link https://cloud.google.com/storage/docs/metadata#generation-number}
|
|
258
258
|
*/
|
|
259
259
|
generation: string;
|
|
260
260
|
/**
|
|
261
261
|
* The object's metageneration.
|
|
262
|
-
* {@link https://cloud.google.com/storage/docs/
|
|
262
|
+
* {@link https://cloud.google.com/storage/docs/metadata#generation-number}
|
|
263
263
|
*/
|
|
264
264
|
metageneration: string;
|
|
265
265
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firebase/storage",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.1-202202014332",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
|
|
6
6
|
"main": "dist/index.node.cjs.js",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
},
|
|
42
42
|
"license": "Apache-2.0",
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@firebase/util": "1.4.
|
|
45
|
-
"@firebase/component": "0.5.
|
|
44
|
+
"@firebase/util": "1.4.3",
|
|
45
|
+
"@firebase/component": "0.5.10",
|
|
46
46
|
"node-fetch": "2.6.5",
|
|
47
47
|
"tslib": "^2.1.0"
|
|
48
48
|
},
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"@firebase/app": "0.x"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@firebase/app": "0.7.
|
|
54
|
-
"@firebase/auth": "0.19.
|
|
53
|
+
"@firebase/app": "0.7.13",
|
|
54
|
+
"@firebase/auth": "0.19.6-202202014332",
|
|
55
55
|
"rollup": "2.57.0",
|
|
56
56
|
"@rollup/plugin-alias": "3.1.5",
|
|
57
57
|
"@rollup/plugin-json": "4.1.0",
|