@ocap/tx-util 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
@@ -18,7 +18,7 @@
18
18
  ```sh
19
19
  npm install @ocap/tx-util
20
20
  // or
21
- pnpm install @ocap/tx-util
21
+ bun install @ocap/tx-util
22
22
  ```
23
23
 
24
24
  ## Usage
package/lib/verifier.js CHANGED
@@ -1,6 +1,5 @@
1
- /* eslint-disable object-curly-newline */
2
1
  const Client = require('@ocap/client');
3
- const { EventEmitter } = require('events');
2
+ const { EventEmitter } = require('node:events');
4
3
 
5
4
  const debug = require('debug')(require('../package.json').name);
6
5
 
@@ -51,7 +50,7 @@ const create =
51
50
  }
52
51
  debug(`${label}.verify.pending`, { [key]: param, code: res.code, retryCount });
53
52
  setTimeout(doCheck, checkInterval);
54
- } catch (err) {
53
+ } catch (_err) {
55
54
  events.emit('error', {
56
55
  [key]: param,
57
56
  type: 'invalid',
@@ -64,7 +63,6 @@ const create =
64
63
  setTimeout(doCheck, checkInterval);
65
64
  }
66
65
  } catch (err) {
67
- // eslint-disable-next-line no-console
68
66
  console.error(`${label}.verify.error`, err);
69
67
  setTimeout(doCheck, checkInterval);
70
68
  events.emit('error', {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ocap/tx-util",
3
3
  "description": "Utility to work with forge transactions",
4
- "version": "1.28.6",
4
+ "version": "1.28.7",
5
5
  "author": {
6
6
  "name": "wangshijun",
7
7
  "email": "shijun@arcblock.io",
@@ -18,15 +18,14 @@
18
18
  "access": "public"
19
19
  },
20
20
  "dependencies": {
21
- "debug": "^4.3.6",
22
- "@ocap/client": "1.28.6",
23
- "@ocap/tx-protocols": "1.28.6"
21
+ "@ocap/client": "1.28.7",
22
+ "@ocap/tx-protocols": "1.28.7",
23
+ "debug": "^4.3.6"
24
24
  },
25
25
  "devDependencies": {
26
- "jest": "^29.7.0",
26
+ "@ocap/e2e-test": "1.28.7",
27
27
  "remark-cli": "^10.0.1",
28
- "remark-preset-github": "^4.0.4",
29
- "@ocap/e2e-test": "1.28.6"
28
+ "remark-preset-github": "^4.0.4"
30
29
  },
31
30
  "remarkConfig": {
32
31
  "plugins": [
@@ -54,16 +53,16 @@
54
53
  "type": "git",
55
54
  "url": "https://github.com/ArcBlock/blockchain/tree/master/core/tx-util"
56
55
  },
57
- "gitHead": "87990c8b5e215107fc587c1ced0d6b3e2cd2483e",
58
56
  "scripts": {
59
- "lint": "eslint lib tests",
60
- "lint:fix": "eslint --fix lib tests",
61
- "docs": "pnpm run gen-dts && pnpm run gen-docs && pnpm run cleanup-docs && pnpm run format-docs",
57
+ "lint": "biome check",
58
+ "lint:fix": "biome check --write",
59
+ "docs": "bun run gen-dts && bun run gen-docs && bun run cleanup-docs && bun run format-docs",
62
60
  "cleanup-docs": "node ../../scripts/cleanup-docs.js docs/README.md $npm_package_name",
63
61
  "gen-dts": "j2d lib/index.js",
64
62
  "gen-docs": "jsdoc2md lib/index.js > docs/README.md",
65
63
  "format-docs": "remark . -o",
66
- "test": "jest --forceExit --detectOpenHandles",
64
+ "test": "bun test",
67
65
  "coverage": "npm run test -- --coverage"
68
- }
69
- }
66
+ },
67
+ "gitHead": "87990c8b5e215107fc587c1ced0d6b3e2cd2483e"
68
+ }