@tsed/cli-core 3.20.12 → 3.20.13

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.
@@ -141,14 +141,13 @@ let CliExeca = class CliExeca {
141
141
  constructor() {
142
142
  this.raw = execa;
143
143
  }
144
+
144
145
  /**
145
146
  *
146
147
  * @param cmd
147
148
  * @param args
148
149
  * @param opts
149
150
  */
150
-
151
-
152
151
  run(cmd, args, opts) {
153
152
  const cp = this.raw(cmd, args, opts);
154
153
  const stdout = streamToObservable(cp.stdout.pipe(split()), {
@@ -335,9 +334,14 @@ function defaultPreferences(pkg) {
335
334
 
336
335
  let ProjectPackageJson = class ProjectPackageJson {
337
336
  constructor(configuration) {
338
- this.configuration = configuration;
337
+ this.configuration = void 0;
339
338
  this.rewrite = false;
340
339
  this.reinstall = false;
340
+ this.cliExeca = void 0;
341
+ this.fs = void 0;
342
+ this.GH_TOKEN = void 0;
343
+ this.raw = void 0;
344
+ this.configuration = configuration;
341
345
  this.setRaw({
342
346
  name: "",
343
347
  version: "1.0.0",
@@ -939,6 +943,10 @@ function parseOption(value, options) {
939
943
  }
940
944
 
941
945
  let CliHooks = class CliHooks {
946
+ constructor() {
947
+ this.injector = void 0;
948
+ }
949
+
942
950
  async emit(hookName, cmd, ...args) {
943
951
  const providers = this.injector.getProviders();
944
952
  let results = [];
@@ -974,6 +982,10 @@ let CliService = class CliService {
974
982
  constructor() {
975
983
  this.program = new Command$1();
976
984
  this.reinstallAfterRun = false;
985
+ this.pkg = void 0;
986
+ this.injector = void 0;
987
+ this.hooks = void 0;
988
+ this.projectPkg = void 0;
977
989
  this.commands = new Map();
978
990
  }
979
991
 
@@ -1298,6 +1310,11 @@ function cast(value) {
1298
1310
  }
1299
1311
 
1300
1312
  let CliProxyAgent = class CliProxyAgent {
1313
+ constructor() {
1314
+ this.proxySettings = void 0;
1315
+ this.cliExeca = void 0;
1316
+ }
1317
+
1301
1318
  hasProxy() {
1302
1319
  return !!this.proxySettings.url;
1303
1320
  }
@@ -1383,6 +1400,8 @@ function logToCurl({
1383
1400
 
1384
1401
  let CliHttpLogClient = class CliHttpLogClient {
1385
1402
  constructor(options = {}) {
1403
+ this.callee = void 0;
1404
+ this.logger = void 0;
1386
1405
  this.callee = options.callee || "http";
1387
1406
  }
1388
1407
 
@@ -1464,6 +1483,12 @@ CliHttpLogClient = __decorate([__param(0, Opts), __metadata("design:paramtypes",
1464
1483
 
1465
1484
  var CliHttpClient_1;
1466
1485
  let CliHttpClient = CliHttpClient_1 = class CliHttpClient extends CliHttpLogClient {
1486
+ constructor(...args) {
1487
+ super(...args);
1488
+ this.cliProxyAgent = void 0;
1489
+ this.host = void 0;
1490
+ }
1491
+
1467
1492
  static getParamsSerializer(params) {
1468
1493
  return querystring.stringify(cleanObject(params));
1469
1494
  }
@@ -1636,6 +1661,10 @@ function addSuffix(pattern, suffix) {
1636
1661
  }
1637
1662
  const SCOPE_SEPARATOR = "%2f";
1638
1663
  let NpmRegistryClient = NpmRegistryClient_1 = class NpmRegistryClient {
1664
+ constructor() {
1665
+ this.httpClient = void 0;
1666
+ }
1667
+
1639
1668
  static escapeName(name) {
1640
1669
  // scoped packages contain slashes and the npm registry expects them to be escaped
1641
1670
  return name.replace("/", SCOPE_SEPARATOR);
@@ -1761,6 +1790,14 @@ function mapPlugins(_ref) {
1761
1790
  }
1762
1791
 
1763
1792
  let CliPlugins = class CliPlugins {
1793
+ constructor() {
1794
+ this.name = void 0;
1795
+ this.npmRegistryClient = void 0;
1796
+ this.injector = void 0;
1797
+ this.cliHooks = void 0;
1798
+ this.packageJson = void 0;
1799
+ }
1800
+
1764
1801
  async searchPlugins(keyword = "", options = {}) {
1765
1802
  const result = await this.npmRegistryClient.search(this.getKeyword(keyword), options);
1766
1803
  return result.filter(({
@@ -1819,6 +1856,10 @@ CliPlugins = __decorate([Injectable()], CliPlugins);
1819
1856
  const runScript = require("@npmcli/run-script");
1820
1857
 
1821
1858
  let CliRunScript = class CliRunScript {
1859
+ constructor() {
1860
+ this.projectPackageJson = void 0;
1861
+ }
1862
+
1822
1863
  run(cmd, args, options = {}) {
1823
1864
  return runScript(_extends({
1824
1865
  event: "run"
@@ -3324,6 +3365,12 @@ const _excluded = ["path"];
3324
3365
  const normalizePath = require("normalize-path");
3325
3366
 
3326
3367
  class Renderer {
3368
+ constructor() {
3369
+ this.configuration = void 0;
3370
+ this.templateDir = void 0;
3371
+ this.fs = void 0;
3372
+ }
3373
+
3327
3374
  async render(path, data, options = {}) {
3328
3375
  const {
3329
3376
  output,
@@ -3464,6 +3511,8 @@ class Renderer {
3464
3511
 
3465
3512
  }
3466
3513
 
3514
+ __decorate([Configuration(), __metadata("design:type", Object)], Renderer.prototype, "configuration", void 0);
3515
+
3467
3516
  __decorate([Constant("templateDir"), __metadata("design:type", String)], Renderer.prototype, "templateDir", void 0);
3468
3517
 
3469
3518
  __decorate([Inject(), __metadata("design:type", CliFs)], Renderer.prototype, "fs", void 0);
@@ -3476,11 +3525,6 @@ let RootRendererService = class RootRendererService extends Renderer {
3476
3525
  }
3477
3526
 
3478
3527
  };
3479
-
3480
- __decorate([Constant("templateDir"), __metadata("design:type", String)], RootRendererService.prototype, "templateDir", void 0);
3481
-
3482
- __decorate([Configuration(), __metadata("design:type", Object)], RootRendererService.prototype, "configuration", void 0);
3483
-
3484
3528
  RootRendererService = __decorate([Injectable()], RootRendererService);
3485
3529
  let SrcRendererService = class SrcRendererService extends Renderer {
3486
3530
  get rootDir() {
@@ -3490,11 +3534,6 @@ let SrcRendererService = class SrcRendererService extends Renderer {
3490
3534
  }
3491
3535
 
3492
3536
  };
3493
-
3494
- __decorate([Constant("templateDir"), __metadata("design:type", String)], SrcRendererService.prototype, "templateDir", void 0);
3495
-
3496
- __decorate([Configuration(), __metadata("design:type", Object)], SrcRendererService.prototype, "configuration", void 0);
3497
-
3498
3537
  SrcRendererService = __decorate([Injectable()], SrcRendererService);
3499
3538
  let ScriptsRendererService = class ScriptsRendererService extends Renderer {
3500
3539
  get rootDir() {
@@ -3504,14 +3543,14 @@ let ScriptsRendererService = class ScriptsRendererService extends Renderer {
3504
3543
  }
3505
3544
 
3506
3545
  };
3507
-
3508
- __decorate([Constant("templateDir"), __metadata("design:type", String)], ScriptsRendererService.prototype, "templateDir", void 0);
3509
-
3510
- __decorate([Configuration(), __metadata("design:type", Object)], ScriptsRendererService.prototype, "configuration", void 0);
3511
-
3512
3546
  ScriptsRendererService = __decorate([Injectable()], ScriptsRendererService);
3513
3547
 
3514
3548
  let CliYaml = class CliYaml {
3549
+ constructor() {
3550
+ this.projectPackageJson = void 0;
3551
+ this.fs = void 0;
3552
+ }
3553
+
3515
3554
  async read(path) {
3516
3555
  const file = !this.fs.exists(path) ? this.fs.findUpFile(this.projectPackageJson.dir, path) : path;
3517
3556
 
@@ -3542,6 +3581,10 @@ __decorate([Inject(), __metadata("design:type", CliFs)], CliYaml.prototype, "fs"
3542
3581
  CliYaml = __decorate([Injectable()], CliYaml);
3543
3582
 
3544
3583
  let CliDockerComposeYaml = class CliDockerComposeYaml {
3584
+ constructor() {
3585
+ this.cliYaml = void 0;
3586
+ }
3587
+
3545
3588
  async read() {
3546
3589
  return this.cliYaml.read("docker-compose.yml");
3547
3590
  }
@@ -3629,6 +3672,8 @@ class CliError extends Error {
3629
3672
  }) {
3630
3673
  super(origin.message);
3631
3674
  this.name = "CLI_ERROR";
3675
+ this.cli = void 0;
3676
+ this.origin = void 0;
3632
3677
  this.cli = cli;
3633
3678
  this.origin = origin;
3634
3679
  this.stack = origin.stack;
@@ -3645,6 +3690,11 @@ function isHelpManual(argv) {
3645
3690
  }
3646
3691
 
3647
3692
  let CliCore = CliCore_1 = class CliCore {
3693
+ constructor() {
3694
+ this.injector = void 0;
3695
+ this.cliService = void 0;
3696
+ }
3697
+
3648
3698
  static checkNodeVersion(wanted, id) {
3649
3699
  if (!semver.satisfies(process.version, wanted)) {
3650
3700
  console.log(chalk.red("You are using Node " + process.version + ", but this version of " + id + " requires Node " + wanted + ".\nPlease upgrade your Node version."));