@ocap/indexdb-memory 1.28.9 → 1.29.0

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.
@@ -0,0 +1,15 @@
1
+ Object.defineProperty(exports, '__esModule', { value: true });
2
+ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
3
+ const require_table_base = require('./base.cjs');
4
+ let _ocap_indexdb = require("@ocap/indexdb");
5
+
6
+ //#region src/table/transaction.ts
7
+ var Transaction = class extends require_table_base.default {
8
+ _insert(row) {
9
+ return super._insert((0, _ocap_indexdb.formatTxBeforeInsert)(row));
10
+ }
11
+ };
12
+ var transaction_default = Transaction;
13
+
14
+ //#endregion
15
+ exports.default = transaction_default;
@@ -0,0 +1,9 @@
1
+ import MemoryIndex from "./base.cjs";
2
+ import { TIndexedTransaction } from "@ocap/types";
3
+
4
+ //#region src/table/transaction.d.ts
5
+ declare class Transaction extends MemoryIndex<TIndexedTransaction> {
6
+ _insert(row: Record<string, unknown>): TIndexedTransaction & Record<string, unknown>;
7
+ }
8
+ //#endregion
9
+ export { Transaction as default };
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@ocap/indexdb-memory",
3
3
  "description": "OCAP indexdb adapter that uses memory as backend, just for test purpose",
4
- "version": "1.28.9",
4
+ "version": "1.29.0",
5
+ "type": "module",
5
6
  "author": "wangshijun <shijun@arcblock.io> (https://www.arcblock.io)",
6
7
  "bugs": {
7
8
  "url": "https://github.com/ArcBlock/blockchain/issues",
@@ -14,7 +15,12 @@
14
15
  "wangshijun <shijun@arcblock.io> (https://www.arcblock.io)"
15
16
  ],
16
17
  "devDependencies": {
17
- "@ocap/indexdb-test": "1.28.9"
18
+ "@ocap/indexdb-test": "1.29.0",
19
+ "@types/debug": "^4.1.12",
20
+ "@types/lodash": "^4.17.10",
21
+ "@types/lokijs": "^1.5.14",
22
+ "@types/node": "^22.7.5",
23
+ "tsdown": "^0.18.4"
18
24
  },
19
25
  "homepage": "https://github.com/ArcBlock/blockchain/tree/master/indexdb/memory",
20
26
  "keywords": [
@@ -23,9 +29,30 @@
23
29
  "memory"
24
30
  ],
25
31
  "license": "Apache-2.0",
26
- "main": "./lib/main.js",
32
+ "main": "./lib/main.cjs",
33
+ "module": "./esm/main.mjs",
34
+ "types": "./esm/main.d.mts",
35
+ "sideEffects": false,
36
+ "exports": {
37
+ ".": {
38
+ "types": "./esm/main.d.mts",
39
+ "import": "./esm/main.mjs",
40
+ "default": "./lib/main.cjs"
41
+ },
42
+ "./lib/*.js": {
43
+ "types": "./esm/*.d.mts",
44
+ "import": "./esm/*.mjs",
45
+ "default": "./lib/*.cjs"
46
+ },
47
+ "./lib/*": {
48
+ "types": "./esm/*.d.mts",
49
+ "import": "./esm/*.mjs",
50
+ "default": "./lib/*.cjs"
51
+ }
52
+ },
27
53
  "files": [
28
- "lib"
54
+ "lib",
55
+ "esm"
29
56
  ],
30
57
  "repository": {
31
58
  "type": "git",
@@ -35,16 +62,18 @@
35
62
  "lint": "biome check",
36
63
  "lint:fix": "biome check --write",
37
64
  "test": "bun test",
38
- "coverage": "npm run test -- --coverage"
65
+ "coverage": "npm run test -- --coverage",
66
+ "build": "tsdown",
67
+ "build:watch": "tsdown -w"
39
68
  },
40
69
  "gitHead": "87990c8b5e215107fc587c1ced0d6b3e2cd2483e",
41
70
  "dependencies": {
42
- "@arcblock/did": "1.28.9",
43
- "@ocap/indexdb": "1.28.9",
44
- "@ocap/util": "1.28.9",
45
- "debug": "^4.3.6",
46
- "empty-value": "^1.0.1",
47
- "lodash": "^4.17.21",
71
+ "@arcblock/did": "1.29.0",
72
+ "@ocap/indexdb": "1.29.0",
73
+ "@ocap/types": "1.29.0",
74
+ "@ocap/util": "1.29.0",
75
+ "debug": "^4.4.3",
76
+ "lodash": "^4.17.23",
48
77
  "lokijs": "^1.5.12"
49
78
  }
50
79
  }