@blocklet/did-space-js 1.1.30 → 1.1.32
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/dist/libs/did.js +4 -2
- package/package.json +5 -5
package/dist/libs/did.js
CHANGED
|
@@ -23,11 +23,13 @@ function toDid(did) {
|
|
|
23
23
|
return $did;
|
|
24
24
|
}
|
|
25
25
|
if (!$did.startsWith(ABT_PREFIX)) {
|
|
26
|
-
|
|
26
|
+
console.error(`The format of did(${$did}) should be: ${ABT_PREFIX}{did}`);
|
|
27
|
+
throw new Error(`The format of did should be: ${ABT_PREFIX}{did}`);
|
|
27
28
|
}
|
|
28
29
|
const didNotPrefix = $did.replace(ABT_PREFIX, '');
|
|
29
30
|
if (!(0, did_1.isValid)(didNotPrefix)) {
|
|
30
|
-
|
|
31
|
+
console.error(`did(${didNotPrefix}) is not a valid did`);
|
|
32
|
+
throw new Error('did is not a valid did');
|
|
31
33
|
}
|
|
32
34
|
return didNotPrefix;
|
|
33
35
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/did-space-js",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.32",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"@arcblock/did": "^1.25.6",
|
|
33
33
|
"@arcblock/jwt": "^1.25.6",
|
|
34
34
|
"@arcblock/validator": "^1.25.6",
|
|
35
|
-
"@blocklet/env": "^1.16.
|
|
36
|
-
"@did-space/constants": "^1.1.
|
|
37
|
-
"@did-space/core": "^1.1.
|
|
35
|
+
"@blocklet/env": "^1.16.52",
|
|
36
|
+
"@did-space/constants": "^1.1.32",
|
|
37
|
+
"@did-space/core": "^1.1.32",
|
|
38
38
|
"@ocap/mcrypto": "^1.25.6",
|
|
39
39
|
"@ocap/util": "^1.25.6",
|
|
40
40
|
"@ocap/wallet": "^1.25.6",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"ts-jest": "^28.0.8",
|
|
79
79
|
"typescript": "^4.9.5"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "cfd5a7186cd7703a1a14a0e08b14d60fedd98825"
|
|
82
82
|
}
|