"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "helpers/fb/index.ts" between
hoppscotch-2.0.0.tar.gz and hoppscotch-2.1.0.tar.gz

About: Hoppscotch is a light-weight, web based API development suite.

index.ts  (hoppscotch-2.0.0):index.ts  (hoppscotch-2.1.0)
import firebase from "firebase/app" import { initializeApp } from "firebase/app"
import { initAnalytics } from "./analytics" import { initAnalytics } from "./analytics"
import { initAuth } from "./auth" import { initAuth } from "./auth"
import { initCollections } from "./collections" import { initCollections } from "./collections"
import { initEnvironments } from "./environments" import { initEnvironments } from "./environments"
import { initHistory } from "./history" import { initHistory } from "./history"
import { initSettings } from "./settings" import { initSettings } from "./settings"
const firebaseConfig = { const firebaseConfig = {
apiKey: process.env.API_KEY, apiKey: process.env.API_KEY,
authDomain: process.env.AUTH_DOMAIN, authDomain: process.env.AUTH_DOMAIN,
skipping to change at line 25 skipping to change at line 25
messagingSenderId: process.env.MESSAGING_SENDER_ID, messagingSenderId: process.env.MESSAGING_SENDER_ID,
appId: process.env.APP_ID, appId: process.env.APP_ID,
measurementId: process.env.MEASUREMENT_ID, measurementId: process.env.MEASUREMENT_ID,
} }
let initialized = false let initialized = false
export function initializeFirebase() { export function initializeFirebase() {
if (!initialized) { if (!initialized) {
try { try {
firebase.initializeApp(firebaseConfig) initializeApp(firebaseConfig)
initAuth() initAuth()
initSettings() initSettings()
initCollections() initCollections()
initHistory() initHistory()
initEnvironments() initEnvironments()
initAnalytics() initAnalytics()
initialized = true initialized = true
} catch (e) { } catch (e) {
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)