@blocklet/resolver 1.16.29-beta-1fb308f8 → 1.16.29-beta-26adf6bb

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 +14 -5
  2. package/package.json +6 -6
package/index.js CHANGED
@@ -99,7 +99,7 @@ const parseComponents = async (component, context = {}, logger = console) => {
99
99
  dynamicComponents,
100
100
  };
101
101
  }
102
- await Promise.all(configs.map(async (config) => {
102
+ const promises = configs.map(async (config) => {
103
103
  const urls = (0, util_meta_1.getSourceUrlsFromConfig)(config);
104
104
  let rawMeta;
105
105
  try {
@@ -151,12 +151,21 @@ const parseComponents = async (component, context = {}, logger = console) => {
151
151
  meta: { components: [{ source: engine.source, required: true }] },
152
152
  dependencies: [],
153
153
  children: [],
154
- }, { ancestors: [...ancestors, { meta }], dynamicComponents });
154
+ }, { ancestors: [...ancestors, { meta }], dynamicComponents, continueOnError: context?.continueOnError });
155
155
  }
156
156
  // @ts-ignore
157
- await (0, exports.parseComponents)(child, { ancestors: [...ancestors, { meta }], dynamicComponents });
158
- }));
159
- component.children = [];
157
+ await (0, exports.parseComponents)(child, {
158
+ ancestors: [...ancestors, { meta }],
159
+ dynamicComponents,
160
+ continueOnError: context?.continueOnError,
161
+ });
162
+ });
163
+ if (context?.continueOnError) {
164
+ await Promise.allSettled(promises);
165
+ }
166
+ else {
167
+ await Promise.all(promises);
168
+ }
160
169
  return {
161
170
  dynamicComponents,
162
171
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.29-beta-1fb308f8",
6
+ "version": "1.16.29-beta-26adf6bb",
7
7
  "description": "Blocklet meta resolver",
8
8
  "main": "index.js",
9
9
  "files": [
@@ -21,14 +21,14 @@
21
21
  "author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@arcblock/did": "^1.18.126",
25
- "@blocklet/constant": "1.16.29-beta-1fb308f8",
26
- "@blocklet/meta": "1.16.29-beta-1fb308f8",
24
+ "@arcblock/did": "^1.18.128",
25
+ "@blocklet/constant": "1.16.29-beta-26adf6bb",
26
+ "@blocklet/meta": "1.16.29-beta-26adf6bb",
27
27
  "lru-cache": "^6.0.0",
28
28
  "semver": "^7.3.8"
29
29
  },
30
30
  "devDependencies": {
31
- "@abtnode/types": "1.16.29-beta-1fb308f8",
31
+ "@abtnode/types": "1.16.29-beta-26adf6bb",
32
32
  "@arcblock/eslint-config-ts": "^0.3.2",
33
33
  "@types/jest": "^29.5.11",
34
34
  "@types/node": "^20.12.2",
@@ -40,5 +40,5 @@
40
40
  "ts-jest": "^29.1.1",
41
41
  "typescript": "^5.0.4"
42
42
  },
43
- "gitHead": "1bf1d605a02f4df2789215e6e9518a62b1c3f806"
43
+ "gitHead": "0f996c7f05f677279270482050caf9dcd9fdf2a0"
44
44
  }