@edgedev/firebase 1.0.5 → 1.0.6
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/index.ts +7 -8
- package/package.json +4 -4
package/index.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import * as dotenv from "dotenv";
|
|
2
|
-
dotenv.config();
|
|
3
1
|
import { initializeApp } from "firebase/app";
|
|
4
2
|
import { reactive } from "vue";
|
|
5
3
|
|
|
@@ -11,12 +9,13 @@ import {
|
|
|
11
9
|
} from "firebase/firestore";
|
|
12
10
|
|
|
13
11
|
const firebaseConfig = {
|
|
14
|
-
apiKey:
|
|
15
|
-
authDomain:
|
|
16
|
-
projectId:
|
|
17
|
-
storageBucket:
|
|
18
|
-
messagingSenderId:
|
|
19
|
-
|
|
12
|
+
apiKey: import.meta.env.VITE_FIREBASE_API_KEY as string,
|
|
13
|
+
authDomain: import.meta.env.VITE_FIREBASE_AUTH_DOMAIN as string,
|
|
14
|
+
projectId: import.meta.env.VITE_FIREBASE_PROJECT_ID as string,
|
|
15
|
+
storageBucket: import.meta.env.VITE_FIREBASE_STORAGE_BUCKET as string,
|
|
16
|
+
messagingSenderId: import.meta.env
|
|
17
|
+
.VITE_FIREBASE_MESSAGING_SENDER_ID as string,
|
|
18
|
+
appId: import.meta.env.VITE_FIREBASE_APP_ID as string
|
|
20
19
|
};
|
|
21
20
|
|
|
22
21
|
// Initialize Firebase
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edgedev/firebase",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Composables and stores for firebase",
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"author": "Seth Fischer",
|
|
@@ -12,19 +12,19 @@
|
|
|
12
12
|
"@types/node": "^18.11.0",
|
|
13
13
|
"@typescript-eslint/eslint-plugin": "^5.40.0",
|
|
14
14
|
"@typescript-eslint/parser": "^5.40.0",
|
|
15
|
-
"dotenv": "^16.0.3",
|
|
16
15
|
"eslint": "^8.25.0",
|
|
17
16
|
"eslint-config-prettier": "^8.5.0",
|
|
18
17
|
"prettier": "^2.7.1",
|
|
19
18
|
"typescript": "^4.8.4",
|
|
19
|
+
"vite": "^3.1.8",
|
|
20
20
|
"vue": "^3.2.41"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"firebase": "^9.12.1"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"
|
|
27
|
-
"vue": "^3.0.0"
|
|
26
|
+
"vite": "^3.1.8",
|
|
27
|
+
"vue": "^3.0.0 - 4.0.0"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"test": "echo \"Error: no test specified\" && exit 1"
|