Skip to content

Commit 1c2ff26

Browse files
committed
💥 Use import instead of require
1 parent e70dc86 commit 1c2ff26

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "purescript-firebase",
3-
"version": "0.0.7",
3+
"version": "0.0.8",
44
"main": "index.js",
55
"repository": "https://github.com/codingedgar/purescript-firebase.git",
66
"author": "codingedgar <[email protected]>",

‎src/Firebase/App.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// @ts-check
2-
const { initializeApp, getApp } = require("firebase/app");
2+
import { initializeApp, getApp } from "firebase/app";
33

44
export function initializeAppImp(config) {
55
return function () {

‎src/Firebase/Auth.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// @ts-check
2-
const {
2+
import {
33
getAuth,
44
onAuthStateChanged,
55
createUserWithEmailAndPassword,
@@ -12,7 +12,7 @@ const {
1212
sendSignInLinkToEmail,
1313
signInWithEmailLink,
1414
isSignInWithEmailLink,
15-
} = require("firebase/auth");
15+
} from "firebase/auth";
1616

1717
export {
1818
getIdTokenResult as _getIdTokenResult,

‎src/Firebase/Firestore.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// @ts-check
2-
const {
2+
import {
33
collection,
44
query,
55
where,
@@ -10,7 +10,7 @@ const {
1010
onSnapshot,
1111
setDoc,
1212
addDoc,
13-
} = require("firebase/firestore");
13+
} from "firebase/firestore";
1414

1515
/**
1616
*

0 commit comments

Comments
 (0)