@aloma.io/integration-sdk 3.3.42 → 3.3.43
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.
@@ -78,5 +78,7 @@ declare function ${member.getName()}(${params}): ${retVal};
|
|
78
78
|
};
|
79
79
|
export default async (path) => {
|
80
80
|
const parsed = await parseFromFiles([path]);
|
81
|
+
if (parsed.errors?.length)
|
82
|
+
throw new Error(path + ' ' + JSON.stringify(parsed.errors));
|
81
83
|
return transform(parsed.project?.getModules() || []);
|
82
84
|
};
|
package/package.json
CHANGED
@@ -101,5 +101,6 @@ declare function ${member.getName()}(${params}): ${retVal};
|
|
101
101
|
|
102
102
|
export default async (path: string) => {
|
103
103
|
const parsed = await parseFromFiles([path]);
|
104
|
+
if (parsed.errors?.length) throw new Error(path + ' ' + JSON.stringify(parsed.errors));
|
104
105
|
return transform(parsed.project?.getModules() || []);
|
105
106
|
};
|