@ocap/statedb-memory 1.14.24 → 1.14.25

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
@@ -36,7 +36,7 @@ class MemoryTable extends StateDBTable {
36
36
  }
37
37
 
38
38
  _update(id, updates) {
39
- const doc = this._get(id);
39
+ const doc = this.collection.by(this.uniqIndex, id);
40
40
  if (!doc) {
41
41
  throw new Error(`${this.name} does not exists: ${id}`);
42
42
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ocap/statedb-memory",
3
3
  "description": "OCAP statedb adapter that uses memory as backend statedb, just for test purpose",
4
- "version": "1.14.24",
4
+ "version": "1.14.25",
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"
39
39
  },
40
- "gitHead": "83c2a3080ce30298e608d2325a534ff7e0c6f4a1",
40
+ "gitHead": "52a5499e4794af7f973a6e61dea78cb2e61c10a4",
41
41
  "dependencies": {
42
- "@ocap/state": "1.14.24",
43
- "@ocap/statedb": "1.14.24",
42
+ "@ocap/state": "1.14.25",
43
+ "@ocap/statedb": "1.14.25",
44
44
  "debug": "^4.3.3",
45
45
  "lodash": "^4.17.21",
46
46
  "lokijs": "^1.5.11"