@arcblock/vc 1.28.5 → 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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/lib/index.js +0 -3
  3. package/package.json +19 -21
package/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
  ## Usage
10
10
 
11
11
  ```terminal
12
- pnpm install @arcblock/vc
12
+ bun install @arcblock/vc
13
13
  ```
14
14
 
15
15
  ```javascript
package/lib/index.js CHANGED
@@ -13,7 +13,6 @@ const { fromPublicKey } = require('@ocap/wallet');
13
13
  const { toTypeInfo, isValid, isFromPublicKey, fromPublicKeyHash } = require('@arcblock/did');
14
14
  const { toBase58, toBase64, fromBase64, fromBase58 } = require('@ocap/util');
15
15
 
16
- // eslint-disable-next-line
17
16
  const debug = require('debug')(require('../package.json').name);
18
17
 
19
18
  const proofTypes = {
@@ -78,7 +77,6 @@ async function create({
78
77
  const vcType = { ...typeInfo, role: types.RoleType.ROLE_VC };
79
78
  const vcDid = fromPublicKeyHash(wallet.hash(stringify(subject)), vcType);
80
79
 
81
- // eslint-disable-next-line no-param-reassign
82
80
  issuanceDate = issuanceDate || new Date().toISOString();
83
81
 
84
82
  const vcObj = {
@@ -297,7 +295,6 @@ async function createCredentialList({ claims, issuer, issuanceDate }) {
297
295
  return results;
298
296
  }
299
297
 
300
- // eslint-disable-next-line require-await
301
298
  async function verifyCredentialList({ credentials, trustedIssuers }) {
302
299
  if (!credentials || !Array.isArray(credentials)) {
303
300
  throw new Error('Can not verify with empty credentials list');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcblock/vc",
3
- "version": "1.28.5",
3
+ "version": "1.28.7",
4
4
  "description": "Javascript lib to work with ArcBlock Verifiable Credentials",
5
5
  "keywords": [
6
6
  "arcblock",
@@ -25,35 +25,33 @@
25
25
  "files": [
26
26
  "lib"
27
27
  ],
28
- "devDependencies": {
29
- "jest": "^29.7.0"
30
- },
28
+ "devDependencies": {},
31
29
  "repository": {
32
30
  "type": "git",
33
31
  "url": "git+https://github.com/ArcBlock/blockchain.git"
34
32
  },
33
+ "scripts": {
34
+ "lint": "biome check",
35
+ "lint:fix": "biome check --write",
36
+ "docs": "bun run gen-dts && bun run gen-docs && bun run cleanup-docs && bun run format-docs",
37
+ "cleanup-docs": "node ../../scripts/cleanup-docs.js docs/README.md $npm_package_name",
38
+ "gen-docs": "jsdoc2md lib/index.js > docs/README.md",
39
+ "gen-dts": "j2d lib/index.js",
40
+ "format-docs": "remark . -o",
41
+ "test": "bun test",
42
+ "coverage": "npm run test -- --coverage"
43
+ },
35
44
  "bugs": {
36
45
  "url": "https://github.com/ArcBlock/blockchain/issues"
37
46
  },
38
47
  "dependencies": {
48
+ "@arcblock/did": "1.28.7",
49
+ "@ocap/mcrypto": "1.28.7",
50
+ "@ocap/util": "1.28.7",
51
+ "@ocap/wallet": "1.28.7",
39
52
  "debug": "^4.3.6",
40
53
  "is-absolute-url": "^3.0.3",
41
54
  "json-stable-stringify": "^1.0.1",
42
- "lodash": "^4.17.21",
43
- "@arcblock/did": "1.28.5",
44
- "@ocap/mcrypto": "1.28.5",
45
- "@ocap/util": "1.28.5",
46
- "@ocap/wallet": "1.28.5"
47
- },
48
- "scripts": {
49
- "lint": "eslint tests lib",
50
- "lint:fix": "eslint --fix tests lib",
51
- "docs": "pnpm run gen-dts && pnpm run gen-docs && pnpm run cleanup-docs && pnpm run format-docs",
52
- "cleanup-docs": "node ../../scripts/cleanup-docs.js docs/README.md $npm_package_name",
53
- "gen-docs": "jsdoc2md lib/index.js > docs/README.md",
54
- "gen-dts": "j2d lib/index.js",
55
- "format-docs": "remark . -o",
56
- "test": "jest --forceExit --detectOpenHandles",
57
- "coverage": "npm run test -- --coverage"
55
+ "lodash": "^4.17.21"
58
56
  }
59
- }
57
+ }