mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-07-05 20:12:32 +00:00
refactor: Change package name orbit-db -> orbitdb.
This commit is contained in:
parent
ecc1d961ff
commit
af57db4337
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "orbit-db",
|
"name": "orbitdb",
|
||||||
"version": "0.29.0",
|
"version": "0.29.0",
|
||||||
"description": "Distributed p2p database on IPFS",
|
"description": "Distributed p2p database on IPFS",
|
||||||
"author": "Haad",
|
"author": "Haad",
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* @description Documents database.
|
* @description Documents database.
|
||||||
* @example <caption>Create documents db with custom index</caption>
|
* @example <caption>Create documents db with custom index</caption>
|
||||||
* import { create } from 'IPFS'
|
* import { create } from 'IPFS'
|
||||||
* import { OrbitDB, Documents } from 'orbit-db'
|
* import { OrbitDB, Documents } from 'orbitdb'
|
||||||
*
|
*
|
||||||
* const ipfs = create()
|
* const ipfs = create()
|
||||||
* const orbitdb = await OrbitDB({ ipfs })
|
* const orbitdb = await OrbitDB({ ipfs })
|
||||||
|
@ -25,7 +25,7 @@ const databaseTypes = {
|
|||||||
/**
|
/**
|
||||||
* Add a new database type.
|
* Add a new database type.
|
||||||
* @example
|
* @example
|
||||||
* import { addDatabaseType } from 'orbit-db'
|
* import { addDatabaseType } from 'orbitdb'
|
||||||
* const CustomDBTypeModule = async (params) => {
|
* const CustomDBTypeModule = async (params) => {
|
||||||
* const database = await Database(...params)
|
* const database = await Database(...params)
|
||||||
* ...
|
* ...
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Key-value pairs are stored to the configured storage.
|
* Key-value pairs are stored to the configured storage.
|
||||||
* @example <caption>Specify a custom storage</caption>
|
* @example <caption>Specify a custom storage</caption>
|
||||||
* import { create } from 'IPFS'
|
* import { create } from 'IPFS'
|
||||||
* import { OrbitDB, KeyValueIndexed, IPFSBlockStorage } from 'orbit-db'
|
* import { OrbitDB, KeyValueIndexed, IPFSBlockStorage } from 'orbitdb'
|
||||||
*
|
*
|
||||||
* const ipfs = create()
|
* const ipfs = create()
|
||||||
* const storage = await IPFSBlockStorage({ ipfs })
|
* const storage = await IPFSBlockStorage({ ipfs })
|
||||||
|
@ -38,7 +38,7 @@ const DefaultAccessController = async () => {
|
|||||||
|
|
||||||
* @function
|
* @function
|
||||||
* @param {IPFS} ipfs An IPFS instance
|
* @param {IPFS} ipfs An IPFS instance
|
||||||
* @param {Object} identity Identity (https://github.com/orbitdb/orbit-db-identity-provider/blob/master/src/identity.js)
|
* @param {Object} identity Identity.
|
||||||
* @param {Object} options
|
* @param {Object} options
|
||||||
* @param {string} options.logId ID of the log
|
* @param {string} options.logId ID of the log
|
||||||
* @param {Object} options.access AccessController (./default-access-controller)
|
* @param {Object} options.access AccessController (./default-access-controller)
|
||||||
|
@ -39,7 +39,7 @@ const databaseInterfaces = [
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
describe('orbit-db - Multiple Databases', function () {
|
describe('orbitdb - Multiple Databases', function () {
|
||||||
this.timeout(30000)
|
this.timeout(30000)
|
||||||
|
|
||||||
let ipfs1, ipfs2
|
let ipfs1, ipfs2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user