@firebase/storage 0.9.12 → 0.9.13-20221025194556
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/CHANGELOG.md +13 -0
- package/dist/index.browser.cjs.js +4 -2
- package/dist/index.browser.cjs.js.map +1 -1
- package/dist/index.esm2017.js +6 -4
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +6 -4
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +4 -2
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +6 -4
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/package.json +7 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FirebaseError, createMockUserToken, getModularInstance, getDefaultEmulatorHostnameAndPort } from '@firebase/util';
|
|
1
|
+
import { _getProvider, getApp, _registerComponent, registerVersion, SDK_VERSION } from '@firebase/app';
|
|
2
|
+
import { FirebaseError, isNode, createMockUserToken, getModularInstance, getDefaultEmulatorHostnameAndPort } from '@firebase/util';
|
|
3
3
|
import { Transform, PassThrough } from 'stream';
|
|
4
4
|
import nodeFetch from 'node-fetch';
|
|
5
5
|
import { Component } from '@firebase/component';
|
|
@@ -502,7 +502,9 @@ function isNativeBlob(p) {
|
|
|
502
502
|
return isNativeBlobDefined() && p instanceof Blob;
|
|
503
503
|
}
|
|
504
504
|
function isNativeBlobDefined() {
|
|
505
|
-
|
|
505
|
+
// Note: The `isNode()` check can be removed when `node-fetch` adds native Blob support
|
|
506
|
+
// PR: https://github.com/node-fetch/node-fetch/pull/1664
|
|
507
|
+
return typeof Blob !== 'undefined' && !isNode();
|
|
506
508
|
}
|
|
507
509
|
function validateNumber(argument, minValue, maxValue, value) {
|
|
508
510
|
if (value < minValue) {
|
|
@@ -3342,7 +3344,7 @@ class FirebaseStorageImpl {
|
|
|
3342
3344
|
}
|
|
3343
3345
|
|
|
3344
3346
|
const name = "@firebase/storage";
|
|
3345
|
-
const version = "0.9.
|
|
3347
|
+
const version = "0.9.13-20221025194556";
|
|
3346
3348
|
|
|
3347
3349
|
/**
|
|
3348
3350
|
* @license
|