@ocap/statedb-fs 1.28.6 → 1.28.7

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/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
  ```sh
10
10
  npm install @ocap/statedb-fs
11
11
  // or
12
- pnpm install @ocap/statedb-fs
12
+ bun install @ocap/statedb-fs
13
13
  ```
14
14
 
15
15
  ## Usage
package/lib/table/base.js CHANGED
@@ -1,5 +1,4 @@
1
- /* eslint-disable no-underscore-dangle */
2
- const path = require('path');
1
+ const path = require('node:path');
3
2
  const omit = require('lodash/omit');
4
3
  const { StateDBTable } = require('@ocap/statedb');
5
4
  const Lokijs = require('lokijs');
@@ -1,7 +1,6 @@
1
1
  const FsTable = require('./base');
2
2
 
3
3
  class RollupTable extends FsTable {
4
- // eslint-disable-next-line require-await
5
4
  async existByToken(token) {
6
5
  if (!token) {
7
6
  return false;
@@ -1,7 +1,6 @@
1
1
  const FsTable = require('./base');
2
2
 
3
3
  class TokenTable extends FsTable {
4
- // eslint-disable-next-line require-await
5
4
  async existBySymbol(symbol) {
6
5
  if (!symbol) {
7
6
  throw new Error('param symbol is required');
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ocap/statedb-fs",
3
3
  "description": "OCAP statedb adapter that uses fs as backend",
4
- "version": "1.28.6",
4
+ "version": "1.28.7",
5
5
  "author": "wangshijun <shijun@arcblock.io> (https://www.arcblock.io)",
6
6
  "bugs": {
7
7
  "url": "https://github.com/ArcBlock/blockchain/issues",
@@ -13,9 +13,7 @@
13
13
  "contributors": [
14
14
  "wangshijun <shijun@arcblock.io> (https://www.arcblock.io)"
15
15
  ],
16
- "devDependencies": {
17
- "jest": "^29.7.0"
18
- },
16
+ "devDependencies": {},
19
17
  "homepage": "https://github.com/ArcBlock/blockchain/tree/master/statedb/fs",
20
18
  "keywords": [
21
19
  "ocap",
@@ -31,19 +29,19 @@
31
29
  "type": "git",
32
30
  "url": "https://github.com/ArcBlock/blockchain/tree/master/statedb/fs"
33
31
  },
32
+ "scripts": {
33
+ "lint": "biome check",
34
+ "lint:fix": "biome check --write",
35
+ "test": "bun test",
36
+ "coverage": "npm run test -- --coverage & exit 0"
37
+ },
34
38
  "gitHead": "87990c8b5e215107fc587c1ced0d6b3e2cd2483e",
35
39
  "dependencies": {
40
+ "@ocap/state": "1.28.7",
41
+ "@ocap/statedb": "1.28.7",
42
+ "@ocap/util": "1.28.7",
36
43
  "debug": "^4.3.6",
37
44
  "lodash": "^4.17.21",
38
- "lokijs": "^1.5.12",
39
- "@ocap/statedb": "1.28.6",
40
- "@ocap/util": "1.28.6",
41
- "@ocap/state": "1.28.6"
42
- },
43
- "scripts": {
44
- "lint": "eslint tests lib",
45
- "lint:fix": "eslint --fix tests lib",
46
- "test": "jest --forceExit --detectOpenHandles",
47
- "coverage": "npm run test -- --coverage & exit 0"
45
+ "lokijs": "^1.5.12"
48
46
  }
49
- }
47
+ }