@firebase/util 1.10.0 → 1.10.1
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 +3 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm2017.js +3 -0
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.node.cjs.js +329 -324
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +3 -0
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/package.json +4 -3
- package/dist/index.esm5.js +0 -2129
- package/dist/index.esm5.js.map +0 -1
package/dist/index.cjs.js
CHANGED
|
@@ -157,6 +157,7 @@ const byteArrayToString = function (bytes) {
|
|
|
157
157
|
// We define it as an object literal instead of a class because a class compiled down to es5 can't
|
|
158
158
|
// be treeshaked. https://github.com/rollup/rollup/issues/1691
|
|
159
159
|
// Static lookup maps, lazily populated by init_()
|
|
160
|
+
// TODO(dlarocque): Define this as a class, since we no longer target ES5.
|
|
160
161
|
const base64 = {
|
|
161
162
|
/**
|
|
162
163
|
* Maps bytes to characters.
|
|
@@ -976,6 +977,8 @@ class FirebaseError extends Error {
|
|
|
976
977
|
this.name = ERROR_NAME;
|
|
977
978
|
// Fix For ES5
|
|
978
979
|
// https://github.com/Microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work
|
|
980
|
+
// TODO(dlarocque): Replace this with `new.target`: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-2.html#support-for-newtarget
|
|
981
|
+
// which we can now use since we no longer target ES5.
|
|
979
982
|
Object.setPrototypeOf(this, FirebaseError.prototype);
|
|
980
983
|
// Maintains proper stack trace for where our error was thrown.
|
|
981
984
|
// Only available on V8.
|