@did-space/template 1.1.33 → 1.1.34
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/schema/app.js +1 -1
- package/dist/template/app.js +2 -1
- package/package.json +3 -3
package/dist/schema/app.js
CHANGED
|
@@ -13,7 +13,7 @@ exports.AppUrlSchema = validator_1.Joi.string()
|
|
|
13
13
|
.required()
|
|
14
14
|
.custom((value, helper) => {
|
|
15
15
|
if (!(0, is_url_1.default)(value)) {
|
|
16
|
-
return helper.message(
|
|
16
|
+
return helper.message('appUrl must be a http/https url');
|
|
17
17
|
}
|
|
18
18
|
return value;
|
|
19
19
|
});
|
package/dist/template/app.js
CHANGED
|
@@ -44,7 +44,8 @@ class AppTemplate {
|
|
|
44
44
|
throw new Error('space must be a Space instance');
|
|
45
45
|
}
|
|
46
46
|
if (!(0, did_1.isValid)(options.appDid)) {
|
|
47
|
-
|
|
47
|
+
console.error(`appDid(${options.appDid}) must be a valid did`);
|
|
48
|
+
throw new Error('appDid must be a valid did');
|
|
48
49
|
}
|
|
49
50
|
}
|
|
50
51
|
create(options) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@did-space/template",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.34",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@arcblock/did": "^1.25.6",
|
|
32
32
|
"@arcblock/validator": "^1.25.6",
|
|
33
|
-
"@did-space/core": "^1.1.
|
|
33
|
+
"@did-space/core": "^1.1.34",
|
|
34
34
|
"axios": "^1.10.0",
|
|
35
35
|
"is-url": "^1.2.4",
|
|
36
36
|
"joi": "^17.13.3",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"ts-jest": "^28.0.8",
|
|
54
54
|
"typescript": "^4.9.5"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "b39737033011ba67a85e64cc30e59e5a9ecba626"
|
|
57
57
|
}
|