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

@browser-network/database

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@browser-network/database - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

6

dist/src/index.d.ts
import { LocalDB, WrappedState } from './LocalDB';
import { Network } from '@browser-network/network';
import Network from '@browser-network/network';
import * as t from './types.d';
declare type DbdbProps = {
network: Network;
secret: string;
appId: string;
network: Network;
};
export declare class Dbdb<S> {
export default class Dbdb<S> {
appId: string;

@@ -11,0 +11,0 @@ network: Network;

@@ -82,3 +82,2 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {

exports.__esModule = true;
exports.Dbdb = void 0;
var bnc = __importStar(require("@browser-network/crypto"));

@@ -294,3 +293,3 @@ var LocalDB_1 = require("./LocalDB");

}());
exports.Dbdb = Dbdb;
exports["default"] = Dbdb;
});
{
"name": "@browser-network/database",
"version": "0.0.3",
"version": "0.0.4",
"description": "A type of distributed database built on top of the distributed browser-network",

@@ -44,4 +44,4 @@ "main": "./dist/src/index.js",

"dependencies": {
"@browser-network/crypto": "^0.0.1",
"@browser-network/network": "^0.0.1",
"@browser-network/crypto": "^0.0.3",
"@browser-network/network": "^0.0.11",
"eccrypto": "^1.1.6"

@@ -48,0 +48,0 @@ },

@@ -66,9 +66,9 @@ # Distributed Browser Database (Dbdb)

const network = new Network.Network({
const network = new Network({
switchAddress: 'http://localhost:5678', // default address of switchboard
clientId: crypto.randomUUID(), // arbitrary string
secret: Bnc.generateSecret(),
networkId: 'test-network'
})
const dbdb = new Dbdb.Dbdb({
const dbdb = new Dbdb({
network: network,

@@ -75,0 +75,0 @@ secret: Bnc.generateSecret(),

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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