refactor: Change package name orbit-db -> orbitdb.

This commit is contained in:
Hayden Young 2023-07-15 15:44:06 +01:00
parent ecc1d961ff
commit af57db4337
6 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
{
"name": "orbit-db",
"name": "orbitdb",
"version": "0.29.0",
"description": "Distributed p2p database on IPFS",
"author": "Haad",

View File

@ -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 })

View File

@ -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)
* ...

View File

@ -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 })

View File

@ -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)

View File

@ -39,7 +39,7 @@ const databaseInterfaces = [
}
]
describe('orbit-db - Multiple Databases', function () {
describe('orbitdb - Multiple Databases', function () {
this.timeout(30000)
let ipfs1, ipfs2