@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
package/dist/index.node.cjs.js
CHANGED
|
@@ -256,6 +256,10 @@ function internalError(message) {
|
|
|
256
256
|
* See the License for the specific language governing permissions and
|
|
257
257
|
* limitations under the License.
|
|
258
258
|
*/
|
|
259
|
+
/**
|
|
260
|
+
* @fileoverview Functionality related to the parsing/composition of bucket/
|
|
261
|
+
* object location.
|
|
262
|
+
*/
|
|
259
263
|
/**
|
|
260
264
|
* Firebase Storage location data.
|
|
261
265
|
*
|
|
@@ -649,6 +653,10 @@ function isRetryStatusCode(status, additionalRetryCodes) {
|
|
|
649
653
|
* See the License for the specific language governing permissions and
|
|
650
654
|
* limitations under the License.
|
|
651
655
|
*/
|
|
656
|
+
/**
|
|
657
|
+
* @fileoverview Defines methods used to actually send HTTP requests from
|
|
658
|
+
* abstract representations.
|
|
659
|
+
*/
|
|
652
660
|
/**
|
|
653
661
|
* Handles network logic for all Storage Requests, including error reporting and
|
|
654
662
|
* retries with backoff.
|
|
@@ -850,6 +858,11 @@ function makeRequest(requestInfo, appId, authToken, appCheckToken, requestFactor
|
|
|
850
858
|
* See the License for the specific language governing permissions and
|
|
851
859
|
* limitations under the License.
|
|
852
860
|
*/
|
|
861
|
+
/**
|
|
862
|
+
* @fileoverview Some methods copied from goog.fs.
|
|
863
|
+
* We don't include goog.fs because it pulls in a bunch of Deferred code that
|
|
864
|
+
* bloats the size of the released binary.
|
|
865
|
+
*/
|
|
853
866
|
function getBlobBuilder() {
|
|
854
867
|
if (typeof BlobBuilder !== 'undefined') {
|
|
855
868
|
return BlobBuilder;
|
|
@@ -1156,6 +1169,11 @@ function endsWith(s, end) {
|
|
|
1156
1169
|
* See the License for the specific language governing permissions and
|
|
1157
1170
|
* limitations under the License.
|
|
1158
1171
|
*/
|
|
1172
|
+
/**
|
|
1173
|
+
* @file Provides a Blob-like wrapper for various binary types (including the
|
|
1174
|
+
* native Blob type). This makes it possible to upload types like ArrayBuffers,
|
|
1175
|
+
* making uploads possible in environments without the native Blob type.
|
|
1176
|
+
*/
|
|
1159
1177
|
/**
|
|
1160
1178
|
* @param opt_elideCopy - If true, doesn't copy mutable input data
|
|
1161
1179
|
* (e.g. Uint8Arrays). Pass true only if you know the objects will not be
|
|
@@ -1515,6 +1533,9 @@ function toResourceString(metadata, mappings) {
|
|
|
1515
1533
|
* See the License for the specific language governing permissions and
|
|
1516
1534
|
* limitations under the License.
|
|
1517
1535
|
*/
|
|
1536
|
+
/**
|
|
1537
|
+
* @fileoverview Documentation for the listOptions and listResult format
|
|
1538
|
+
*/
|
|
1518
1539
|
const PREFIXES_KEY = 'prefixes';
|
|
1519
1540
|
const ITEMS_KEY = 'items';
|
|
1520
1541
|
function fromBackendResponse(service, bucket, resource) {
|
|
@@ -1691,7 +1712,7 @@ function list$2(service, location, delimiter, pageToken, maxResults) {
|
|
|
1691
1712
|
else {
|
|
1692
1713
|
urlParams['prefix'] = location.path + '/';
|
|
1693
1714
|
}
|
|
1694
|
-
if (delimiter
|
|
1715
|
+
if (delimiter.length > 0) {
|
|
1695
1716
|
urlParams['delimiter'] = delimiter;
|
|
1696
1717
|
}
|
|
1697
1718
|
if (pageToken) {
|
|
@@ -2136,8 +2157,6 @@ function async(f) {
|
|
|
2136
2157
|
* See the License for the specific language governing permissions and
|
|
2137
2158
|
* limitations under the License.
|
|
2138
2159
|
*/
|
|
2139
|
-
/** An override for the text-based Connection. Used in tests. */
|
|
2140
|
-
let textFactoryOverride = null;
|
|
2141
2160
|
/**
|
|
2142
2161
|
* Network layer that works in Node.
|
|
2143
2162
|
*
|
|
@@ -2209,9 +2228,7 @@ class FetchTextConnection extends FetchConnection {
|
|
|
2209
2228
|
}
|
|
2210
2229
|
}
|
|
2211
2230
|
function newTextConnection() {
|
|
2212
|
-
return
|
|
2213
|
-
? textFactoryOverride()
|
|
2214
|
-
: new FetchTextConnection();
|
|
2231
|
+
return new FetchTextConnection();
|
|
2215
2232
|
}
|
|
2216
2233
|
class FetchBytesConnection extends FetchConnection {
|
|
2217
2234
|
getResponse() {
|
|
@@ -2286,6 +2303,9 @@ function newStreamConnection() {
|
|
|
2286
2303
|
* See the License for the specific language governing permissions and
|
|
2287
2304
|
* limitations under the License.
|
|
2288
2305
|
*/
|
|
2306
|
+
/**
|
|
2307
|
+
* @fileoverview Defines types for interacting with blob transfer tasks.
|
|
2308
|
+
*/
|
|
2289
2309
|
/**
|
|
2290
2310
|
* Represents a blob being uploaded. Can be used to pause/resume/cancel the
|
|
2291
2311
|
* upload and manage callbacks for various events.
|
|
@@ -2791,6 +2811,9 @@ class UploadTask {
|
|
|
2791
2811
|
* See the License for the specific language governing permissions and
|
|
2792
2812
|
* limitations under the License.
|
|
2793
2813
|
*/
|
|
2814
|
+
/**
|
|
2815
|
+
* @fileoverview Defines the Firebase StorageReference class.
|
|
2816
|
+
*/
|
|
2794
2817
|
/**
|
|
2795
2818
|
* Provides methods to interact with a bucket in the Firebase Storage service.
|
|
2796
2819
|
* @internal
|
|
@@ -3375,7 +3398,7 @@ class FirebaseStorageImpl {
|
|
|
3375
3398
|
}
|
|
3376
3399
|
|
|
3377
3400
|
const name = "@firebase/storage";
|
|
3378
|
-
const version = "0.14.3-eap-crashlytics.
|
|
3401
|
+
const version = "0.14.3-eap-crashlytics.659b578fb";
|
|
3379
3402
|
|
|
3380
3403
|
/**
|
|
3381
3404
|
* @license
|
|
@@ -3668,6 +3691,23 @@ function getStream(ref, maxDownloadSizeBytes) {
|
|
|
3668
3691
|
*
|
|
3669
3692
|
* @packageDocumentation
|
|
3670
3693
|
*/
|
|
3694
|
+
/**
|
|
3695
|
+
* @license
|
|
3696
|
+
* Copyright 2021 Google LLC
|
|
3697
|
+
*
|
|
3698
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3699
|
+
* you may not use this file except in compliance with the License.
|
|
3700
|
+
* You may obtain a copy of the License at
|
|
3701
|
+
*
|
|
3702
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3703
|
+
*
|
|
3704
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
3705
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3706
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3707
|
+
* See the License for the specific language governing permissions and
|
|
3708
|
+
* limitations under the License.
|
|
3709
|
+
*/
|
|
3710
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
3671
3711
|
function factory(container, { instanceIdentifier: url }) {
|
|
3672
3712
|
const app$1 = container.getProvider('app').getImmediate();
|
|
3673
3713
|
const authProvider = container.getProvider('auth-internal');
|