@blocklet/resolver 1.16.15-beta-d8e7b6c0 → 1.16.15-beta-375899b6

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.
Files changed (2) hide show
  1. package/index.js +1 -2
  2. package/package.json +5 -5
package/index.js CHANGED
@@ -122,8 +122,7 @@ const parseComponents = async (component, context = {}, logger = console) => {
122
122
  if (!(0, util_1.isComponentBlocklet)(rawMeta)) {
123
123
  throw new Error(`The blocklet cannot be a component: ${rawMeta.title}. The reason may be that the developer set capabilities.component to false in blocklet.yml`);
124
124
  }
125
- const webInterface = (0, util_1.findWebInterface)(rawMeta);
126
- if (!webInterface) {
125
+ if ((0, util_1.hasStartEngine)(rawMeta) && !(0, util_1.findWebInterface)(rawMeta)) {
127
126
  throw new Error(`Web interface does not found in component ${rawMeta.title || rawMeta.name}`);
128
127
  }
129
128
  const meta = (0, exports.ensureMeta)(rawMeta, { name: isStatic ? config.name : null });
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.15-beta-d8e7b6c0",
6
+ "version": "1.16.15-beta-375899b6",
7
7
  "description": "Blocklet meta resolver",
8
8
  "main": "index.js",
9
9
  "files": [
@@ -21,12 +21,12 @@
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
23
  "@arcblock/did": "^1.18.89",
24
- "@blocklet/constant": "1.16.15-beta-d8e7b6c0",
25
- "@blocklet/meta": "1.16.15-beta-d8e7b6c0",
24
+ "@blocklet/constant": "1.16.15-beta-375899b6",
25
+ "@blocklet/meta": "1.16.15-beta-375899b6",
26
26
  "semver": "^7.3.8"
27
27
  },
28
28
  "devDependencies": {
29
- "@abtnode/types": "1.16.15-beta-d8e7b6c0",
29
+ "@abtnode/types": "1.16.15-beta-375899b6",
30
30
  "@arcblock/eslint-config-ts": "^0.2.4",
31
31
  "@types/jest": "^29.2.0",
32
32
  "@types/node": "^18.11.0",
@@ -38,5 +38,5 @@
38
38
  "ts-jest": "^27.1.5",
39
39
  "typescript": "^5.0.4"
40
40
  },
41
- "gitHead": "87ebe2e8267e634e2217d7ca28231d0b01636ae6"
41
+ "gitHead": "c999a7f47ecdca1494eb53fc177d28899b3effc9"
42
42
  }