@nasl/cli 0.2.0 → 0.2.1
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/bin/nasl.mjs +5 -4
- package/dist/bin/nasl.mjs.map +1 -1
- package/dist/bin/naslc.mjs +2 -2
- package/dist/bin/naslc.mjs.map +1 -1
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/out/apis/compileApi.d.ts.map +1 -1
- package/out/apis/compileApi.js +3 -2
- package/out/apis/compileApi.js.map +1 -1
- package/out/commands/compile.js +1 -1
- package/out/commands/compile.js.map +1 -1
- package/package.json +1 -1
package/dist/bin/nasl.mjs
CHANGED
|
@@ -29203,9 +29203,10 @@ async function checkApi(fullNaturalTS, options) {
|
|
|
29203
29203
|
});
|
|
29204
29204
|
const result = res.data.result;
|
|
29205
29205
|
const errors = (result.errors || []);
|
|
29206
|
-
|
|
29207
|
-
|
|
29206
|
+
if (errors.length > 0) {
|
|
29207
|
+
result.errorStr = `检查到以下错误(共 ${errors.length} 个):\n` + result.errorStr;
|
|
29208
29208
|
return truncate(result.errorStr, 10000);
|
|
29209
|
+
}
|
|
29209
29210
|
return '';
|
|
29210
29211
|
}
|
|
29211
29212
|
|
|
@@ -38295,7 +38296,7 @@ async function compile(entry, options) {
|
|
|
38295
38296
|
logger.success(`所有文件已输出到: ${outDir}`);
|
|
38296
38297
|
}
|
|
38297
38298
|
catch (error) {
|
|
38298
|
-
logger.error(
|
|
38299
|
+
logger.error(`编译过程发生错误:\n${error.message}`);
|
|
38299
38300
|
logger.exit(1);
|
|
38300
38301
|
}
|
|
38301
38302
|
return { config, outDir };
|
|
@@ -38762,7 +38763,7 @@ async function transform(transformType, entry, options) {
|
|
|
38762
38763
|
await transformFn(entry, options);
|
|
38763
38764
|
}
|
|
38764
38765
|
|
|
38765
|
-
var version = "0.2.
|
|
38766
|
+
var version = "0.2.1";
|
|
38766
38767
|
var pkg = {
|
|
38767
38768
|
version: version};
|
|
38768
38769
|
|