@firebase/database 0.12.7 → 0.12.8-canary.44948ac91

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.
@@ -12260,7 +12260,7 @@ var parseRepoInfo = function (dataURL, nodeAdmin) {
12260
12260
  }
12261
12261
  var webSocketOnly = parsedUrl.scheme === 'ws' || parsedUrl.scheme === 'wss';
12262
12262
  return {
12263
- repoInfo: new RepoInfo(parsedUrl.host, parsedUrl.secure, namespace, nodeAdmin, webSocketOnly,
12263
+ repoInfo: new RepoInfo(parsedUrl.host, parsedUrl.secure, namespace, webSocketOnly, nodeAdmin,
12264
12264
  /*persistenceKey=*/ '',
12265
12265
  /*includeNamespaceInQueryParams=*/ namespace !== parsedUrl.subdomain),
12266
12266
  path: new Path(parsedUrl.pathString)
@@ -14011,7 +14011,7 @@ function repoManagerDatabaseFromApp(app, authProvider, appCheckProvider, url, no
14011
14011
  var repoInfo = parsedUrl.repoInfo;
14012
14012
  var isEmulator;
14013
14013
  var dbEmulatorHost = undefined;
14014
- if (typeof process !== 'undefined') {
14014
+ if (typeof process !== 'undefined' && process.env) {
14015
14015
  dbEmulatorHost = process.env[FIREBASE_DATABASE_EMULATOR_HOST_VAR];
14016
14016
  }
14017
14017
  if (dbEmulatorHost) {