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