@arcblock/validator 1.25.5 → 1.25.6
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/esm/extension/did.js +6 -6
- package/lib/extension/did.js +6 -6
- package/package.json +4 -4
package/esm/extension/did.js
CHANGED
|
@@ -11,12 +11,12 @@ export function DIDExtension(root) {
|
|
|
11
11
|
type: 'DID',
|
|
12
12
|
base: root.string().trim(),
|
|
13
13
|
messages: {
|
|
14
|
-
'did.empty': 'Expect {{#label}} to be non-empty string
|
|
15
|
-
'did.invalid': 'Expect {{#label}} to be valid did
|
|
16
|
-
'did.wallet': 'Expect wallet type of {{#label}} to be "{{#expected}}" wallet
|
|
17
|
-
'did.pk': 'Expect pk type of {{#label}} to be "{{#expected}}"
|
|
18
|
-
'did.hash': 'Expect hash type of {{#label}} to be "{{#expected}}"
|
|
19
|
-
'did.role': 'Expect role type of {{#label}} to be "{{#expected}}"
|
|
14
|
+
'did.empty': 'Expect {{#label}} to be non-empty string',
|
|
15
|
+
'did.invalid': 'Expect {{#label}} to be valid did',
|
|
16
|
+
'did.wallet': 'Expect wallet type of {{#label}} to be "{{#expected}}" wallet',
|
|
17
|
+
'did.pk': 'Expect pk type of {{#label}} to be "{{#expected}}"',
|
|
18
|
+
'did.hash': 'Expect hash type of {{#label}} to be "{{#expected}}"',
|
|
19
|
+
'did.role': 'Expect role type of {{#label}} to be "{{#expected}}"',
|
|
20
20
|
'did.prefix': 'Expect prefix of {{#label}} to be "{{#expected}}"',
|
|
21
21
|
},
|
|
22
22
|
validate(value, helpers) {
|
package/lib/extension/did.js
CHANGED
|
@@ -17,12 +17,12 @@ function DIDExtension(root) {
|
|
|
17
17
|
type: 'DID',
|
|
18
18
|
base: root.string().trim(),
|
|
19
19
|
messages: {
|
|
20
|
-
'did.empty': 'Expect {{#label}} to be non-empty string
|
|
21
|
-
'did.invalid': 'Expect {{#label}} to be valid did
|
|
22
|
-
'did.wallet': 'Expect wallet type of {{#label}} to be "{{#expected}}" wallet
|
|
23
|
-
'did.pk': 'Expect pk type of {{#label}} to be "{{#expected}}"
|
|
24
|
-
'did.hash': 'Expect hash type of {{#label}} to be "{{#expected}}"
|
|
25
|
-
'did.role': 'Expect role type of {{#label}} to be "{{#expected}}"
|
|
20
|
+
'did.empty': 'Expect {{#label}} to be non-empty string',
|
|
21
|
+
'did.invalid': 'Expect {{#label}} to be valid did',
|
|
22
|
+
'did.wallet': 'Expect wallet type of {{#label}} to be "{{#expected}}" wallet',
|
|
23
|
+
'did.pk': 'Expect pk type of {{#label}} to be "{{#expected}}"',
|
|
24
|
+
'did.hash': 'Expect hash type of {{#label}} to be "{{#expected}}"',
|
|
25
|
+
'did.role': 'Expect role type of {{#label}} to be "{{#expected}}"',
|
|
26
26
|
'did.prefix': 'Expect prefix of {{#label}} to be "{{#expected}}"',
|
|
27
27
|
},
|
|
28
28
|
validate(value, helpers) {
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.25.
|
|
6
|
+
"version": "1.25.6",
|
|
7
7
|
"description": "",
|
|
8
8
|
"main": "./lib/index.js",
|
|
9
9
|
"types": "./lib/index.d.ts",
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
"bn.js": "5.2.2",
|
|
16
16
|
"joi": "^17.7.0",
|
|
17
17
|
"lodash": "^4.17.21",
|
|
18
|
-
"@arcblock/did": "1.25.
|
|
19
|
-
"@ocap/mcrypto": "1.25.
|
|
20
|
-
"@ocap/util": "1.25.
|
|
18
|
+
"@arcblock/did": "1.25.6",
|
|
19
|
+
"@ocap/mcrypto": "1.25.6",
|
|
20
|
+
"@ocap/util": "1.25.6"
|
|
21
21
|
},
|
|
22
22
|
"resolutions": {
|
|
23
23
|
"bn.js": "5.2.2"
|