mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-03-30 15:08:28 +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",
|
||||
"description": "Distributed p2p database on IPFS",
|
||||
"author": "Haad",
|
||||
|
@ -4,7 +4,7 @@
|
||||
* @description Documents database.
|
||||
* @example <caption>Create documents db with custom index</caption>
|
||||
* import { create } from 'IPFS'
|
||||
* import { OrbitDB, Documents } from 'orbit-db'
|
||||
* import { OrbitDB, Documents } from 'orbitdb'
|
||||
*
|
||||
* const ipfs = create()
|
||||
* const orbitdb = await OrbitDB({ ipfs })
|
||||
|
@ -25,7 +25,7 @@ const databaseTypes = {
|
||||
/**
|
||||
* Add a new database type.
|
||||
* @example
|
||||
* import { addDatabaseType } from 'orbit-db'
|
||||
* import { addDatabaseType } from 'orbitdb'
|
||||
* const CustomDBTypeModule = async (params) => {
|
||||
* const database = await Database(...params)
|
||||
* ...
|
||||
|
@ -7,7 +7,7 @@
|
||||
* Key-value pairs are stored to the configured storage.
|
||||
* @example <caption>Specify a custom storage</caption>
|
||||
* import { create } from 'IPFS'
|
||||
* import { OrbitDB, KeyValueIndexed, IPFSBlockStorage } from 'orbit-db'
|
||||
* import { OrbitDB, KeyValueIndexed, IPFSBlockStorage } from 'orbitdb'
|
||||
*
|
||||
* const ipfs = create()
|
||||
* const storage = await IPFSBlockStorage({ ipfs })
|
||||
|
@ -38,7 +38,7 @@ const DefaultAccessController = async () => {
|
||||
|
||||
* @function
|
||||
* @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 {string} options.logId ID of the log
|
||||
* @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)
|
||||
|
||||
let ipfs1, ipfs2
|
||||
|
Loading…
x
Reference in New Issue
Block a user