Skip to content

Commit

Permalink
fix: lerna issue
Browse files Browse the repository at this point in the history
  • Loading branch information
elribonazo committed Jan 26, 2025
1 parent a4f5127 commit e104849
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 26 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"version": "independent"
"version": "0.0.0"
}
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/ridb-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trust0/ridb-core",
"description": "RIDB core.",
"description": "RIDB core",
"type": "module",
"publishConfig": {
"access": "public"
Expand Down
50 changes: 29 additions & 21 deletions packages/ridb-level/docs/classes/LevelDB.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# Class: LevelDB\<T\>

Defined in: [ridb-level/src/index.ts:37](https://github.com/trust0-project/RIDB/blob/56df6bd3359709e04686365976e2362ca0f2a5ff/packages/ridb-level/src/index.ts#L37)
Defined in: [ridb-level/src/index.ts:37](https://github.com/elribonazo/RIDB/blob/94fb471a7843bae2924c2c5eb61059582cf42e9d/packages/ridb-level/src/index.ts#L37)

## Extends

Expand All @@ -22,7 +22,7 @@ Defined in: [ridb-level/src/index.ts:37](https://github.com/trust0-project/RIDB/

> **new LevelDB**\<`T`\>(`Level`, `name`, `schemas`, `options`): [`LevelDB`](LevelDB.md)\<`T`\>
Defined in: [ridb-level/src/index.ts:48](https://github.com/trust0-project/RIDB/blob/56df6bd3359709e04686365976e2362ca0f2a5ff/packages/ridb-level/src/index.ts#L48)
Defined in: [ridb-level/src/index.ts:48](https://github.com/elribonazo/RIDB/blob/94fb471a7843bae2924c2c5eb61059582cf42e9d/packages/ridb-level/src/index.ts#L48)

#### Parameters

Expand Down Expand Up @@ -56,7 +56,7 @@ Defined in: [ridb-level/src/index.ts:48](https://github.com/trust0-project/RIDB/

> `readonly` **core**: `CoreStorage`
Defined in: ridb-core/pkg/ridb\_core.d.ts:644
Defined in: ridb-core/pkg/ridb\_core.d.ts:336

#### Inherited from

Expand All @@ -68,15 +68,15 @@ Defined in: ridb-core/pkg/ridb\_core.d.ts:644

> `private` **db**: `Level`
Defined in: [ridb-level/src/index.ts:38](https://github.com/trust0-project/RIDB/blob/56df6bd3359709e04686365976e2362ca0f2a5ff/packages/ridb-level/src/index.ts#L38)
Defined in: [ridb-level/src/index.ts:38](https://github.com/elribonazo/RIDB/blob/94fb471a7843bae2924c2c5eb61059582cf42e9d/packages/ridb-level/src/index.ts#L38)

***

### dbName

> `readonly` **dbName**: `string`
Defined in: ridb-core/pkg/ridb\_core.d.ts:641
Defined in: ridb-core/pkg/ridb\_core.d.ts:333

#### Inherited from

Expand All @@ -88,7 +88,7 @@ Defined in: ridb-core/pkg/ridb\_core.d.ts:641

> `readonly` **options**: `BaseStorageOptions`
Defined in: ridb-core/pkg/ridb\_core.d.ts:643
Defined in: ridb-core/pkg/ridb\_core.d.ts:335

#### Inherited from

Expand All @@ -100,7 +100,7 @@ Defined in: ridb-core/pkg/ridb\_core.d.ts:643

> `readonly` **schemas**: `Record`\<keyof `T`, `Schema`\<`T`\[keyof `T`\]\>\>
Defined in: ridb-core/pkg/ridb\_core.d.ts:642
Defined in: ridb-core/pkg/ridb\_core.d.ts:334

#### Inherited from

Expand All @@ -112,7 +112,7 @@ Defined in: ridb-core/pkg/ridb\_core.d.ts:642

> **addIndexSchemas**(): `null`
Defined in: ridb-core/pkg/ridb\_core.d.ts:654
Defined in: ridb-core/pkg/ridb\_core.d.ts:346

#### Returns

Expand All @@ -128,7 +128,7 @@ Defined in: ridb-core/pkg/ridb\_core.d.ts:654

> **close**(): `Promise`\<`void`\>
Defined in: [ridb-level/src/index.ts:57](https://github.com/trust0-project/RIDB/blob/56df6bd3359709e04686365976e2362ca0f2a5ff/packages/ridb-level/src/index.ts#L57)
Defined in: [ridb-level/src/index.ts:57](https://github.com/elribonazo/RIDB/blob/94fb471a7843bae2924c2c5eb61059582cf42e9d/packages/ridb-level/src/index.ts#L57)

Close the database

Expand All @@ -144,11 +144,11 @@ Close the database

### count()

> **count**(`collectionName`, `query`): `Promise`\<`number`\>
> **count**(`collectionName`, `query`, `options`?): `Promise`\<`number`\>
Defined in: [ridb-level/src/index.ts:125](https://github.com/trust0-project/RIDB/blob/56df6bd3359709e04686365976e2362ca0f2a5ff/packages/ridb-level/src/index.ts#L125)
Defined in: [ridb-level/src/index.ts:125](https://github.com/elribonazo/RIDB/blob/94fb471a7843bae2924c2c5eb61059582cf42e9d/packages/ridb-level/src/index.ts#L125)

Count documents matching a query
Count documents matching a query (supports offset & limit)

#### Parameters

Expand All @@ -160,6 +160,10 @@ keyof `T`

`QueryType`\<`T`\[keyof `T`\]\>

##### options?

`QueryOptions`

#### Returns

`Promise`\<`number`\>
Expand All @@ -172,11 +176,11 @@ keyof `T`

### find()

> **find**(`collectionName`, `query`): `Promise`\<`Doc`\<`T`\[keyof `T`\]\>[]\>
> **find**(`collectionName`, `query`, `options`?): `Promise`\<`Doc`\<`T`\[keyof `T`\]\>[]\>
Defined in: [ridb-level/src/index.ts:145](https://github.com/trust0-project/RIDB/blob/56df6bd3359709e04686365976e2362ca0f2a5ff/packages/ridb-level/src/index.ts#L145)
Defined in: [ridb-level/src/index.ts:173](https://github.com/elribonazo/RIDB/blob/94fb471a7843bae2924c2c5eb61059582cf42e9d/packages/ridb-level/src/index.ts#L173)

Find documents matching a query
Find documents matching a query with pagination

#### Parameters

Expand All @@ -188,6 +192,10 @@ keyof `T`

`QueryType`\<`T`\[keyof `T`\]\>

##### options?

`QueryOptions`

#### Returns

`Promise`\<`Doc`\<`T`\[keyof `T`\]\>[]\>
Expand All @@ -202,7 +210,7 @@ keyof `T`

> **findDocumentById**(`collectionName`, `id`): `Promise`\<`undefined` \| `Doc`\<`T`\[keyof `T`\]\>\>
Defined in: [ridb-level/src/index.ts:61](https://github.com/trust0-project/RIDB/blob/56df6bd3359709e04686365976e2362ca0f2a5ff/packages/ridb-level/src/index.ts#L61)
Defined in: [ridb-level/src/index.ts:61](https://github.com/elribonazo/RIDB/blob/94fb471a7843bae2924c2c5eb61059582cf42e9d/packages/ridb-level/src/index.ts#L61)

Find a document by its ID

Expand Down Expand Up @@ -230,7 +238,7 @@ keyof `T`

> **getOption**(`name`): `undefined` \| `string` \| `number` \| `boolean`
Defined in: ridb-core/pkg/ridb\_core.d.ts:651
Defined in: ridb-core/pkg/ridb\_core.d.ts:343

#### Parameters

Expand All @@ -252,7 +260,7 @@ Defined in: ridb-core/pkg/ridb\_core.d.ts:651

> **getSchema**(`name`): `Schema`\<`any`\>
Defined in: ridb-core/pkg/ridb\_core.d.ts:652
Defined in: ridb-core/pkg/ridb\_core.d.ts:344

#### Parameters

Expand All @@ -274,7 +282,7 @@ Defined in: ridb-core/pkg/ridb\_core.d.ts:652

> **start**(): `Promise`\<`void`\>
Defined in: [ridb-level/src/index.ts:53](https://github.com/trust0-project/RIDB/blob/56df6bd3359709e04686365976e2362ca0f2a5ff/packages/ridb-level/src/index.ts#L53)
Defined in: [ridb-level/src/index.ts:53](https://github.com/elribonazo/RIDB/blob/94fb471a7843bae2924c2c5eb61059582cf42e9d/packages/ridb-level/src/index.ts#L53)

Start the database

Expand All @@ -292,7 +300,7 @@ Start the database

> **write**(`op`): `Promise`\<`Doc`\<`T`\[keyof `T`\]\>\>
Defined in: [ridb-level/src/index.ts:82](https://github.com/trust0-project/RIDB/blob/56df6bd3359709e04686365976e2362ca0f2a5ff/packages/ridb-level/src/index.ts#L82)
Defined in: [ridb-level/src/index.ts:82](https://github.com/elribonazo/RIDB/blob/94fb471a7843bae2924c2c5eb61059582cf42e9d/packages/ridb-level/src/index.ts#L82)

Write an operation (insert, update, delete)

Expand All @@ -316,7 +324,7 @@ Write an operation (insert, update, delete)

> `static` **create**\<`SchemasCreate`\>(`name`, `schemas`, `options`): `Promise`\<`BaseStorage`\<`SchemasCreate`\>\>
Defined in: [ridb-level/src/index.ts:39](https://github.com/trust0-project/RIDB/blob/56df6bd3359709e04686365976e2362ca0f2a5ff/packages/ridb-level/src/index.ts#L39)
Defined in: [ridb-level/src/index.ts:39](https://github.com/elribonazo/RIDB/blob/94fb471a7843bae2924c2c5eb61059582cf42e9d/packages/ridb-level/src/index.ts#L39)

#### Type Parameters

Expand Down
2 changes: 1 addition & 1 deletion packages/ridb-level/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@trust0/ridb-level",
"version": "1.1.4",
"description": "Level DB storage for @trust0/ridb",
"description": "Level DB storage for @trust0/ridb.",
"main": "./build/index.js",
"types": "./build/index.d.ts",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/ridb/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@trust0/ridb",
"version": "1.2.3",
"description": "Lightweight db encrypted and secure database wrapper for browser and nodejs",
"description": "Lightweight db encrypted and secure database wrapper for browser and nodejs.",
"main": "./build/index.js",
"types": "./build/index.d.ts",
"type": "module",
Expand Down

0 comments on commit e104849

Please sign in to comment.