@sneat/app 0.27.5 → 0.27.7

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.
@@ -6,20 +6,21 @@
6
6
  * on performance if an error is thrown.
7
7
  */
8
8
  // import 'zone.js/dist/zone-error';
9
- const useNgrok = window.location.hostname.includes('.ngrok.');
10
- const useSSL = useNgrok || window.location.hostname == 'local-app.sneat.ws';
9
+ const browserHostname = typeof location === 'undefined' ? '' : location.hostname;
10
+ const useNgrok = browserHostname.includes('.ngrok.');
11
+ const useSSL = useNgrok || browserHostname == 'local-app.sneat.ws';
11
12
  // const nonSecureEmulatorHost = '127.0.0.1'; // 'localhost';
12
13
  const nonSecureEmulatorHost = '127.0.0.1'; // 'localhost';
13
14
  export const firebaseEmulatorConfig = {
14
15
  authPort: useSSL ? 443 : 9099,
15
16
  authHost: useNgrok
16
- ? window.location.hostname
17
+ ? browserHostname
17
18
  : useSSL
18
19
  ? 'local-fb-auth.sneat.ws'
19
20
  : nonSecureEmulatorHost,
20
21
  firestorePort: useSSL ? 443 : 8080,
21
22
  firestoreHost: useNgrok
22
- ? window.location.hostname
23
+ ? browserHostname
23
24
  : useSSL
24
25
  ? 'local-firestore.sneat.ws'
25
26
  : nonSecureEmulatorHost,
@@ -1 +1 @@
1
- {"version":3,"file":"environment.base.js","sourceRoot":"","sources":["../../../../../libs/app/src/environments/environment.base.ts"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,oCAAoC;AAEpC,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;AAC9D,MAAM,MAAM,GAAG,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,QAAQ,IAAI,oBAAoB,CAAC;AAE5E,6DAA6D;AAC7D,MAAM,qBAAqB,GAAG,WAAW,CAAC,CAAC,eAAe;AAE1D,MAAM,CAAC,MAAM,sBAAsB,GAA4B;IAC7D,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI;IAC7B,QAAQ,EAAE,QAAQ;QAChB,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ;QAC1B,CAAC,CAAC,MAAM;YACN,CAAC,CAAC,wBAAwB;YAC1B,CAAC,CAAC,qBAAqB;IAC3B,aAAa,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI;IAClC,aAAa,EAAE,QAAQ;QACrB,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ;QAC1B,CAAC,CAAC,MAAM;YACN,CAAC,CAAC,0BAA0B;YAC5B,CAAC,CAAC,qBAAqB;CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,yBAAyB,CAAC;AAE9D,MAAM,cAAc,GAAoB;IACtC,QAAQ,EAAE,sBAAsB;IAChC,MAAM,EAAE,oBAAoB;IAC5B,UAAU,EAAE,WAAW;IACvB,SAAS,EAAE,iBAAiB,EAAE,sDAAsD;IACpF,KAAK,EAAE,oBAAoB;IAC3B,aAAa,EAAE,qBAAqB;CACrC,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAuB;IAC3D,UAAU,EAAE,KAAK;IACjB,QAAQ;IACR,MAAM,EAAE,EAAE;IACV,cAAc;CACf,CAAC","sourcesContent":["import {\n IEnvironmentConfig,\n IFirebaseConfig,\n IFirebaseEmulatorConfig,\n} from '@sneat/core';\n/*\n * For easier debugging in development mode, you can import the following file\n * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.\n *\n * This import should be commented out in production mode because it will have a negative impact\n * on performance if an error is thrown.\n */\n// import 'zone.js/dist/zone-error';\n\nconst useNgrok = window.location.hostname.includes('.ngrok.');\nconst useSSL = useNgrok || window.location.hostname == 'local-app.sneat.ws';\n\n// const nonSecureEmulatorHost = '127.0.0.1'; // 'localhost';\nconst nonSecureEmulatorHost = '127.0.0.1'; // 'localhost';\n\nexport const firebaseEmulatorConfig: IFirebaseEmulatorConfig = {\n authPort: useSSL ? 443 : 9099,\n authHost: useNgrok\n ? window.location.hostname\n : useSSL\n ? 'local-fb-auth.sneat.ws'\n : nonSecureEmulatorHost,\n firestorePort: useSSL ? 443 : 8080,\n firestoreHost: useNgrok\n ? window.location.hostname\n : useSSL\n ? 'local-firestore.sneat.ws'\n : nonSecureEmulatorHost,\n};\n\nexport const notNeededForEmulator = 'not-needed-for-emulator';\n\nconst firebaseConfig: IFirebaseConfig = {\n emulator: firebaseEmulatorConfig,\n apiKey: notNeededForEmulator,\n authDomain: 'sneat.app',\n projectId: 'local-sneat-app', // The 'demo-' prefix is added if useEmulators is true\n appId: notNeededForEmulator,\n measurementId: 'G-PROVIDE_IF_NEEDED',\n};\n\nexport const emulatorEnvironmentConfig: IEnvironmentConfig = {\n production: false,\n useNgrok,\n agents: {},\n firebaseConfig,\n};\n"]}
1
+ {"version":3,"file":"environment.base.js","sourceRoot":"","sources":["../../../../../libs/app/src/environments/environment.base.ts"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,oCAAoC;AAEpC,MAAM,eAAe,GACnB,OAAO,QAAQ,KAAK,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC;AAC3D,MAAM,QAAQ,GAAG,eAAe,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;AACrD,MAAM,MAAM,GAAG,QAAQ,IAAI,eAAe,IAAI,oBAAoB,CAAC;AAEnE,6DAA6D;AAC7D,MAAM,qBAAqB,GAAG,WAAW,CAAC,CAAC,eAAe;AAE1D,MAAM,CAAC,MAAM,sBAAsB,GAA4B;IAC7D,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI;IAC7B,QAAQ,EAAE,QAAQ;QAChB,CAAC,CAAC,eAAe;QACjB,CAAC,CAAC,MAAM;YACN,CAAC,CAAC,wBAAwB;YAC1B,CAAC,CAAC,qBAAqB;IAC3B,aAAa,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI;IAClC,aAAa,EAAE,QAAQ;QACrB,CAAC,CAAC,eAAe;QACjB,CAAC,CAAC,MAAM;YACN,CAAC,CAAC,0BAA0B;YAC5B,CAAC,CAAC,qBAAqB;CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,yBAAyB,CAAC;AAE9D,MAAM,cAAc,GAAoB;IACtC,QAAQ,EAAE,sBAAsB;IAChC,MAAM,EAAE,oBAAoB;IAC5B,UAAU,EAAE,WAAW;IACvB,SAAS,EAAE,iBAAiB,EAAE,sDAAsD;IACpF,KAAK,EAAE,oBAAoB;IAC3B,aAAa,EAAE,qBAAqB;CACrC,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAuB;IAC3D,UAAU,EAAE,KAAK;IACjB,QAAQ;IACR,MAAM,EAAE,EAAE;IACV,cAAc;CACf,CAAC","sourcesContent":["import {\n IEnvironmentConfig,\n IFirebaseConfig,\n IFirebaseEmulatorConfig,\n} from '@sneat/core';\n/*\n * For easier debugging in development mode, you can import the following file\n * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.\n *\n * This import should be commented out in production mode because it will have a negative impact\n * on performance if an error is thrown.\n */\n// import 'zone.js/dist/zone-error';\n\nconst browserHostname =\n typeof location === 'undefined' ? '' : location.hostname;\nconst useNgrok = browserHostname.includes('.ngrok.');\nconst useSSL = useNgrok || browserHostname == 'local-app.sneat.ws';\n\n// const nonSecureEmulatorHost = '127.0.0.1'; // 'localhost';\nconst nonSecureEmulatorHost = '127.0.0.1'; // 'localhost';\n\nexport const firebaseEmulatorConfig: IFirebaseEmulatorConfig = {\n authPort: useSSL ? 443 : 9099,\n authHost: useNgrok\n ? browserHostname\n : useSSL\n ? 'local-fb-auth.sneat.ws'\n : nonSecureEmulatorHost,\n firestorePort: useSSL ? 443 : 8080,\n firestoreHost: useNgrok\n ? browserHostname\n : useSSL\n ? 'local-firestore.sneat.ws'\n : nonSecureEmulatorHost,\n};\n\nexport const notNeededForEmulator = 'not-needed-for-emulator';\n\nconst firebaseConfig: IFirebaseConfig = {\n emulator: firebaseEmulatorConfig,\n apiKey: notNeededForEmulator,\n authDomain: 'sneat.app',\n projectId: 'local-sneat-app', // The 'demo-' prefix is added if useEmulators is true\n appId: notNeededForEmulator,\n measurementId: 'G-PROVIDE_IF_NEEDED',\n};\n\nexport const emulatorEnvironmentConfig: IEnvironmentConfig = {\n production: false,\n useNgrok,\n agents: {},\n firebaseConfig,\n};\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sneat/app",
3
- "version": "0.27.5",
3
+ "version": "0.27.7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },