@acala-network/chopsticks-db 1.0.2-2 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/base-sql.d.ts +3 -3
- package/dist/cjs/browser.d.ts +2 -2
- package/dist/cjs/db/entities.d.ts +1 -1
- package/dist/cjs/index.d.ts +1 -1
- package/dist/esm/base-sql.d.ts +3 -3
- package/dist/esm/browser.d.ts +2 -2
- package/dist/esm/db/entities.d.ts +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/package.json +2 -2
package/dist/cjs/base-sql.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BlockEntry, Database, KeyValueEntry } from '@acala-network/chopsticks-core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { BlockEntry, Database, KeyValueEntry } from '@acala-network/chopsticks-core';
|
|
2
|
+
import type { HexString } from '@polkadot/util/types';
|
|
3
|
+
import type { DataSource } from 'typeorm';
|
|
4
4
|
export declare abstract class BaseSqlDatabase implements Database {
|
|
5
5
|
abstract datasource: Promise<DataSource>;
|
|
6
6
|
close: () => Promise<void>;
|
package/dist/cjs/browser.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BlockEntry, Database, KeyValueEntry } from '@acala-network/chopsticks-core';
|
|
2
|
-
import { DBSchema, IDBPDatabase } from 'idb';
|
|
1
|
+
import type { BlockEntry, Database, KeyValueEntry } from '@acala-network/chopsticks-core';
|
|
2
|
+
import { type DBSchema, type IDBPDatabase } from 'idb';
|
|
3
3
|
interface Schema extends DBSchema {
|
|
4
4
|
keyValue: {
|
|
5
5
|
key: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BlockEntry, KeyValueEntry } from '@acala-network/chopsticks-core';
|
|
1
|
+
import type { BlockEntry, KeyValueEntry } from '@acala-network/chopsticks-core';
|
|
2
2
|
import { EntitySchema } from 'typeorm';
|
|
3
3
|
export declare const KeyValuePair: EntitySchema<KeyValueEntry>;
|
|
4
4
|
export declare const BlockEntity: EntitySchema<BlockEntry>;
|
package/dist/cjs/index.d.ts
CHANGED
package/dist/esm/base-sql.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BlockEntry, Database, KeyValueEntry } from '@acala-network/chopsticks-core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { BlockEntry, Database, KeyValueEntry } from '@acala-network/chopsticks-core';
|
|
2
|
+
import type { HexString } from '@polkadot/util/types';
|
|
3
|
+
import type { DataSource } from 'typeorm';
|
|
4
4
|
export declare abstract class BaseSqlDatabase implements Database {
|
|
5
5
|
abstract datasource: Promise<DataSource>;
|
|
6
6
|
close: () => Promise<void>;
|
package/dist/esm/browser.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BlockEntry, Database, KeyValueEntry } from '@acala-network/chopsticks-core';
|
|
2
|
-
import { DBSchema, IDBPDatabase } from 'idb';
|
|
1
|
+
import type { BlockEntry, Database, KeyValueEntry } from '@acala-network/chopsticks-core';
|
|
2
|
+
import { type DBSchema, type IDBPDatabase } from 'idb';
|
|
3
3
|
interface Schema extends DBSchema {
|
|
4
4
|
keyValue: {
|
|
5
5
|
key: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BlockEntry, KeyValueEntry } from '@acala-network/chopsticks-core';
|
|
1
|
+
import type { BlockEntry, KeyValueEntry } from '@acala-network/chopsticks-core';
|
|
2
2
|
import { EntitySchema } from 'typeorm';
|
|
3
3
|
export declare const KeyValuePair: EntitySchema<KeyValueEntry>;
|
|
4
4
|
export declare const BlockEntity: EntitySchema<BlockEntry>;
|
package/dist/esm/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acala-network/chopsticks-db",
|
|
3
|
-
"version": "1.0.2
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"author": "Acala Developers <hello@acala.network>",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"depcheck": "npx depcheck"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@acala-network/chopsticks-core": "1.0.2
|
|
16
|
+
"@acala-network/chopsticks-core": "1.0.2",
|
|
17
17
|
"@polkadot/util": "^13.2",
|
|
18
18
|
"idb": "^8.0.1",
|
|
19
19
|
"sqlite3": "^5.1.7",
|