@ocap/statedb-fs 1.14.24 → 1.15.1

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/lib/table/base.js CHANGED
@@ -53,7 +53,7 @@ class FsTable extends StateDBTable {
53
53
  }
54
54
 
55
55
  async _update(key, updates) {
56
- const doc = await this._get(key);
56
+ const doc = await this.collection.by(this.uniqIndex, key);
57
57
  if (!doc) {
58
58
  throw new Error(`${this.name} does not exists: ${key}`);
59
59
  }
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.14.24",
4
+ "version": "1.15.1",
5
5
  "author": "wangshijun <shijun@arcblock.io> (https://www.arcblock.io)",
6
6
  "bugs": {
7
7
  "url": "https://github.com/ArcBlock/asset-chain/issues",
@@ -37,10 +37,10 @@
37
37
  "test": "jest --forceExit --detectOpenHandles",
38
38
  "coverage": "npm run test -- --coverage & exit 0"
39
39
  },
40
- "gitHead": "83c2a3080ce30298e608d2325a534ff7e0c6f4a1",
40
+ "gitHead": "fd90388b68d95eba0c7b24d91fe5295dbb29b0a4",
41
41
  "dependencies": {
42
- "@ocap/state": "1.14.24",
43
- "@ocap/statedb": "1.14.24",
42
+ "@ocap/state": "1.15.1",
43
+ "@ocap/statedb": "1.15.1",
44
44
  "debug": "^4.3.3",
45
45
  "lodash": "^4.17.21",
46
46
  "lokijs": "^1.5.11"