@firebase/storage 0.14.3-eap-crashlytics.06423a1af → 0.14.3-eap-crashlytics.659b578fb
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/dist/index.browser.cjs.js +47 -7
- package/dist/index.browser.cjs.js.map +1 -1
- package/dist/index.cjs.js +47 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +47 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.node.cjs.js +47 -7
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +47 -7
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/package.json +11 -11
|
@@ -252,6 +252,10 @@ function internalError(message) {
|
|
|
252
252
|
* See the License for the specific language governing permissions and
|
|
253
253
|
* limitations under the License.
|
|
254
254
|
*/
|
|
255
|
+
/**
|
|
256
|
+
* @fileoverview Functionality related to the parsing/composition of bucket/
|
|
257
|
+
* object location.
|
|
258
|
+
*/
|
|
255
259
|
/**
|
|
256
260
|
* Firebase Storage location data.
|
|
257
261
|
*
|
|
@@ -645,6 +649,10 @@ function isRetryStatusCode(status, additionalRetryCodes) {
|
|
|
645
649
|
* See the License for the specific language governing permissions and
|
|
646
650
|
* limitations under the License.
|
|
647
651
|
*/
|
|
652
|
+
/**
|
|
653
|
+
* @fileoverview Defines methods used to actually send HTTP requests from
|
|
654
|
+
* abstract representations.
|
|
655
|
+
*/
|
|
648
656
|
/**
|
|
649
657
|
* Handles network logic for all Storage Requests, including error reporting and
|
|
650
658
|
* retries with backoff.
|
|
@@ -846,6 +854,11 @@ function makeRequest(requestInfo, appId, authToken, appCheckToken, requestFactor
|
|
|
846
854
|
* See the License for the specific language governing permissions and
|
|
847
855
|
* limitations under the License.
|
|
848
856
|
*/
|
|
857
|
+
/**
|
|
858
|
+
* @fileoverview Some methods copied from goog.fs.
|
|
859
|
+
* We don't include goog.fs because it pulls in a bunch of Deferred code that
|
|
860
|
+
* bloats the size of the released binary.
|
|
861
|
+
*/
|
|
849
862
|
function getBlobBuilder() {
|
|
850
863
|
if (typeof BlobBuilder !== 'undefined') {
|
|
851
864
|
return BlobBuilder;
|
|
@@ -1152,6 +1165,11 @@ function endsWith(s, end) {
|
|
|
1152
1165
|
* See the License for the specific language governing permissions and
|
|
1153
1166
|
* limitations under the License.
|
|
1154
1167
|
*/
|
|
1168
|
+
/**
|
|
1169
|
+
* @file Provides a Blob-like wrapper for various binary types (including the
|
|
1170
|
+
* native Blob type). This makes it possible to upload types like ArrayBuffers,
|
|
1171
|
+
* making uploads possible in environments without the native Blob type.
|
|
1172
|
+
*/
|
|
1155
1173
|
/**
|
|
1156
1174
|
* @param opt_elideCopy - If true, doesn't copy mutable input data
|
|
1157
1175
|
* (e.g. Uint8Arrays). Pass true only if you know the objects will not be
|
|
@@ -1511,6 +1529,9 @@ function toResourceString(metadata, mappings) {
|
|
|
1511
1529
|
* See the License for the specific language governing permissions and
|
|
1512
1530
|
* limitations under the License.
|
|
1513
1531
|
*/
|
|
1532
|
+
/**
|
|
1533
|
+
* @fileoverview Documentation for the listOptions and listResult format
|
|
1534
|
+
*/
|
|
1514
1535
|
const PREFIXES_KEY = 'prefixes';
|
|
1515
1536
|
const ITEMS_KEY = 'items';
|
|
1516
1537
|
function fromBackendResponse(service, bucket, resource) {
|
|
@@ -1687,7 +1708,7 @@ function list$2(service, location, delimiter, pageToken, maxResults) {
|
|
|
1687
1708
|
else {
|
|
1688
1709
|
urlParams['prefix'] = location.path + '/';
|
|
1689
1710
|
}
|
|
1690
|
-
if (delimiter
|
|
1711
|
+
if (delimiter.length > 0) {
|
|
1691
1712
|
urlParams['delimiter'] = delimiter;
|
|
1692
1713
|
}
|
|
1693
1714
|
if (pageToken) {
|
|
@@ -2132,8 +2153,6 @@ function async(f) {
|
|
|
2132
2153
|
* See the License for the specific language governing permissions and
|
|
2133
2154
|
* limitations under the License.
|
|
2134
2155
|
*/
|
|
2135
|
-
/** An override for the text-based Connection. Used in tests. */
|
|
2136
|
-
let textFactoryOverride = null;
|
|
2137
2156
|
/**
|
|
2138
2157
|
* Network layer that works in Node.
|
|
2139
2158
|
*
|
|
@@ -2205,9 +2224,7 @@ class FetchTextConnection extends FetchConnection {
|
|
|
2205
2224
|
}
|
|
2206
2225
|
}
|
|
2207
2226
|
function newTextConnection() {
|
|
2208
|
-
return
|
|
2209
|
-
? textFactoryOverride()
|
|
2210
|
-
: new FetchTextConnection();
|
|
2227
|
+
return new FetchTextConnection();
|
|
2211
2228
|
}
|
|
2212
2229
|
class FetchBytesConnection extends FetchConnection {
|
|
2213
2230
|
getResponse() {
|
|
@@ -2282,6 +2299,9 @@ function newStreamConnection() {
|
|
|
2282
2299
|
* See the License for the specific language governing permissions and
|
|
2283
2300
|
* limitations under the License.
|
|
2284
2301
|
*/
|
|
2302
|
+
/**
|
|
2303
|
+
* @fileoverview Defines types for interacting with blob transfer tasks.
|
|
2304
|
+
*/
|
|
2285
2305
|
/**
|
|
2286
2306
|
* Represents a blob being uploaded. Can be used to pause/resume/cancel the
|
|
2287
2307
|
* upload and manage callbacks for various events.
|
|
@@ -2787,6 +2807,9 @@ class UploadTask {
|
|
|
2787
2807
|
* See the License for the specific language governing permissions and
|
|
2788
2808
|
* limitations under the License.
|
|
2789
2809
|
*/
|
|
2810
|
+
/**
|
|
2811
|
+
* @fileoverview Defines the Firebase StorageReference class.
|
|
2812
|
+
*/
|
|
2790
2813
|
/**
|
|
2791
2814
|
* Provides methods to interact with a bucket in the Firebase Storage service.
|
|
2792
2815
|
* @internal
|
|
@@ -3371,7 +3394,7 @@ class FirebaseStorageImpl {
|
|
|
3371
3394
|
}
|
|
3372
3395
|
|
|
3373
3396
|
const name = "@firebase/storage";
|
|
3374
|
-
const version = "0.14.3-eap-crashlytics.
|
|
3397
|
+
const version = "0.14.3-eap-crashlytics.659b578fb";
|
|
3375
3398
|
|
|
3376
3399
|
/**
|
|
3377
3400
|
* @license
|
|
@@ -3664,6 +3687,23 @@ function getStream(ref, maxDownloadSizeBytes) {
|
|
|
3664
3687
|
*
|
|
3665
3688
|
* @packageDocumentation
|
|
3666
3689
|
*/
|
|
3690
|
+
/**
|
|
3691
|
+
* @license
|
|
3692
|
+
* Copyright 2021 Google LLC
|
|
3693
|
+
*
|
|
3694
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3695
|
+
* you may not use this file except in compliance with the License.
|
|
3696
|
+
* You may obtain a copy of the License at
|
|
3697
|
+
*
|
|
3698
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3699
|
+
*
|
|
3700
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
3701
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3702
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3703
|
+
* See the License for the specific language governing permissions and
|
|
3704
|
+
* limitations under the License.
|
|
3705
|
+
*/
|
|
3706
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
3667
3707
|
function factory(container, { instanceIdentifier: url }) {
|
|
3668
3708
|
const app = container.getProvider('app').getImmediate();
|
|
3669
3709
|
const authProvider = container.getProvider('auth-internal');
|