@did-space/template 1.1.33 → 1.1.35

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.
@@ -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(`appUrl(${value}) must be a http/https url`);
16
+ return helper.message('appUrl must be a http/https url');
17
17
  }
18
18
  return value;
19
19
  });
@@ -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
- throw new Error(`appDid(${options.appDid}) must be a valid did`);
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.33",
3
+ "version": "1.1.35",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -28,9 +28,9 @@
28
28
  "verify": "npm run lint:fix && npm run test && npm run build"
29
29
  },
30
30
  "dependencies": {
31
- "@arcblock/did": "^1.25.6",
32
- "@arcblock/validator": "^1.25.6",
33
- "@did-space/core": "^1.1.33",
31
+ "@arcblock/did": "^1.26.3",
32
+ "@arcblock/validator": "^1.26.3",
33
+ "@did-space/core": "^1.1.35",
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": "90e1f5ceb7ed703bee6f490a3ea6ae17559f8b49"
56
+ "gitHead": "d9b2e960672b56a7382931295ffcf85f028fee0d"
57
57
  }