cabal-core
Advanced tools
Comparing version 11.2.1 to 12.0.0
@@ -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¶m2=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 @@ |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
79481
0
260