🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@instantdb/react

Package Overview
Dependencies
Maintainers
2
Versions
314
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@instantdb/react - npm Package Compare versions

Comparing version

to
0.5.1

15

dist/index.js

@@ -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;

4

package.json
{
"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