Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@instantdb/core

Package Overview
Dependencies
Maintainers
2
Versions
205
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@instantdb/core - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

12

dist/index.d.ts

@@ -17,3 +17,13 @@ import { assert } from "./utils/error";

declare function coerceQuery(o: any): any;
export { init, getDB, getLocalId, transact, assert, ReactiveDB, weakHash, instatx, uuid, IndexedDBStorage, WindowNetworkListener, coerceQuery, };
declare const auth: {
sendMagicCode(params: {
email: string;
}): any;
verifyMagicCode(params: {
email: string;
code: string;
}): any;
signOut(): void;
};
export { init, getDB, getLocalId, transact, assert, ReactiveDB, weakHash, instatx, uuid, IndexedDBStorage, WindowNetworkListener, coerceQuery, auth, };
//# sourceMappingURL=index.d.ts.map

@@ -29,3 +29,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.coerceQuery = exports.WindowNetworkListener = exports.IndexedDBStorage = exports.uuid = exports.instatx = exports.weakHash = exports.ReactiveDB = exports.assert = exports.transact = exports.getLocalId = exports.getDB = exports.init = void 0;
exports.auth = exports.coerceQuery = exports.WindowNetworkListener = exports.IndexedDBStorage = exports.uuid = exports.instatx = exports.weakHash = exports.ReactiveDB = exports.assert = exports.transact = exports.getLocalId = exports.getDB = exports.init = void 0;
const error_1 = require("./utils/error");

@@ -82,2 +82,17 @@ Object.defineProperty(exports, "assert", { enumerable: true, get: function () { return error_1.assert; } });

exports.coerceQuery = coerceQuery;
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();
},
};
exports.auth = auth;
//# sourceMappingURL=index.js.map

@@ -17,3 +17,13 @@ import { assert } from "./utils/error";

declare function coerceQuery(o: any): any;
export { init, getDB, getLocalId, transact, assert, ReactiveDB, weakHash, instatx, uuid, IndexedDBStorage, WindowNetworkListener, coerceQuery, };
declare const auth: {
sendMagicCode(params: {
email: string;
}): any;
verifyMagicCode(params: {
email: string;
code: string;
}): any;
signOut(): void;
};
export { init, getDB, getLocalId, transact, assert, ReactiveDB, weakHash, instatx, uuid, IndexedDBStorage, WindowNetworkListener, coerceQuery, auth, };
//# sourceMappingURL=index.d.ts.map

@@ -40,3 +40,17 @@ import { assert } from "./utils/error";

}
export { init, getDB, getLocalId, transact, assert, ReactiveDB, weakHash, instatx, uuid, IndexedDBStorage, WindowNetworkListener, coerceQuery, };
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 { init, getDB, getLocalId, transact, assert, ReactiveDB, weakHash, instatx, uuid, IndexedDBStorage, WindowNetworkListener, coerceQuery, auth, };
//# sourceMappingURL=index.js.map

2

package.json
{
"name": "@instantdb/core",
"version": "0.5.0",
"version": "0.5.1",
"description": "Instant's core local abstraction",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -15,3 +15,3 @@ import { assert } from "./utils/error";

"Uh oh! Looks like `init` hasn't run yet. Make sure `init` runs " +
"before your first `useQuery` or `transact`.",
"before your first `useQuery` or `transact`.",
);

@@ -58,2 +58,17 @@ return _GLOBAL_DB;

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 {

@@ -72,2 +87,3 @@ init,

coerceQuery,
auth,
};

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc