@kubb/core 0.37.25 → 0.37.27
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/index.global.js +7 -12
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +7 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.global.js
CHANGED
|
@@ -17009,7 +17009,9 @@ ${file.source}`
|
|
|
17009
17009
|
}
|
|
17010
17010
|
return result;
|
|
17011
17011
|
});
|
|
17012
|
-
}).catch((e) =>
|
|
17012
|
+
}).catch((e) => {
|
|
17013
|
+
this.catcher(e, plugin, hookName);
|
|
17014
|
+
});
|
|
17013
17015
|
}
|
|
17014
17016
|
runSync(hookName, parameters, plugin) {
|
|
17015
17017
|
const hook = plugin[hookName];
|
|
@@ -17022,10 +17024,7 @@ ${file.source}`
|
|
|
17022
17024
|
catcher(e, plugin, hookName) {
|
|
17023
17025
|
const text = `${e.message} (plugin: ${plugin.name}, hook: ${hookName})
|
|
17024
17026
|
`;
|
|
17025
|
-
|
|
17026
|
-
this.logger.spinner.fail(text);
|
|
17027
|
-
}
|
|
17028
|
-
throw e;
|
|
17027
|
+
throw new Error(text, { cause: e });
|
|
17029
17028
|
}
|
|
17030
17029
|
};
|
|
17031
17030
|
function noReturn() {
|
|
@@ -17065,11 +17064,7 @@ ${file.source}`
|
|
|
17065
17064
|
}
|
|
17066
17065
|
const pluginManager = new PluginManager(config, { logger });
|
|
17067
17066
|
const { plugins, fileManager } = pluginManager;
|
|
17068
|
-
|
|
17069
|
-
await pluginManager.hookParallel("validate", [plugins]);
|
|
17070
|
-
} catch (e) {
|
|
17071
|
-
return;
|
|
17072
|
-
}
|
|
17067
|
+
await pluginManager.hookParallel("validate", [plugins]);
|
|
17073
17068
|
fileManager.events.onSuccess(async () => {
|
|
17074
17069
|
await pluginManager.hookParallel("buildEnd");
|
|
17075
17070
|
setTimeout(() => {
|
|
@@ -17100,9 +17095,9 @@ ${file.source}`
|
|
|
17100
17095
|
});
|
|
17101
17096
|
}
|
|
17102
17097
|
function build(options) {
|
|
17103
|
-
return new Promise((resolve, reject) => {
|
|
17098
|
+
return new Promise(async (resolve, reject) => {
|
|
17104
17099
|
try {
|
|
17105
|
-
buildImplementation(options, resolve);
|
|
17100
|
+
await buildImplementation(options, resolve);
|
|
17106
17101
|
} catch (e) {
|
|
17107
17102
|
reject(e);
|
|
17108
17103
|
}
|