@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.esm.js
CHANGED
|
@@ -255,6 +255,10 @@ function internalError(message) {
|
|
|
255
255
|
* See the License for the specific language governing permissions and
|
|
256
256
|
* limitations under the License.
|
|
257
257
|
*/
|
|
258
|
+
/**
|
|
259
|
+
* @fileoverview Functionality related to the parsing/composition of bucket/
|
|
260
|
+
* object location.
|
|
261
|
+
*/
|
|
258
262
|
/**
|
|
259
263
|
* Firebase Storage location data.
|
|
260
264
|
*
|
|
@@ -648,6 +652,10 @@ function isRetryStatusCode(status, additionalRetryCodes) {
|
|
|
648
652
|
* See the License for the specific language governing permissions and
|
|
649
653
|
* limitations under the License.
|
|
650
654
|
*/
|
|
655
|
+
/**
|
|
656
|
+
* @fileoverview Defines methods used to actually send HTTP requests from
|
|
657
|
+
* abstract representations.
|
|
658
|
+
*/
|
|
651
659
|
/**
|
|
652
660
|
* Handles network logic for all Storage Requests, including error reporting and
|
|
653
661
|
* retries with backoff.
|
|
@@ -849,6 +857,11 @@ function makeRequest(requestInfo, appId, authToken, appCheckToken, requestFactor
|
|
|
849
857
|
* See the License for the specific language governing permissions and
|
|
850
858
|
* limitations under the License.
|
|
851
859
|
*/
|
|
860
|
+
/**
|
|
861
|
+
* @fileoverview Some methods copied from goog.fs.
|
|
862
|
+
* We don't include goog.fs because it pulls in a bunch of Deferred code that
|
|
863
|
+
* bloats the size of the released binary.
|
|
864
|
+
*/
|
|
852
865
|
function getBlobBuilder() {
|
|
853
866
|
if (typeof BlobBuilder !== 'undefined') {
|
|
854
867
|
return BlobBuilder;
|
|
@@ -1153,6 +1166,11 @@ function endsWith(s, end) {
|
|
|
1153
1166
|
* See the License for the specific language governing permissions and
|
|
1154
1167
|
* limitations under the License.
|
|
1155
1168
|
*/
|
|
1169
|
+
/**
|
|
1170
|
+
* @file Provides a Blob-like wrapper for various binary types (including the
|
|
1171
|
+
* native Blob type). This makes it possible to upload types like ArrayBuffers,
|
|
1172
|
+
* making uploads possible in environments without the native Blob type.
|
|
1173
|
+
*/
|
|
1156
1174
|
/**
|
|
1157
1175
|
* @param opt_elideCopy - If true, doesn't copy mutable input data
|
|
1158
1176
|
* (e.g. Uint8Arrays). Pass true only if you know the objects will not be
|
|
@@ -1512,6 +1530,9 @@ function toResourceString(metadata, mappings) {
|
|
|
1512
1530
|
* See the License for the specific language governing permissions and
|
|
1513
1531
|
* limitations under the License.
|
|
1514
1532
|
*/
|
|
1533
|
+
/**
|
|
1534
|
+
* @fileoverview Documentation for the listOptions and listResult format
|
|
1535
|
+
*/
|
|
1515
1536
|
const PREFIXES_KEY = 'prefixes';
|
|
1516
1537
|
const ITEMS_KEY = 'items';
|
|
1517
1538
|
function fromBackendResponse(service, bucket, resource) {
|
|
@@ -1688,7 +1709,7 @@ function list$2(service, location, delimiter, pageToken, maxResults) {
|
|
|
1688
1709
|
else {
|
|
1689
1710
|
urlParams['prefix'] = location.path + '/';
|
|
1690
1711
|
}
|
|
1691
|
-
if (delimiter
|
|
1712
|
+
if (delimiter.length > 0) {
|
|
1692
1713
|
urlParams['delimiter'] = delimiter;
|
|
1693
1714
|
}
|
|
1694
1715
|
if (pageToken) {
|
|
@@ -2133,8 +2154,6 @@ function async(f) {
|
|
|
2133
2154
|
* See the License for the specific language governing permissions and
|
|
2134
2155
|
* limitations under the License.
|
|
2135
2156
|
*/
|
|
2136
|
-
/** An override for the text-based Connection. Used in tests. */
|
|
2137
|
-
let textFactoryOverride = null;
|
|
2138
2157
|
/**
|
|
2139
2158
|
* Network layer for browsers. We use this instead of goog.net.XhrIo because
|
|
2140
2159
|
* goog.net.XhrIo is hyuuuuge and doesn't work in React Native on Android.
|
|
@@ -2236,7 +2255,7 @@ class XhrTextConnection extends XhrConnection {
|
|
|
2236
2255
|
}
|
|
2237
2256
|
}
|
|
2238
2257
|
function newTextConnection() {
|
|
2239
|
-
return
|
|
2258
|
+
return new XhrTextConnection();
|
|
2240
2259
|
}
|
|
2241
2260
|
class XhrBytesConnection extends XhrConnection {
|
|
2242
2261
|
initXhr() {
|
|
@@ -2271,6 +2290,9 @@ function newBlobConnection() {
|
|
|
2271
2290
|
* See the License for the specific language governing permissions and
|
|
2272
2291
|
* limitations under the License.
|
|
2273
2292
|
*/
|
|
2293
|
+
/**
|
|
2294
|
+
* @fileoverview Defines types for interacting with blob transfer tasks.
|
|
2295
|
+
*/
|
|
2274
2296
|
/**
|
|
2275
2297
|
* Represents a blob being uploaded. Can be used to pause/resume/cancel the
|
|
2276
2298
|
* upload and manage callbacks for various events.
|
|
@@ -2776,6 +2798,9 @@ class UploadTask {
|
|
|
2776
2798
|
* See the License for the specific language governing permissions and
|
|
2777
2799
|
* limitations under the License.
|
|
2778
2800
|
*/
|
|
2801
|
+
/**
|
|
2802
|
+
* @fileoverview Defines the Firebase StorageReference class.
|
|
2803
|
+
*/
|
|
2779
2804
|
/**
|
|
2780
2805
|
* Provides methods to interact with a bucket in the Firebase Storage service.
|
|
2781
2806
|
* @internal
|
|
@@ -3344,7 +3369,7 @@ class FirebaseStorageImpl {
|
|
|
3344
3369
|
}
|
|
3345
3370
|
|
|
3346
3371
|
const name = "@firebase/storage";
|
|
3347
|
-
const version = "0.14.3-eap-crashlytics.
|
|
3372
|
+
const version = "0.14.3-eap-crashlytics.659b578fb";
|
|
3348
3373
|
|
|
3349
3374
|
/**
|
|
3350
3375
|
* @license
|
|
@@ -3636,6 +3661,23 @@ function getStream(ref, maxDownloadSizeBytes) {
|
|
|
3636
3661
|
*
|
|
3637
3662
|
* @packageDocumentation
|
|
3638
3663
|
*/
|
|
3664
|
+
/**
|
|
3665
|
+
* @license
|
|
3666
|
+
* Copyright 2020 Google LLC
|
|
3667
|
+
*
|
|
3668
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3669
|
+
* you may not use this file except in compliance with the License.
|
|
3670
|
+
* You may obtain a copy of the License at
|
|
3671
|
+
*
|
|
3672
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3673
|
+
*
|
|
3674
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
3675
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3676
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3677
|
+
* See the License for the specific language governing permissions and
|
|
3678
|
+
* limitations under the License.
|
|
3679
|
+
*/
|
|
3680
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
3639
3681
|
function factory(container, { instanceIdentifier: url }) {
|
|
3640
3682
|
const app = container.getProvider('app').getImmediate();
|
|
3641
3683
|
const authProvider = container.getProvider('auth-internal');
|