@acala-network/chopsticks-db 1.0.2-1 → 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.
@@ -1,6 +1,6 @@
1
- import { BlockEntry, Database, KeyValueEntry } from '@acala-network/chopsticks-core';
2
- import { DataSource } from 'typeorm';
3
- import { HexString } from '@polkadot/util/types';
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>;
@@ -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>;
@@ -1,4 +1,4 @@
1
- import { DataSource } from 'typeorm';
1
+ import type { DataSource } from 'typeorm';
2
2
  import { BaseSqlDatabase } from './base-sql.js';
3
3
  export declare class SqliteDatabase extends BaseSqlDatabase {
4
4
  datasource: Promise<DataSource>;
@@ -1,6 +1,6 @@
1
- import { BlockEntry, Database, KeyValueEntry } from '@acala-network/chopsticks-core';
2
- import { DataSource } from 'typeorm';
3
- import { HexString } from '@polkadot/util/types';
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>;
@@ -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>;
@@ -1,4 +1,4 @@
1
- import { DataSource } from 'typeorm';
1
+ import type { DataSource } from 'typeorm';
2
2
  import { BaseSqlDatabase } from './base-sql.js';
3
3
  export declare class SqliteDatabase extends BaseSqlDatabase {
4
4
  datasource: Promise<DataSource>;
package/package.json CHANGED
@@ -1,25 +1,28 @@
1
1
  {
2
2
  "name": "@acala-network/chopsticks-db",
3
- "version": "1.0.2-1",
3
+ "version": "1.0.2",
4
4
  "author": "Acala Developers <hello@acala.network>",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
+ "engines": {
8
+ "node": ">=v20"
9
+ },
7
10
  "scripts": {
8
11
  "clean": "rm -rf dist tsconfig.tsbuildinfo",
9
12
  "build": "yarn clean && ../../package-build.sh",
10
13
  "depcheck": "npx depcheck"
11
14
  },
12
15
  "dependencies": {
13
- "@acala-network/chopsticks-core": "1.0.2-1",
14
- "@polkadot/util": "^13.2.2",
15
- "idb": "^8.0.0",
16
+ "@acala-network/chopsticks-core": "1.0.2",
17
+ "@polkadot/util": "^13.2",
18
+ "idb": "^8.0.1",
16
19
  "sqlite3": "^5.1.7",
17
20
  "typeorm": "^0.3.20"
18
21
  },
19
22
  "devDependencies": {
20
- "@swc/cli": "0.5.0",
21
- "@swc/core": "^1.7.40",
22
- "typescript": "^5.6.3"
23
+ "@swc/cli": "0.5.2",
24
+ "@swc/core": "^1.10.1",
25
+ "typescript": "^5.7.2"
23
26
  },
24
27
  "files": [
25
28
  "dist/esm/**",