@firebase/storage 0.9.13 → 0.9.14-20221109210852
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 +6 -0
- package/dist/index.browser.cjs.js +10 -1
- package/dist/index.browser.cjs.js.map +1 -1
- package/dist/index.esm2017.js +10 -1
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +10 -1
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +4 -1
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +4 -1
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/dist/node-esm/src/implementation/error.d.ts +1 -0
- package/dist/node-esm/test/browser/string.browser.test.d.ts +17 -0
- package/dist/src/implementation/error.d.ts +1 -0
- package/dist/test/browser/string.browser.test.d.ts +17 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
#Unreleased
|
|
2
2
|
|
|
3
|
+
## 0.9.14-20221109210852
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`8876b783f`](https://github.com/firebase/firebase-js-sdk/commit/8876b783f27ba8ba0ad0305db4812432efa17461) [#6746](https://github.com/firebase/firebase-js-sdk/pull/6746) - Fixed issue where if btoa wasn't supported in the environment, then the user would get a generic message.
|
|
8
|
+
|
|
3
9
|
## 0.9.13
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -185,6 +185,9 @@ function serverFileWrongSize() {
|
|
|
185
185
|
function noDownloadURL() {
|
|
186
186
|
return new StorageError("no-download-url" /* NO_DOWNLOAD_URL */, 'The given file does not have any download URLs.');
|
|
187
187
|
}
|
|
188
|
+
function missingPolyFill(polyFill) {
|
|
189
|
+
return new StorageError("unsupported-environment" /* UNSUPPORTED_ENVIRONMENT */, polyFill + " is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.");
|
|
190
|
+
}
|
|
188
191
|
/**
|
|
189
192
|
* @internal
|
|
190
193
|
*/
|
|
@@ -950,6 +953,9 @@ function sliceBlob(blob, start, end) {
|
|
|
950
953
|
*/
|
|
951
954
|
/** Converts a Base64 encoded string to a binary string. */
|
|
952
955
|
function decodeBase64(encoded) {
|
|
956
|
+
if (typeof atob === 'undefined') {
|
|
957
|
+
throw missingPolyFill('base-64');
|
|
958
|
+
}
|
|
953
959
|
return atob(encoded);
|
|
954
960
|
}
|
|
955
961
|
|
|
@@ -1111,6 +1117,9 @@ function base64Bytes_(format, value) {
|
|
|
1111
1117
|
bytes = decodeBase64(value);
|
|
1112
1118
|
}
|
|
1113
1119
|
catch (e) {
|
|
1120
|
+
if (e.message.includes('polyfill')) {
|
|
1121
|
+
throw e;
|
|
1122
|
+
}
|
|
1114
1123
|
throw invalidFormat(format, 'Invalid character found');
|
|
1115
1124
|
}
|
|
1116
1125
|
var array = new Uint8Array(bytes.length);
|
|
@@ -3491,7 +3500,7 @@ var FirebaseStorageImpl = /** @class */ (function () {
|
|
|
3491
3500
|
}());
|
|
3492
3501
|
|
|
3493
3502
|
var name = "@firebase/storage";
|
|
3494
|
-
var version = "0.9.
|
|
3503
|
+
var version = "0.9.14-20221109210852";
|
|
3495
3504
|
|
|
3496
3505
|
/**
|
|
3497
3506
|
* @license
|