@arcblock/validator 1.17.0 → 1.17.3
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/extension/did.d.ts +6 -5
- package/package.json +7 -6
package/lib/extension/did.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Root, StringSchema } from 'joi';
|
|
2
2
|
import { KeyType, HashType, RoleType } from '@ocap/mcrypto';
|
|
3
|
+
import { DIDTypeShortcut } from '@arcblock/did';
|
|
3
4
|
export interface DIDSchema extends StringSchema {
|
|
4
|
-
wallet(type:
|
|
5
|
-
pk(type:
|
|
6
|
-
hash(type:
|
|
7
|
-
role(type:
|
|
5
|
+
wallet(type: DIDTypeShortcut): this;
|
|
6
|
+
pk(type: KeyType): this;
|
|
7
|
+
hash(type: HashType): this;
|
|
8
|
+
role(type: RoleType): this;
|
|
8
9
|
}
|
|
9
10
|
export declare function DIDExtension(root: Root): {
|
|
10
11
|
type: string;
|
|
@@ -40,7 +41,7 @@ export declare function DIDExtension(root: Root): {
|
|
|
40
41
|
validate(value: string, helpers: any, args: any): any;
|
|
41
42
|
};
|
|
42
43
|
wallet: {
|
|
43
|
-
method(type:
|
|
44
|
+
method(type: DIDTypeShortcut): DIDSchema;
|
|
44
45
|
};
|
|
45
46
|
pk: {
|
|
46
47
|
method(type: KeyType): DIDSchema;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.17.
|
|
6
|
+
"version": "1.17.3",
|
|
7
7
|
"description": "",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"typings": "lib/index.d.ts",
|
|
@@ -21,12 +21,13 @@
|
|
|
21
21
|
"build": "tsc"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@arcblock/did": "1.17.
|
|
25
|
-
"@ocap/mcrypto": "1.17.
|
|
26
|
-
"@ocap/util": "1.17.
|
|
24
|
+
"@arcblock/did": "1.17.3",
|
|
25
|
+
"@ocap/mcrypto": "1.17.3",
|
|
26
|
+
"@ocap/util": "1.17.3",
|
|
27
27
|
"bn.js": "5.2.1",
|
|
28
28
|
"joi": "^17.6.0",
|
|
29
|
-
"lodash": "^4.17.21"
|
|
29
|
+
"lodash": "^4.17.21",
|
|
30
|
+
"type-fest": "^2.13.1"
|
|
30
31
|
},
|
|
31
32
|
"resolutions": {
|
|
32
33
|
"bn.js": "5.2.1"
|
|
@@ -41,5 +42,5 @@
|
|
|
41
42
|
"keywords": [],
|
|
42
43
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
43
44
|
"license": "MIT",
|
|
44
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "7a74e4e2b362a6e6ea8d14617f0480966c3363d5"
|
|
45
46
|
}
|