@browser-network/database
Advanced tools
Comparing version 0.0.3 to 0.0.4
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1269758
23904
+ Added@browser-network/crypto@0.0.3(transitive)
+ Added@browser-network/network@0.0.11(transitive)
+ Added@mapbox/node-pre-gyp@1.0.11(transitive)
+ Addedabbrev@1.1.1(transitive)
+ Addedagent-base@6.0.2(transitive)
+ Addedansi-regex@2.1.15.0.1(transitive)
+ Addedaproba@1.2.02.0.0(transitive)
+ Addedare-we-there-yet@1.1.72.0.0(transitive)
+ Addedaxios@0.26.1(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedchownr@1.1.42.0.0(transitive)
+ Addedcode-point-at@1.1.0(transitive)
+ Addedcolor-support@1.1.3(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedconsole-control-strings@1.1.0(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addeddebug@3.2.7(transitive)
+ Addeddeep-extend@0.6.0(transitive)
+ Addeddelegates@1.0.0(transitive)
+ Addeddetect-libc@1.0.32.0.3(transitive)
+ Addeddomexception@1.0.1(transitive)
+ Addedemoji-regex@8.0.0(transitive)
+ Addedfollow-redirects@1.15.9(transitive)
+ Addedfs-minipass@1.2.72.1.0(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedgauge@2.7.43.0.2(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedhas-unicode@2.0.1(transitive)
+ Addedhttps-proxy-agent@5.0.1(transitive)
+ Addediconv-lite@0.4.24(transitive)
+ Addedignore-walk@3.0.4(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedini@1.3.8(transitive)
+ Addedis-fullwidth-code-point@1.0.03.0.0(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedmake-dir@3.1.0(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedminipass@2.9.03.3.65.0.0(transitive)
+ Addedminizlib@1.3.32.1.2(transitive)
+ Addedmkdirp@0.5.61.0.4(transitive)
+ Addedneedle@2.9.1(transitive)
+ Addednode-fetch@2.7.0(transitive)
+ Addednode-pre-gyp@0.13.0(transitive)
+ Addednopt@4.0.35.0.0(transitive)
+ Addednpm-bundled@1.1.2(transitive)
+ Addednpm-normalize-package-bin@1.0.1(transitive)
+ Addednpm-packlist@1.4.8(transitive)
+ Addednpmlog@4.1.25.0.1(transitive)
+ Addednumber-is-nan@1.0.1(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedos-homedir@1.0.2(transitive)
+ Addedos-tmpdir@1.0.2(transitive)
+ Addedosenv@0.1.5(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedrc@1.2.8(transitive)
+ Addedreadable-stream@2.3.8(transitive)
+ Addedrimraf@2.7.13.0.2(transitive)
+ Addedsafe-buffer@5.1.2(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsax@1.4.1(transitive)
+ Addedsemver@5.7.26.3.17.6.3(transitive)
+ Addedset-blocking@2.0.0(transitive)
+ Addedsignal-exit@3.0.7(transitive)
+ Addedstring-width@1.0.24.2.3(transitive)
+ Addedstring_decoder@1.1.1(transitive)
+ Addedstrip-ansi@3.0.16.0.1(transitive)
+ Addedstrip-json-comments@2.0.1(transitive)
+ Addedtar@4.4.196.2.1(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addedwebidl-conversions@3.0.14.0.2(transitive)
+ Addedwhatwg-url@5.0.0(transitive)
+ Addedwide-align@1.1.5(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedwrtc@0.4.7(transitive)
+ Addedyallist@3.1.14.0.0(transitive)
- Removed@browser-network/network@0.0.1(transitive)