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

cabal-core

Package Overview
Dependencies
Maintainers
4
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cabal-core - npm Package Compare versions

Comparing version 11.2.1 to 12.0.0

2

index.js

@@ -34,3 +34,3 @@ var kappa = require('kappa-core')

* @param {string|function} storage - A hyperdb compatible storage function, or a string representing the local data path.
* @param {string} key - a protocol string, optionally with url parameters
* @param {string|Buffer} key - a hypercore public key
*/

@@ -37,0 +37,0 @@ function Cabal (storage, key, opts) {

{
"name": "cabal-core",
"version": "11.2.1",
"version": "12.0.0",
"description": " p2p db functions for chat ",

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

@@ -13,3 +13,3 @@ # cabal-core

### var cabal = Cabal([storage][, uriString][, opts])
### var cabal = Cabal([storage][, key][, opts])

@@ -20,3 +20,3 @@ Create a cabal p2p database using storage `storage`, which must be either a

`uriString` is a cabal URI string, of the form `cabal://<hexkey>[?param1=value1&param2=value2`. A hexidecimal key on its own will also be understood.
`key` is a cabal key, as a string or Buffer.

@@ -33,2 +33,7 @@ If this is a new cabal, `key` can be omitted and will be generated.

Other `opts` include:
- `opts.modKeys`: an array of keys to be considered moderators from this user's perspective.
- `opts.adminKeys`: an array of keys to be considered administrators from this user's perspective.
### cabal.getLocalKey(cb)

@@ -35,0 +40,0 @@

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