@arcblock/validator 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.
@@ -17,7 +17,7 @@ function BNExtension(root) {
17
17
  prepare(value, helpers) {
18
18
  try {
19
19
  return { value: new BN(value) };
20
- } catch (err) {
20
+ } catch (_err) {
21
21
  return { errors: helpers.error("bn.nan") };
22
22
  }
23
23
  },
@@ -1,6 +1,6 @@
1
1
  import { Root, StringSchema } from "joi";
2
- import { HashType, KeyType, RoleType } from "@ocap/mcrypto";
3
2
  import { DIDTypeShortcut } from "@arcblock/did";
3
+ import { HashType, KeyType, RoleType } from "@ocap/mcrypto";
4
4
 
5
5
  //#region src/extension/did.d.ts
6
6
  interface DIDSchema extends StringSchema {
@@ -1,6 +1,6 @@
1
- import isEqual from "lodash/isEqual.js";
2
- import { types } from "@ocap/mcrypto";
3
1
  import { DID_PREFIX, DID_TYPE_ARCBLOCK, DID_TYPE_ETHEREUM, DID_TYPE_PASSKEY, isValid, toAddress, toTypeInfo, toTypeInfoStr } from "@arcblock/did";
2
+ import { types } from "@ocap/mcrypto";
3
+ import isEqual from "lodash/isEqual.js";
4
4
 
5
5
  //#region src/extension/did.ts
6
6
  const ruleTypes = {
@@ -19,7 +19,7 @@ function BNExtension(root) {
19
19
  prepare(value, helpers) {
20
20
  try {
21
21
  return { value: new bn_js.default(value) };
22
- } catch (err) {
22
+ } catch (_err) {
23
23
  return { errors: helpers.error("bn.nan") };
24
24
  }
25
25
  },
@@ -1,5 +1,5 @@
1
- import { AnySchema, Root } from "joi";
2
1
  import BN from "bn.js";
2
+ import { AnySchema, Root } from "joi";
3
3
 
4
4
  //#region src/extension/bn.d.ts
5
5
  interface BNSchema extends AnySchema {
@@ -1,8 +1,8 @@
1
1
  const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
+ let _arcblock_did = require("@arcblock/did");
3
+ let _ocap_mcrypto = require("@ocap/mcrypto");
2
4
  let lodash_isEqual = require("lodash/isEqual");
3
5
  lodash_isEqual = require_rolldown_runtime.__toESM(lodash_isEqual);
4
- let _ocap_mcrypto = require("@ocap/mcrypto");
5
- let _arcblock_did = require("@arcblock/did");
6
6
 
7
7
  //#region src/extension/did.ts
8
8
  const ruleTypes = {
@@ -1,6 +1,6 @@
1
1
  import { Root, StringSchema } from "joi";
2
- import { HashType, KeyType, RoleType } from "@ocap/mcrypto";
3
2
  import { DIDTypeShortcut } from "@arcblock/did";
3
+ import { HashType, KeyType, RoleType } from "@ocap/mcrypto";
4
4
 
5
5
  //#region src/extension/did.d.ts
6
6
  interface DIDSchema extends StringSchema {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "type": "module",
7
- "version": "1.28.6",
7
+ "version": "1.28.7",
8
8
  "description": "",
9
9
  "sideEffects": false,
10
10
  "main": "./lib/index.cjs",
@@ -31,22 +31,26 @@
31
31
  "lib",
32
32
  "esm"
33
33
  ],
34
+ "scripts": {
35
+ "lint": "biome check",
36
+ "lint:fix": "biome check --write",
37
+ "test": "bun test",
38
+ "coverage": "npm run test -- --coverage",
39
+ "build": "tsdown",
40
+ "build:watch": "tsdown -w"
41
+ },
34
42
  "dependencies": {
43
+ "@arcblock/did": "1.28.7",
44
+ "@ocap/mcrypto": "1.28.7",
45
+ "@ocap/util": "1.28.7",
35
46
  "bn.js": "5.2.2",
36
47
  "joi": "^17.7.0",
37
- "lodash": "^4.17.21",
38
- "@arcblock/did": "1.28.6",
39
- "@ocap/mcrypto": "1.28.6",
40
- "@ocap/util": "1.28.6"
48
+ "lodash": "^4.17.21"
41
49
  },
42
50
  "resolutions": {
43
51
  "bn.js": "5.2.2"
44
52
  },
45
53
  "devDependencies": {
46
- "@arcblock/eslint-config-ts": "0.3.3",
47
- "eslint": "^8.57.0",
48
- "jest": "^29.7.0",
49
- "ts-jest": "^29.2.5",
50
54
  "tsdown": "^0.18.4",
51
55
  "type-fest": "^3.1.0",
52
56
  "typescript": "^5.6.2"
@@ -54,13 +58,5 @@
54
58
  "keywords": [],
55
59
  "author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
56
60
  "license": "MIT",
57
- "gitHead": "e5764f753181ed6a7c615cd4fc6682aacf0cb7cd",
58
- "scripts": {
59
- "lint": "eslint tests src",
60
- "lint:fix": "eslint --fix tests src",
61
- "test": "jest --forceExit --detectOpenHandles",
62
- "coverage": "npm run test -- --coverage",
63
- "build": "tsdown",
64
- "build:watch": "tsdown -w"
65
- }
66
- }
61
+ "gitHead": "e5764f753181ed6a7c615cd4fc6682aacf0cb7cd"
62
+ }
package/LICENSE DELETED
@@ -1,13 +0,0 @@
1
- Copyright 2018-2025 ArcBlock
2
-
3
- Licensed under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License.
5
- You may obtain a copy of the License at
6
-
7
- http://www.apache.org/licenses/LICENSE-2.0
8
-
9
- Unless required by applicable law or agreed to in writing, software
10
- distributed under the License is distributed on an "AS IS" BASIS,
11
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- See the License for the specific language governing permissions and
13
- limitations under the License.