@instantdb/react
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -46,16 +46,3 @@ "use strict"; | ||
exports.useAuth = useAuth; | ||
exports.auth = { | ||
sendMagicCode(params) { | ||
const db = (0, core_1.getDB)(); | ||
return db.sendMagicCode(params); | ||
}, | ||
verifyMagicCode(params) { | ||
const db = (0, core_1.getDB)(); | ||
return db.verifyMagicCode(params); | ||
}, | ||
signOut() { | ||
const db = (0, core_1.getDB)(); | ||
db.signOut(); | ||
}, | ||
}; | ||
exports.auth = core_1.auth; | ||
exports.id = core_1.uuid; | ||
@@ -62,0 +49,0 @@ exports.tx = core_1.instatx.tx; |
@@ -1,2 +0,2 @@ | ||
import { getDB, weakHash, instatx, uuid, init as initCore, getLocalId as getLocalIdCore, transact as transactCore, coerceQuery, } from "@instantdb/core"; | ||
import { getDB, weakHash, instatx, uuid, init as initCore, getLocalId as getLocalIdCore, transact as transactCore, coerceQuery, auth as authCore } from "@instantdb/core"; | ||
import { useEffect, useState } from "react"; | ||
@@ -40,16 +40,3 @@ export function init(config) { | ||
} | ||
export const auth = { | ||
sendMagicCode(params) { | ||
const db = getDB(); | ||
return db.sendMagicCode(params); | ||
}, | ||
verifyMagicCode(params) { | ||
const db = getDB(); | ||
return db.verifyMagicCode(params); | ||
}, | ||
signOut() { | ||
const db = getDB(); | ||
db.signOut(); | ||
}, | ||
}; | ||
export const auth = authCore; | ||
export const id = uuid; | ||
@@ -56,0 +43,0 @@ export const tx = instatx.tx; |
{ | ||
"name": "@instantdb/react", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "Instant DB for React", | ||
@@ -31,4 +31,4 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@instantdb/core": "0.5.0" | ||
"@instantdb/core": "0.5.1" | ||
} | ||
} |
@@ -11,2 +11,3 @@ import { | ||
coerceQuery, | ||
auth as authCore | ||
} from "@instantdb/core"; | ||
@@ -69,16 +70,3 @@ | ||
export const auth = { | ||
sendMagicCode(params: { email: string }) { | ||
const db = getDB(); | ||
return db.sendMagicCode(params); | ||
}, | ||
verifyMagicCode(params: { email: string; code: string }) { | ||
const db = getDB(); | ||
return db.verifyMagicCode(params); | ||
}, | ||
signOut() { | ||
const db = getDB(); | ||
db.signOut(); | ||
}, | ||
}; | ||
export const auth = authCore; | ||
export const id = uuid; | ||
@@ -85,0 +73,0 @@ export const tx = instatx.tx; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
14851
281
+ Added@instantdb/core@0.5.1(transitive)
- Removed@instantdb/core@0.5.0(transitive)
Updated@instantdb/core@0.5.1