@firebase/util 1.7.0 → 1.7.1-20221010190246

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.
@@ -653,30 +653,13 @@ var getDefaultsFromGlobal = function () {
653
653
  * process.env.__FIREBASE_DEFAULTS_PATH__
654
654
  */
655
655
  var getDefaultsFromEnvVariable = function () {
656
- if (typeof process === 'undefined') {
656
+ if (typeof process === 'undefined' || typeof process.env === 'undefined') {
657
657
  return;
658
658
  }
659
659
  var defaultsJsonString = process.env.__FIREBASE_DEFAULTS__;
660
- var defaultsJsonPath = process.env.__FIREBASE_DEFAULTS_PATH__;
661
660
  if (defaultsJsonString) {
662
- if (defaultsJsonPath) {
663
- console.warn("Values were provided for both __FIREBASE_DEFAULTS__ " +
664
- "and __FIREBASE_DEFAULTS_PATH__. __FIREBASE_DEFAULTS_PATH__ " +
665
- "will be ignored.");
666
- }
667
661
  return JSON.parse(defaultsJsonString);
668
662
  }
669
- if (defaultsJsonPath && typeof require !== 'undefined') {
670
- try {
671
- // eslint-disable-next-line @typescript-eslint/no-require-imports
672
- var json = require(defaultsJsonPath);
673
- return json;
674
- }
675
- catch (e) {
676
- console.warn("Unable to read defaults from file provided to " +
677
- ("__FIREBASE_DEFAULTS_PATH__: " + defaultsJsonPath));
678
- }
679
- }
680
663
  };
681
664
  var getDefaultsFromCookie = function () {
682
665
  if (typeof document === 'undefined') {