@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
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var app = require('@firebase/app');
|
|
6
4
|
var util = require('@firebase/util');
|
|
7
5
|
var component = require('@firebase/component');
|
|
@@ -259,6 +257,10 @@ function internalError(message) {
|
|
|
259
257
|
* See the License for the specific language governing permissions and
|
|
260
258
|
* limitations under the License.
|
|
261
259
|
*/
|
|
260
|
+
/**
|
|
261
|
+
* @fileoverview Functionality related to the parsing/composition of bucket/
|
|
262
|
+
* object location.
|
|
263
|
+
*/
|
|
262
264
|
/**
|
|
263
265
|
* Firebase Storage location data.
|
|
264
266
|
*
|
|
@@ -652,6 +654,10 @@ function isRetryStatusCode(status, additionalRetryCodes) {
|
|
|
652
654
|
* See the License for the specific language governing permissions and
|
|
653
655
|
* limitations under the License.
|
|
654
656
|
*/
|
|
657
|
+
/**
|
|
658
|
+
* @fileoverview Defines methods used to actually send HTTP requests from
|
|
659
|
+
* abstract representations.
|
|
660
|
+
*/
|
|
655
661
|
/**
|
|
656
662
|
* Handles network logic for all Storage Requests, including error reporting and
|
|
657
663
|
* retries with backoff.
|
|
@@ -853,6 +859,11 @@ function makeRequest(requestInfo, appId, authToken, appCheckToken, requestFactor
|
|
|
853
859
|
* See the License for the specific language governing permissions and
|
|
854
860
|
* limitations under the License.
|
|
855
861
|
*/
|
|
862
|
+
/**
|
|
863
|
+
* @fileoverview Some methods copied from goog.fs.
|
|
864
|
+
* We don't include goog.fs because it pulls in a bunch of Deferred code that
|
|
865
|
+
* bloats the size of the released binary.
|
|
866
|
+
*/
|
|
856
867
|
function getBlobBuilder() {
|
|
857
868
|
if (typeof BlobBuilder !== 'undefined') {
|
|
858
869
|
return BlobBuilder;
|
|
@@ -1157,6 +1168,11 @@ function endsWith(s, end) {
|
|
|
1157
1168
|
* See the License for the specific language governing permissions and
|
|
1158
1169
|
* limitations under the License.
|
|
1159
1170
|
*/
|
|
1171
|
+
/**
|
|
1172
|
+
* @file Provides a Blob-like wrapper for various binary types (including the
|
|
1173
|
+
* native Blob type). This makes it possible to upload types like ArrayBuffers,
|
|
1174
|
+
* making uploads possible in environments without the native Blob type.
|
|
1175
|
+
*/
|
|
1160
1176
|
/**
|
|
1161
1177
|
* @param opt_elideCopy - If true, doesn't copy mutable input data
|
|
1162
1178
|
* (e.g. Uint8Arrays). Pass true only if you know the objects will not be
|
|
@@ -1516,6 +1532,9 @@ function toResourceString(metadata, mappings) {
|
|
|
1516
1532
|
* See the License for the specific language governing permissions and
|
|
1517
1533
|
* limitations under the License.
|
|
1518
1534
|
*/
|
|
1535
|
+
/**
|
|
1536
|
+
* @fileoverview Documentation for the listOptions and listResult format
|
|
1537
|
+
*/
|
|
1519
1538
|
const PREFIXES_KEY = 'prefixes';
|
|
1520
1539
|
const ITEMS_KEY = 'items';
|
|
1521
1540
|
function fromBackendResponse(service, bucket, resource) {
|
|
@@ -1692,7 +1711,7 @@ function list$2(service, location, delimiter, pageToken, maxResults) {
|
|
|
1692
1711
|
else {
|
|
1693
1712
|
urlParams['prefix'] = location.path + '/';
|
|
1694
1713
|
}
|
|
1695
|
-
if (delimiter
|
|
1714
|
+
if (delimiter.length > 0) {
|
|
1696
1715
|
urlParams['delimiter'] = delimiter;
|
|
1697
1716
|
}
|
|
1698
1717
|
if (pageToken) {
|
|
@@ -2137,8 +2156,6 @@ function async(f) {
|
|
|
2137
2156
|
* See the License for the specific language governing permissions and
|
|
2138
2157
|
* limitations under the License.
|
|
2139
2158
|
*/
|
|
2140
|
-
/** An override for the text-based Connection. Used in tests. */
|
|
2141
|
-
let textFactoryOverride = null;
|
|
2142
2159
|
/**
|
|
2143
2160
|
* Network layer for browsers. We use this instead of goog.net.XhrIo because
|
|
2144
2161
|
* goog.net.XhrIo is hyuuuuge and doesn't work in React Native on Android.
|
|
@@ -2240,7 +2257,7 @@ class XhrTextConnection extends XhrConnection {
|
|
|
2240
2257
|
}
|
|
2241
2258
|
}
|
|
2242
2259
|
function newTextConnection() {
|
|
2243
|
-
return
|
|
2260
|
+
return new XhrTextConnection();
|
|
2244
2261
|
}
|
|
2245
2262
|
class XhrBytesConnection extends XhrConnection {
|
|
2246
2263
|
initXhr() {
|
|
@@ -2275,6 +2292,9 @@ function newBlobConnection() {
|
|
|
2275
2292
|
* See the License for the specific language governing permissions and
|
|
2276
2293
|
* limitations under the License.
|
|
2277
2294
|
*/
|
|
2295
|
+
/**
|
|
2296
|
+
* @fileoverview Defines types for interacting with blob transfer tasks.
|
|
2297
|
+
*/
|
|
2278
2298
|
/**
|
|
2279
2299
|
* Represents a blob being uploaded. Can be used to pause/resume/cancel the
|
|
2280
2300
|
* upload and manage callbacks for various events.
|
|
@@ -2780,6 +2800,9 @@ class UploadTask {
|
|
|
2780
2800
|
* See the License for the specific language governing permissions and
|
|
2781
2801
|
* limitations under the License.
|
|
2782
2802
|
*/
|
|
2803
|
+
/**
|
|
2804
|
+
* @fileoverview Defines the Firebase StorageReference class.
|
|
2805
|
+
*/
|
|
2783
2806
|
/**
|
|
2784
2807
|
* Provides methods to interact with a bucket in the Firebase Storage service.
|
|
2785
2808
|
* @internal
|
|
@@ -3348,7 +3371,7 @@ class FirebaseStorageImpl {
|
|
|
3348
3371
|
}
|
|
3349
3372
|
|
|
3350
3373
|
const name = "@firebase/storage";
|
|
3351
|
-
const version = "0.14.3-eap-crashlytics.
|
|
3374
|
+
const version = "0.14.3-eap-crashlytics.659b578fb";
|
|
3352
3375
|
|
|
3353
3376
|
/**
|
|
3354
3377
|
* @license
|
|
@@ -3640,6 +3663,23 @@ function getStream(ref, maxDownloadSizeBytes) {
|
|
|
3640
3663
|
*
|
|
3641
3664
|
* @packageDocumentation
|
|
3642
3665
|
*/
|
|
3666
|
+
/**
|
|
3667
|
+
* @license
|
|
3668
|
+
* Copyright 2020 Google LLC
|
|
3669
|
+
*
|
|
3670
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3671
|
+
* you may not use this file except in compliance with the License.
|
|
3672
|
+
* You may obtain a copy of the License at
|
|
3673
|
+
*
|
|
3674
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3675
|
+
*
|
|
3676
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
3677
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3678
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3679
|
+
* See the License for the specific language governing permissions and
|
|
3680
|
+
* limitations under the License.
|
|
3681
|
+
*/
|
|
3682
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
3643
3683
|
function factory(container, { instanceIdentifier: url }) {
|
|
3644
3684
|
const app$1 = container.getProvider('app').getImmediate();
|
|
3645
3685
|
const authProvider = container.getProvider('auth-internal');
|