@nasl/cli 0.1.9 → 0.1.11

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.
@@ -8258,7 +8258,14 @@ class ConsoleLogger extends BaseLogger {
8258
8258
  }
8259
8259
  }
8260
8260
  exit(code) {
8261
- process.exit(code);
8261
+ if (process.argv[1]?.endsWith('/nasl')) { // 添加保险措施,避免在非 CLI 环境下退出
8262
+ process.exit(code);
8263
+ }
8264
+ else {
8265
+ if (code)
8266
+ throw new Error(`Error with code: ${code}`);
8267
+ return undefined;
8268
+ }
8262
8269
  }
8263
8270
  }
8264
8271
  const defaultLogger = new ConsoleLogger();
@@ -37670,7 +37677,7 @@ async function tryCompile(entry, options) {
37670
37677
  }
37671
37678
  }
37672
37679
 
37673
- var version = "0.1.9";
37680
+ var version = "0.1.11";
37674
37681
  var pkg = {
37675
37682
  version: version};
37676
37683