@firebase/util 1.10.3 → 1.11.0
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 +4 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm2017.js +4 -1
- package/dist/index.esm2017.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/postinstall.d.ts +18 -0
- package/dist/postinstall.js +24 -0
- package/dist/postinstall.mjs +20 -0
- package/dist/src/postinstall.d.ts +18 -0
- package/package.json +8 -5
- package/postinstall.js +153 -0
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { getDefaultsFromPostinstall } from '../postinstall.mjs';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* @license
|
|
3
5
|
* Copyright 2017 Google LLC
|
|
@@ -550,7 +552,8 @@ const getDefaultsFromCookie = () => {
|
|
|
550
552
|
*/
|
|
551
553
|
const getDefaults = () => {
|
|
552
554
|
try {
|
|
553
|
-
return (
|
|
555
|
+
return (getDefaultsFromPostinstall() ||
|
|
556
|
+
getDefaultsFromGlobal() ||
|
|
554
557
|
getDefaultsFromEnvVariable() ||
|
|
555
558
|
getDefaultsFromCookie());
|
|
556
559
|
}
|