lakutata 0.1.7 → 0.1.9

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/CLI.js CHANGED
@@ -13,16 +13,16 @@
13
13
 
14
14
 
15
15
 
16
- var _chunkEESDZ7OAjs = require('./chunk-EESDZ7OA.js');
16
+ var _chunkSBKWEF22js = require('./chunk-SBKWEF22.js');
17
17
  require('./chunk-WP7R7CXB.js');
18
- require('./chunk-OHQGLMDU.js');
19
- require('./chunk-BDZ4HVBZ.js');
20
- require('./chunk-TDTTBUBP.js');
18
+ require('./chunk-KNS24473.js');
19
+ require('./chunk-SLF5J2V6.js');
20
+ require('./chunk-KWFW67OV.js');
21
21
  require('./chunk-IZCE6VLC.js');
22
22
 
23
23
 
24
24
 
25
- var _chunkCDQUWO3Tjs = require('./chunk-CDQUWO3T.js');
25
+ var _chunkPFL764XZjs = require('./chunk-PFL764XZ.js');
26
26
 
27
27
 
28
28
 
@@ -25635,7 +25635,7 @@ var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
25635
25635
  var source_default = chalk;
25636
25636
 
25637
25637
  // src/cli/models/Info.ts
25638
- var Info = (_class = class extends _chunkEESDZ7OAjs.Model {constructor(...args2) { super(...args2); _class.prototype.__init.call(this); }
25638
+ var Info = (_class = class extends _chunkSBKWEF22js.Model {constructor(...args2) { super(...args2); _class.prototype.__init.call(this); }
25639
25639
  static {
25640
25640
  _chunk7LXDFQCYjs.__name.call(void 0, this, "Info");
25641
25641
  }
@@ -25659,24 +25659,24 @@ var Info = (_class = class extends _chunkEESDZ7OAjs.Model {constructor(...args2)
25659
25659
  `The installation directory path is ${source_default.underline(this.packageLevel.getInstallPath())}`,
25660
25660
  `Currently running at ${source_default.bold(this.packageLevel.getLevel())} level`,
25661
25661
  `Lakutata is ${source_default.cyan(this.license)} licensed.`,
25662
- `Copyright (c) ${new (0, _chunkEESDZ7OAjs.Time)().format("YYYY")} ${source_default.bold("Lakutata")}. All rights reserved.`
25662
+ `Copyright (c) ${new (0, _chunkSBKWEF22js.Time)().format("YYYY")} ${source_default.bold("Lakutata")}. All rights reserved.`
25663
25663
  ];
25664
25664
  }
25665
25665
  }, _class);
25666
25666
  _chunk7LXDFQCYjs.__decorateClass.call(void 0, [
25667
- _chunkEESDZ7OAjs.Inject.call(void 0, )
25667
+ _chunkSBKWEF22js.Inject.call(void 0, )
25668
25668
  ], Info.prototype, "packageLevel", 2);
25669
25669
  _chunk7LXDFQCYjs.__decorateClass.call(void 0, [
25670
- _chunkEESDZ7OAjs.Configurable.call(void 0, )
25670
+ _chunkSBKWEF22js.Configurable.call(void 0, )
25671
25671
  ], Info.prototype, "description", 2);
25672
25672
  _chunk7LXDFQCYjs.__decorateClass.call(void 0, [
25673
- _chunkEESDZ7OAjs.Configurable.call(void 0, )
25673
+ _chunkSBKWEF22js.Configurable.call(void 0, )
25674
25674
  ], Info.prototype, "license", 2);
25675
25675
  _chunk7LXDFQCYjs.__decorateClass.call(void 0, [
25676
- _chunkEESDZ7OAjs.Configurable.call(void 0, )
25676
+ _chunkSBKWEF22js.Configurable.call(void 0, )
25677
25677
  ], Info.prototype, "asciiLogo", 2);
25678
25678
  _chunk7LXDFQCYjs.__decorateClass.call(void 0, [
25679
- _chunkEESDZ7OAjs.Configurable.call(void 0, )
25679
+ _chunkSBKWEF22js.Configurable.call(void 0, )
25680
25680
  ], Info.prototype, "version", 2);
25681
25681
 
25682
25682
  // node_modules/execa/index.js
@@ -32684,7 +32684,7 @@ _chunk7LXDFQCYjs.__name.call(void 0, latestVersion, "latestVersion");
32684
32684
 
32685
32685
  // src/cli/models/Upgrade.ts
32686
32686
  var import_semver2 = _chunk7LXDFQCYjs.__toESM.call(void 0, require_semver2());
32687
- var Upgrade = class extends _chunkEESDZ7OAjs.Model {
32687
+ var Upgrade = class extends _chunkSBKWEF22js.Model {
32688
32688
  static {
32689
32689
  _chunk7LXDFQCYjs.__name.call(void 0, this, "Upgrade");
32690
32690
  }
@@ -32778,20 +32778,20 @@ var Upgrade = class extends _chunkEESDZ7OAjs.Model {
32778
32778
  }
32779
32779
  };
32780
32780
  _chunk7LXDFQCYjs.__decorateClass.call(void 0, [
32781
- _chunkEESDZ7OAjs.Inject.call(void 0, "spinner")
32781
+ _chunkSBKWEF22js.Inject.call(void 0, "spinner")
32782
32782
  ], Upgrade.prototype, "spinner", 2);
32783
32783
  _chunk7LXDFQCYjs.__decorateClass.call(void 0, [
32784
- _chunkEESDZ7OAjs.Inject.call(void 0, "packageLevel")
32784
+ _chunkSBKWEF22js.Inject.call(void 0, "packageLevel")
32785
32785
  ], Upgrade.prototype, "packageLevel", 2);
32786
32786
  _chunk7LXDFQCYjs.__decorateClass.call(void 0, [
32787
- _chunkEESDZ7OAjs.Configurable.call(void 0, )
32787
+ _chunkSBKWEF22js.Configurable.call(void 0, )
32788
32788
  ], Upgrade.prototype, "name", 2);
32789
32789
  _chunk7LXDFQCYjs.__decorateClass.call(void 0, [
32790
- _chunkEESDZ7OAjs.Configurable.call(void 0, )
32790
+ _chunkSBKWEF22js.Configurable.call(void 0, )
32791
32791
  ], Upgrade.prototype, "version", 2);
32792
32792
 
32793
32793
  // src/cli/dtos/CreateProjectDTO.ts
32794
- var CreateProjectDTO = class extends _chunkEESDZ7OAjs.DTO {
32794
+ var CreateProjectDTO = class extends _chunkSBKWEF22js.DTO {
32795
32795
  static {
32796
32796
  _chunk7LXDFQCYjs.__name.call(void 0, this, "CreateProjectDTO");
32797
32797
  }
@@ -32800,17 +32800,17 @@ var CreateProjectDTO = class extends _chunkEESDZ7OAjs.DTO {
32800
32800
 
32801
32801
  };
32802
32802
  _chunk7LXDFQCYjs.__decorateClass.call(void 0, [
32803
- _chunkEESDZ7OAjs.Expect.call(void 0, _chunkEESDZ7OAjs.Validator.String().required())
32803
+ _chunkSBKWEF22js.Expect.call(void 0, _chunkSBKWEF22js.Validator.String().required())
32804
32804
  ], CreateProjectDTO.prototype, "path", 2);
32805
32805
  _chunk7LXDFQCYjs.__decorateClass.call(void 0, [
32806
- _chunkEESDZ7OAjs.Expect.call(void 0, _chunkEESDZ7OAjs.Validator.String().valid(...Object.values(ProjectType)))
32806
+ _chunkSBKWEF22js.Expect.call(void 0, _chunkSBKWEF22js.Validator.String().valid(...Object.values(ProjectType)))
32807
32807
  ], CreateProjectDTO.prototype, "type", 2);
32808
32808
  _chunk7LXDFQCYjs.__decorateClass.call(void 0, [
32809
- _chunkEESDZ7OAjs.Expect.call(void 0, _chunkEESDZ7OAjs.Validator.String().required())
32809
+ _chunkSBKWEF22js.Expect.call(void 0, _chunkSBKWEF22js.Validator.String().required())
32810
32810
  ], CreateProjectDTO.prototype, "name", 2);
32811
32811
 
32812
32812
  // src/cli/models/Create.ts
32813
- var Create = class extends _chunkEESDZ7OAjs.Model {
32813
+ var Create = class extends _chunkSBKWEF22js.Model {
32814
32814
  static {
32815
32815
  _chunk7LXDFQCYjs.__name.call(void 0, this, "Create");
32816
32816
  }
@@ -32824,14 +32824,14 @@ var Create = class extends _chunkEESDZ7OAjs.Model {
32824
32824
  }
32825
32825
  };
32826
32826
  _chunk7LXDFQCYjs.__decorateClass.call(void 0, [
32827
- _chunkEESDZ7OAjs.Inject.call(void 0, "puller")
32827
+ _chunkSBKWEF22js.Inject.call(void 0, "puller")
32828
32828
  ], Create.prototype, "puller", 2);
32829
32829
  _chunk7LXDFQCYjs.__decorateClass.call(void 0, [
32830
- _chunkEESDZ7OAjs.Configurable.call(void 0, { accept: CreateProjectDTO, acceptOptions: { stripUnknown: true } })
32830
+ _chunkSBKWEF22js.Configurable.call(void 0, { accept: CreateProjectDTO, acceptOptions: { stripUnknown: true } })
32831
32831
  ], Create.prototype, "options", 2);
32832
32832
 
32833
32833
  // src/cli/models/Init.ts
32834
- var Init = class extends _chunkEESDZ7OAjs.Model {
32834
+ var Init = class extends _chunkSBKWEF22js.Model {
32835
32835
  static {
32836
32836
  _chunk7LXDFQCYjs.__name.call(void 0, this, "Init");
32837
32837
  }
@@ -32845,11 +32845,11 @@ var Init = class extends _chunkEESDZ7OAjs.Model {
32845
32845
  }
32846
32846
  };
32847
32847
  _chunk7LXDFQCYjs.__decorateClass.call(void 0, [
32848
- _chunkEESDZ7OAjs.Inject.call(void 0, "puller")
32848
+ _chunkSBKWEF22js.Inject.call(void 0, "puller")
32849
32849
  ], Init.prototype, "puller", 2);
32850
32850
 
32851
32851
  // src/cli/controllers/CommandLineController.ts
32852
- var CommandLineController = class extends _chunkEESDZ7OAjs.Controller {
32852
+ var CommandLineController = class extends _chunkSBKWEF22js.Controller {
32853
32853
  static {
32854
32854
  _chunk7LXDFQCYjs.__name.call(void 0, this, "CommandLineController");
32855
32855
  }
@@ -32875,23 +32875,23 @@ var CommandLineController = class extends _chunkEESDZ7OAjs.Controller {
32875
32875
  }
32876
32876
  };
32877
32877
  _chunk7LXDFQCYjs.__decorateClass.call(void 0, [
32878
- _chunkEESDZ7OAjs.Action.call(void 0, { type: "init" })
32878
+ _chunkSBKWEF22js.Action.call(void 0, { type: "init" })
32879
32879
  ], CommandLineController.prototype, "initProject", 1);
32880
32880
  _chunk7LXDFQCYjs.__decorateClass.call(void 0, [
32881
- _chunkEESDZ7OAjs.Action.call(void 0, { type: "create" })
32881
+ _chunkSBKWEF22js.Action.call(void 0, { type: "create" })
32882
32882
  ], CommandLineController.prototype, "createProject", 1);
32883
32883
  _chunk7LXDFQCYjs.__decorateClass.call(void 0, [
32884
- _chunkEESDZ7OAjs.Action.call(void 0, { type: "upgrade" })
32884
+ _chunkSBKWEF22js.Action.call(void 0, { type: "upgrade" })
32885
32885
  ], CommandLineController.prototype, "upgrade", 1);
32886
32886
  _chunk7LXDFQCYjs.__decorateClass.call(void 0, [
32887
- _chunkEESDZ7OAjs.Action.call(void 0, { type: "info" })
32887
+ _chunkSBKWEF22js.Action.call(void 0, { type: "info" })
32888
32888
  ], CommandLineController.prototype, "info", 1);
32889
32889
 
32890
32890
  // src/cli/components/PackageLevel.ts
32891
32891
  var import_find_root = _chunk7LXDFQCYjs.__toESM.call(void 0, require_find_root());
32892
32892
 
32893
32893
 
32894
- var PackageLevel = class extends _chunkEESDZ7OAjs.Component {
32894
+ var PackageLevel = class extends _chunkSBKWEF22js.Component {
32895
32895
  static {
32896
32896
  _chunk7LXDFQCYjs.__name.call(void 0, this, "PackageLevel");
32897
32897
  }
@@ -32930,7 +32930,7 @@ var PackageLevel = class extends _chunkEESDZ7OAjs.Component {
32930
32930
  }
32931
32931
  });
32932
32932
  } catch (e) {
32933
- _chunkCDQUWO3Tjs.DevNull.call(void 0, e);
32933
+ _chunkPFL764XZjs.DevNull.call(void 0, e);
32934
32934
  }
32935
32935
  }
32936
32936
  }
@@ -32997,13 +32997,13 @@ var PackageLevel = class extends _chunkEESDZ7OAjs.Component {
32997
32997
  }
32998
32998
  };
32999
32999
  _chunk7LXDFQCYjs.__decorateClass.call(void 0, [
33000
- _chunkEESDZ7OAjs.Configurable.call(void 0, )
33000
+ _chunkSBKWEF22js.Configurable.call(void 0, )
33001
33001
  ], PackageLevel.prototype, "name", 2);
33002
33002
  _chunk7LXDFQCYjs.__decorateClass.call(void 0, [
33003
- _chunkEESDZ7OAjs.Configurable.call(void 0, )
33003
+ _chunkSBKWEF22js.Configurable.call(void 0, )
33004
33004
  ], PackageLevel.prototype, "currentDirectory", 2);
33005
33005
  _chunk7LXDFQCYjs.__decorateClass.call(void 0, [
33006
- _chunkEESDZ7OAjs.Configurable.call(void 0, )
33006
+ _chunkSBKWEF22js.Configurable.call(void 0, )
33007
33007
  ], PackageLevel.prototype, "workingDirectory", 2);
33008
33008
 
33009
33009
  // src/cli/components/Spinner.ts
@@ -33942,7 +33942,7 @@ var log_update_default = logUpdate;
33942
33942
  var logUpdateStderr = createLogUpdate(_process3.default.stderr);
33943
33943
 
33944
33944
  // src/cli/components/Spinner.ts
33945
- var Spinner = (_class4 = class extends _chunkEESDZ7OAjs.Component {constructor(...args3) { super(...args3); _class4.prototype.__init7.call(this);_class4.prototype.__init8.call(this); }
33945
+ var Spinner = (_class4 = class extends _chunkSBKWEF22js.Component {constructor(...args3) { super(...args3); _class4.prototype.__init7.call(this);_class4.prototype.__init8.call(this); }
33946
33946
  __init7() {this.style = import_cli_spinners.dots}
33947
33947
  __init8() {this.spinnerInterval = null}
33948
33948
  /**
@@ -33971,10 +33971,10 @@ var Spinner = (_class4 = class extends _chunkEESDZ7OAjs.Component {constructor(.
33971
33971
  }, _class4);
33972
33972
  _chunk7LXDFQCYjs.__name.call(void 0, Spinner, "Spinner");
33973
33973
  _chunk7LXDFQCYjs.__decorateClass.call(void 0, [
33974
- _chunkEESDZ7OAjs.Configurable.call(void 0, )
33974
+ _chunkSBKWEF22js.Configurable.call(void 0, )
33975
33975
  ], Spinner.prototype, "style", 2);
33976
33976
  Spinner = _chunk7LXDFQCYjs.__decorateClass.call(void 0, [
33977
- _chunkEESDZ7OAjs.Singleton.call(void 0, )
33977
+ _chunkSBKWEF22js.Singleton.call(void 0, )
33978
33978
  ], Spinner);
33979
33979
 
33980
33980
  // src/CLI.ts
@@ -33982,7 +33982,7 @@ var import_cli_spinners2 = _chunk7LXDFQCYjs.__toESM.call(void 0, require_cli_spi
33982
33982
 
33983
33983
  // src/cli/components/DeGitPuller.ts
33984
33984
  var import_degit = _chunk7LXDFQCYjs.__toESM.call(void 0, require_dist3());
33985
- var DeGitPuller = (_class5 = class extends _chunkEESDZ7OAjs.Component {constructor(...args4) { super(...args4); _class5.prototype.__init9.call(this);_class5.prototype.__init10.call(this);_class5.prototype.__init11.call(this); }
33985
+ var DeGitPuller = (_class5 = class extends _chunkSBKWEF22js.Component {constructor(...args4) { super(...args4); _class5.prototype.__init9.call(this);_class5.prototype.__init10.call(this);_class5.prototype.__init11.call(this); }
33986
33986
  static {
33987
33987
  _chunk7LXDFQCYjs.__name.call(void 0, this, "DeGitPuller");
33988
33988
  }
@@ -34013,16 +34013,16 @@ var DeGitPuller = (_class5 = class extends _chunkEESDZ7OAjs.Component {construct
34013
34013
  }
34014
34014
  }, _class5);
34015
34015
  _chunk7LXDFQCYjs.__decorateClass.call(void 0, [
34016
- _chunkEESDZ7OAjs.Configurable.call(void 0, )
34016
+ _chunkSBKWEF22js.Configurable.call(void 0, )
34017
34017
  ], DeGitPuller.prototype, "cache", 2);
34018
34018
  _chunk7LXDFQCYjs.__decorateClass.call(void 0, [
34019
- _chunkEESDZ7OAjs.Configurable.call(void 0, )
34019
+ _chunkSBKWEF22js.Configurable.call(void 0, )
34020
34020
  ], DeGitPuller.prototype, "verbose", 2);
34021
34021
  _chunk7LXDFQCYjs.__decorateClass.call(void 0, [
34022
- _chunkEESDZ7OAjs.Configurable.call(void 0, )
34022
+ _chunkSBKWEF22js.Configurable.call(void 0, )
34023
34023
  ], DeGitPuller.prototype, "force", 2);
34024
34024
  _chunk7LXDFQCYjs.__decorateClass.call(void 0, [
34025
- _chunkEESDZ7OAjs.Configurable.call(void 0, )
34025
+ _chunkSBKWEF22js.Configurable.call(void 0, )
34026
34026
  ], DeGitPuller.prototype, "repo", 2);
34027
34027
 
34028
34028
  // src/CLI.ts
@@ -34057,7 +34057,7 @@ _chunk7LXDFQCYjs.__name.call(void 0, getCliParams, "getCliParams");
34057
34057
  const packageJson2 = JSON.parse(await _promises.readFile.call(void 0, _path3.default.resolve(__dirname, "../package.json"), { encoding: "utf-8" }));
34058
34058
  const params = await getCliParams(new Command().description("Lakutata CLI").version(packageJson2.version, "-v, --version").helpOption("-h, --help"));
34059
34059
  try {
34060
- await _chunkEESDZ7OAjs.Application.run({
34060
+ await _chunkSBKWEF22js.Application.run({
34061
34061
  id: "cli.lakutata.app",
34062
34062
  name: "Lakutata CLI",
34063
34063
  components: {
@@ -34097,7 +34097,7 @@ _chunk7LXDFQCYjs.__name.call(void 0, getCliParams, "getCliParams");
34097
34097
  ]
34098
34098
  });
34099
34099
  } catch (e) {
34100
- _chunkEESDZ7OAjs.Logger.error(_chunkCDQUWO3Tjs.As.call(void 0, e).message);
34100
+ _chunkSBKWEF22js.Logger.error(_chunkPFL764XZjs.As.call(void 0, e).message);
34101
34101
  process.exit(1);
34102
34102
  }
34103
34103
  })();
package/Crypto.js CHANGED
@@ -13,15 +13,15 @@
13
13
 
14
14
 
15
15
 
16
- var _chunkOHQGLMDUjs = require('./chunk-OHQGLMDU.js');
17
- require('./chunk-TDTTBUBP.js');
16
+ var _chunkKNS24473js = require('./chunk-KNS24473.js');
17
+ require('./chunk-KWFW67OV.js');
18
18
  require('./chunk-IZCE6VLC.js');
19
19
 
20
20
 
21
21
 
22
22
 
23
23
 
24
- var _chunkCDQUWO3Tjs = require('./chunk-CDQUWO3T.js');
24
+ var _chunkPFL764XZjs = require('./chunk-PFL764XZ.js');
25
25
 
26
26
 
27
27
 
@@ -46,14 +46,14 @@ var require_browserify_cipher = _chunk7LXDFQCYjs.__commonJS.call(void 0, {
46
46
  // src/lib/base/abstracts/AsymmetricEncryption.ts
47
47
  var _promises = require('fs/promises');
48
48
  async function getKeyContent(inp) {
49
- let keyString = _chunkCDQUWO3Tjs.As.call(void 0, inp);
50
- if (_chunkCDQUWO3Tjs.IsPath.call(void 0, inp)) {
49
+ let keyString = _chunkPFL764XZjs.As.call(void 0, inp);
50
+ if (_chunkPFL764XZjs.IsPath.call(void 0, inp)) {
51
51
  try {
52
52
  const fileStat = await _promises.stat.call(void 0, inp);
53
53
  if (fileStat.isFile())
54
54
  keyString = await _promises.readFile.call(void 0, inp, { encoding: "utf-8" });
55
55
  } catch (e) {
56
- keyString = _chunkCDQUWO3Tjs.As.call(void 0, inp);
56
+ keyString = _chunkPFL764XZjs.As.call(void 0, inp);
57
57
  }
58
58
  }
59
59
  return keyString;
@@ -75,7 +75,7 @@ var AsymmetricEncryption = (_class = class {
75
75
  this.privateKey = this.createPrivateKey(keyPair.privateKey);
76
76
  this.privateKeyString = keyPair.privateKey;
77
77
  } catch (e) {
78
- throw new (0, _chunkOHQGLMDUjs.InvalidAsymmetricEncryptPrivateKeyException)(e);
78
+ throw new (0, _chunkKNS24473js.InvalidAsymmetricEncryptPrivateKeyException)(e);
79
79
  }
80
80
  }
81
81
  if (keyPair.publicKey) {
@@ -83,7 +83,7 @@ var AsymmetricEncryption = (_class = class {
83
83
  this.publicKey = this.createPublicKey(keyPair.publicKey);
84
84
  this.publicKeyString = keyPair.publicKey;
85
85
  } catch (e) {
86
- throw new (0, _chunkOHQGLMDUjs.InvalidAsymmetricEncryptPublicKeyException)(e);
86
+ throw new (0, _chunkKNS24473js.InvalidAsymmetricEncryptPublicKeyException)(e);
87
87
  }
88
88
  }
89
89
  }
@@ -97,7 +97,7 @@ var AsymmetricEncryption = (_class = class {
97
97
  try {
98
98
  return this.encrypt(message);
99
99
  } catch (e) {
100
- throw new (0, _chunkOHQGLMDUjs.AsymmetricEncryptException)(e);
100
+ throw new (0, _chunkKNS24473js.AsymmetricEncryptException)(e);
101
101
  }
102
102
  }
103
103
  /**
@@ -109,7 +109,7 @@ var AsymmetricEncryption = (_class = class {
109
109
  try {
110
110
  return this.decrypt(encryptedMessage);
111
111
  } catch (e) {
112
- throw new (0, _chunkOHQGLMDUjs.AsymmetricDecryptException)(e);
112
+ throw new (0, _chunkKNS24473js.AsymmetricDecryptException)(e);
113
113
  }
114
114
  }
115
115
  /**
@@ -121,7 +121,7 @@ var AsymmetricEncryption = (_class = class {
121
121
  try {
122
122
  return this.sign(message);
123
123
  } catch (e) {
124
- throw new (0, _chunkOHQGLMDUjs.AsymmetricSignException)(e);
124
+ throw new (0, _chunkKNS24473js.AsymmetricSignException)(e);
125
125
  }
126
126
  }
127
127
  /**
@@ -134,7 +134,7 @@ var AsymmetricEncryption = (_class = class {
134
134
  try {
135
135
  return this.verify(message, sign2);
136
136
  } catch (e) {
137
- throw new (0, _chunkOHQGLMDUjs.AsymmetricVerifyException)(e);
137
+ throw new (0, _chunkKNS24473js.AsymmetricVerifyException)(e);
138
138
  }
139
139
  }
140
140
  /**
@@ -154,7 +154,7 @@ var AsymmetricEncryption = (_class = class {
154
154
  */
155
155
  get public() {
156
156
  if (!this.publicKey)
157
- throw new (0, _chunkOHQGLMDUjs.NoAsymmetricEncryptPublicKeyException)("Public key not found");
157
+ throw new (0, _chunkKNS24473js.NoAsymmetricEncryptPublicKeyException)("Public key not found");
158
158
  return {
159
159
  encrypt: (message) => this._encrypt(message),
160
160
  verify: (message, sign2) => this._verify(message, sign2),
@@ -166,7 +166,7 @@ var AsymmetricEncryption = (_class = class {
166
166
  */
167
167
  get private() {
168
168
  if (!this.privateKey)
169
- throw new (0, _chunkOHQGLMDUjs.NoAsymmetricEncryptPrivateKeyException)("Private key not found");
169
+ throw new (0, _chunkKNS24473js.NoAsymmetricEncryptPrivateKeyException)("Private key not found");
170
170
  return {
171
171
  decrypt: (encryptedMessage) => this._decrypt(encryptedMessage),
172
172
  sign: (message) => this._sign(message),
@@ -188,10 +188,10 @@ var AsymmetricEncryption = (_class = class {
188
188
  static async loadKeyPair(keyPair, options) {
189
189
  const instance = new this(keyPair);
190
190
  instance.options = Object.assign(instance.options, options ? options : {});
191
- const nonceStr = _chunkCDQUWO3Tjs.NonceStr.call(void 0, );
191
+ const nonceStr = _chunkPFL764XZjs.NonceStr.call(void 0, );
192
192
  const signature = instance.sign(nonceStr);
193
193
  if (!instance.verify(nonceStr, signature))
194
- throw new (0, _chunkOHQGLMDUjs.InvalidAsymmetricEncryptKeyPairException)("Invalid key pair");
194
+ throw new (0, _chunkKNS24473js.InvalidAsymmetricEncryptKeyPairException)("Invalid key pair");
195
195
  return instance;
196
196
  }
197
197
  static async loadPublicKey(inp, options) {
@@ -284,7 +284,7 @@ var SymmetricEncryption = (_class2 = class {constructor() { _class2.prototype.__
284
284
  this.decipherCreator = decipherCreator;
285
285
  const validateKeyLengthResult = this.validateKeyLength(this.key);
286
286
  if (!validateKeyLengthResult.isValid)
287
- throw new (0, _chunkOHQGLMDUjs.InvalidSymmetricCipherKeyLengthException)(
287
+ throw new (0, _chunkKNS24473js.InvalidSymmetricCipherKeyLengthException)(
288
288
  "The key length should be {expectBytes} bytes ({expectBits}-bits), but the received key length is {receivedBytes} bytes ({receivedBits}-bits)",
289
289
  {
290
290
  expectBytes: validateKeyLengthResult.expectBytes,
@@ -295,7 +295,7 @@ var SymmetricEncryption = (_class2 = class {constructor() { _class2.prototype.__
295
295
  );
296
296
  const validateIVLengthResult = this.validateIVLength(this.iv);
297
297
  if (!validateIVLengthResult.isValid)
298
- throw new (0, _chunkOHQGLMDUjs.InvalidSymmetricCipherIVLengthException)(
298
+ throw new (0, _chunkKNS24473js.InvalidSymmetricCipherIVLengthException)(
299
299
  "The IV length should be {expectBytes} bytes ({expectBits}-bits), but the received IV length is {receivedBytes} bytes ({receivedBits}-bits)",
300
300
  {
301
301
  expectBytes: validateIVLengthResult.expectBytes,
@@ -323,7 +323,7 @@ var SymmetricEncryption = (_class2 = class {constructor() { _class2.prototype.__
323
323
  * @protected
324
324
  */
325
325
  algorithmNotFoundInitializer() {
326
- throw new (0, _chunkOHQGLMDUjs.NotSupportCipherException)('The algorithm "{algorithm}" is not support', { algorithm: this.algorithm });
326
+ throw new (0, _chunkKNS24473js.NotSupportCipherException)('The algorithm "{algorithm}" is not support', { algorithm: this.algorithm });
327
327
  }
328
328
  /**
329
329
  * 验证key的长度
@@ -358,7 +358,7 @@ var SymmetricEncryption = (_class2 = class {constructor() { _class2.prototype.__
358
358
  const cipher = this.Cipher;
359
359
  return `${cipher.update(message, "utf-8", "hex")}${cipher.final("hex")}`;
360
360
  } catch (e) {
361
- throw new (0, _chunkOHQGLMDUjs.SymmetricEncryptException)(e);
361
+ throw new (0, _chunkKNS24473js.SymmetricEncryptException)(e);
362
362
  }
363
363
  }
364
364
  /**
@@ -369,10 +369,10 @@ var SymmetricEncryption = (_class2 = class {constructor() { _class2.prototype.__
369
369
  try {
370
370
  return await new Promise((resolve, reject) => {
371
371
  let cache = Buffer.from([]);
372
- _chunkCDQUWO3Tjs.ConvertToStream.call(void 0, message).pipe(this.Cipher).on("data", (chunk) => cache = Buffer.concat([cache, chunk])).once("error", reject).once("end", () => resolve(cache.toString("hex")));
372
+ _chunkPFL764XZjs.ConvertToStream.call(void 0, message).pipe(this.Cipher).on("data", (chunk) => cache = Buffer.concat([cache, chunk])).once("error", reject).once("end", () => resolve(cache.toString("hex")));
373
373
  });
374
374
  } catch (e) {
375
- throw new (0, _chunkOHQGLMDUjs.SymmetricEncryptException)(e);
375
+ throw new (0, _chunkKNS24473js.SymmetricEncryptException)(e);
376
376
  }
377
377
  }
378
378
  /**
@@ -384,7 +384,7 @@ var SymmetricEncryption = (_class2 = class {constructor() { _class2.prototype.__
384
384
  const decipher = this.Decipher;
385
385
  return `${decipher.update(encryptedMessage, "hex", "utf-8")}${decipher.final("utf-8")}`;
386
386
  } catch (e) {
387
- throw new (0, _chunkOHQGLMDUjs.SymmetricDecryptException)(e);
387
+ throw new (0, _chunkKNS24473js.SymmetricDecryptException)(e);
388
388
  }
389
389
  }
390
390
  /**
@@ -398,7 +398,7 @@ var SymmetricEncryption = (_class2 = class {constructor() { _class2.prototype.__
398
398
  decipher.once("error", reject);
399
399
  let chunkCache = "";
400
400
  let decryptedMessage = "";
401
- _chunkCDQUWO3Tjs.ConvertToStream.call(void 0, encryptedMessage).on("data", (chunk) => {
401
+ _chunkPFL764XZjs.ConvertToStream.call(void 0, encryptedMessage).on("data", (chunk) => {
402
402
  chunkCache += chunk;
403
403
  if (chunkCache.length >= this.blockSize) {
404
404
  decryptedMessage += decipher.update(chunkCache, "hex", "utf-8");
@@ -407,7 +407,7 @@ var SymmetricEncryption = (_class2 = class {constructor() { _class2.prototype.__
407
407
  }).once("error", reject).once("end", () => resolve(`${decryptedMessage}${decipher.update(chunkCache, "hex", "utf-8")}${decipher.final("utf-8")}`));
408
408
  });
409
409
  } catch (e) {
410
- throw new (0, _chunkOHQGLMDUjs.SymmetricDecryptException)(e);
410
+ throw new (0, _chunkKNS24473js.SymmetricDecryptException)(e);
411
411
  }
412
412
  }
413
413
  /**
@@ -703,7 +703,7 @@ var RSA = (_class14 = class extends AsymmetricEncryption {constructor(...args) {
703
703
  options.privateKeyEncoding = options.privateKeyEncoding ? options.privateKeyEncoding : {};
704
704
  options.privateKeyEncoding.format = options.privateKeyEncoding.format ? options.privateKeyEncoding.format : "pem";
705
705
  options.privateKeyEncoding.type = options.privateKeyEncoding.type ? options.privateKeyEncoding.type : "pkcs1";
706
- return _crypto.generateKeyPair.call(void 0, "rsa", _chunkCDQUWO3Tjs.As.call(void 0, options), (err, publicKey, privateKey) => {
706
+ return _crypto.generateKeyPair.call(void 0, "rsa", _chunkPFL764XZjs.As.call(void 0, options), (err, publicKey, privateKey) => {
707
707
  if (err)
708
708
  return reject(err);
709
709
  return resolve({
@@ -723,7 +723,7 @@ var RSA = (_class14 = class extends AsymmetricEncryption {constructor(...args) {
723
723
  return super.generateKeyPair(options);
724
724
  }
725
725
  static async loadKeyPair(keyPair, options) {
726
- return _chunkCDQUWO3Tjs.As.call(void 0, super.loadKeyPair(keyPair, options));
726
+ return _chunkPFL764XZjs.As.call(void 0, super.loadKeyPair(keyPair, options));
727
727
  }
728
728
  static async loadPublicKey(inp, options) {
729
729
  return super.loadPublicKey(inp, options);
@@ -3643,7 +3643,7 @@ var SM2 = (_class19 = class extends AsymmetricEncryption {constructor(...args2)
3643
3643
  }
3644
3644
  static async loadKeyPair(keyPair, options) {
3645
3645
  await initRNGPool2(this);
3646
- return _chunkCDQUWO3Tjs.As.call(void 0, super.loadKeyPair(keyPair, options));
3646
+ return _chunkPFL764XZjs.As.call(void 0, super.loadKeyPair(keyPair, options));
3647
3647
  }
3648
3648
  static async loadPublicKey(inp, options) {
3649
3649
  await initRNGPool2(this);
package/Hash.js CHANGED
@@ -51,10 +51,10 @@
51
51
 
52
52
 
53
53
 
54
- var _chunkBDZ4HVBZjs = require('./chunk-BDZ4HVBZ.js');
55
- require('./chunk-TDTTBUBP.js');
54
+ var _chunkSLF5J2V6js = require('./chunk-SLF5J2V6.js');
55
+ require('./chunk-KWFW67OV.js');
56
56
  require('./chunk-IZCE6VLC.js');
57
- require('./chunk-CDQUWO3T.js');
57
+ require('./chunk-PFL764XZ.js');
58
58
  require('./chunk-7LXDFQCY.js');
59
59
 
60
60
 
@@ -109,4 +109,4 @@ require('./chunk-7LXDFQCY.js');
109
109
 
110
110
 
111
111
 
112
- exports.HmacMD5 = _chunkBDZ4HVBZjs.HmacMD5; exports.HmacRIPEMD160 = _chunkBDZ4HVBZjs.HmacRIPEMD160; exports.HmacSHA1 = _chunkBDZ4HVBZjs.HmacSHA1; exports.HmacSHA224 = _chunkBDZ4HVBZjs.HmacSHA224; exports.HmacSHA256 = _chunkBDZ4HVBZjs.HmacSHA256; exports.HmacSHA3 = _chunkBDZ4HVBZjs.HmacSHA3; exports.HmacSHA384 = _chunkBDZ4HVBZjs.HmacSHA384; exports.HmacSHA3_224 = _chunkBDZ4HVBZjs.HmacSHA3_224; exports.HmacSHA3_256 = _chunkBDZ4HVBZjs.HmacSHA3_256; exports.HmacSHA3_384 = _chunkBDZ4HVBZjs.HmacSHA3_384; exports.HmacSHA3_512 = _chunkBDZ4HVBZjs.HmacSHA3_512; exports.HmacSHA512 = _chunkBDZ4HVBZjs.HmacSHA512; exports.HmacSM3 = _chunkBDZ4HVBZjs.HmacSM3; exports.MD5 = _chunkBDZ4HVBZjs.MD5; exports.RIPEMD160 = _chunkBDZ4HVBZjs.RIPEMD160; exports.SHA1 = _chunkBDZ4HVBZjs.SHA1; exports.SHA224 = _chunkBDZ4HVBZjs.SHA224; exports.SHA256 = _chunkBDZ4HVBZjs.SHA256; exports.SHA3 = _chunkBDZ4HVBZjs.SHA3; exports.SHA384 = _chunkBDZ4HVBZjs.SHA384; exports.SHA3_224 = _chunkBDZ4HVBZjs.SHA3_224; exports.SHA3_256 = _chunkBDZ4HVBZjs.SHA3_256; exports.SHA3_384 = _chunkBDZ4HVBZjs.SHA3_384; exports.SHA3_512 = _chunkBDZ4HVBZjs.SHA3_512; exports.SHA512 = _chunkBDZ4HVBZjs.SHA512; exports.SM3 = _chunkBDZ4HVBZjs.SM3; exports.StreamHmacMD5 = _chunkBDZ4HVBZjs.StreamHmacMD5; exports.StreamHmacRIPEMD160 = _chunkBDZ4HVBZjs.StreamHmacRIPEMD160; exports.StreamHmacSHA1 = _chunkBDZ4HVBZjs.StreamHmacSHA1; exports.StreamHmacSHA224 = _chunkBDZ4HVBZjs.StreamHmacSHA224; exports.StreamHmacSHA256 = _chunkBDZ4HVBZjs.StreamHmacSHA256; exports.StreamHmacSHA3 = _chunkBDZ4HVBZjs.StreamHmacSHA3; exports.StreamHmacSHA384 = _chunkBDZ4HVBZjs.StreamHmacSHA384; exports.StreamHmacSHA3_224 = _chunkBDZ4HVBZjs.StreamHmacSHA3_224; exports.StreamHmacSHA3_256 = _chunkBDZ4HVBZjs.StreamHmacSHA3_256; exports.StreamHmacSHA3_384 = _chunkBDZ4HVBZjs.StreamHmacSHA3_384; exports.StreamHmacSHA3_512 = _chunkBDZ4HVBZjs.StreamHmacSHA3_512; exports.StreamHmacSHA512 = _chunkBDZ4HVBZjs.StreamHmacSHA512; exports.StreamHmacSM3 = _chunkBDZ4HVBZjs.StreamHmacSM3; exports.StreamMD5 = _chunkBDZ4HVBZjs.StreamMD5; exports.StreamRIPEMD160 = _chunkBDZ4HVBZjs.StreamRIPEMD160; exports.StreamSHA1 = _chunkBDZ4HVBZjs.StreamSHA1; exports.StreamSHA224 = _chunkBDZ4HVBZjs.StreamSHA224; exports.StreamSHA256 = _chunkBDZ4HVBZjs.StreamSHA256; exports.StreamSHA3 = _chunkBDZ4HVBZjs.StreamSHA3; exports.StreamSHA384 = _chunkBDZ4HVBZjs.StreamSHA384; exports.StreamSHA3_224 = _chunkBDZ4HVBZjs.StreamSHA3_224; exports.StreamSHA3_256 = _chunkBDZ4HVBZjs.StreamSHA3_256; exports.StreamSHA3_384 = _chunkBDZ4HVBZjs.StreamSHA3_384; exports.StreamSHA3_512 = _chunkBDZ4HVBZjs.StreamSHA3_512; exports.StreamSHA512 = _chunkBDZ4HVBZjs.StreamSHA512; exports.StreamSM3 = _chunkBDZ4HVBZjs.StreamSM3;
112
+ exports.HmacMD5 = _chunkSLF5J2V6js.HmacMD5; exports.HmacRIPEMD160 = _chunkSLF5J2V6js.HmacRIPEMD160; exports.HmacSHA1 = _chunkSLF5J2V6js.HmacSHA1; exports.HmacSHA224 = _chunkSLF5J2V6js.HmacSHA224; exports.HmacSHA256 = _chunkSLF5J2V6js.HmacSHA256; exports.HmacSHA3 = _chunkSLF5J2V6js.HmacSHA3; exports.HmacSHA384 = _chunkSLF5J2V6js.HmacSHA384; exports.HmacSHA3_224 = _chunkSLF5J2V6js.HmacSHA3_224; exports.HmacSHA3_256 = _chunkSLF5J2V6js.HmacSHA3_256; exports.HmacSHA3_384 = _chunkSLF5J2V6js.HmacSHA3_384; exports.HmacSHA3_512 = _chunkSLF5J2V6js.HmacSHA3_512; exports.HmacSHA512 = _chunkSLF5J2V6js.HmacSHA512; exports.HmacSM3 = _chunkSLF5J2V6js.HmacSM3; exports.MD5 = _chunkSLF5J2V6js.MD5; exports.RIPEMD160 = _chunkSLF5J2V6js.RIPEMD160; exports.SHA1 = _chunkSLF5J2V6js.SHA1; exports.SHA224 = _chunkSLF5J2V6js.SHA224; exports.SHA256 = _chunkSLF5J2V6js.SHA256; exports.SHA3 = _chunkSLF5J2V6js.SHA3; exports.SHA384 = _chunkSLF5J2V6js.SHA384; exports.SHA3_224 = _chunkSLF5J2V6js.SHA3_224; exports.SHA3_256 = _chunkSLF5J2V6js.SHA3_256; exports.SHA3_384 = _chunkSLF5J2V6js.SHA3_384; exports.SHA3_512 = _chunkSLF5J2V6js.SHA3_512; exports.SHA512 = _chunkSLF5J2V6js.SHA512; exports.SM3 = _chunkSLF5J2V6js.SM3; exports.StreamHmacMD5 = _chunkSLF5J2V6js.StreamHmacMD5; exports.StreamHmacRIPEMD160 = _chunkSLF5J2V6js.StreamHmacRIPEMD160; exports.StreamHmacSHA1 = _chunkSLF5J2V6js.StreamHmacSHA1; exports.StreamHmacSHA224 = _chunkSLF5J2V6js.StreamHmacSHA224; exports.StreamHmacSHA256 = _chunkSLF5J2V6js.StreamHmacSHA256; exports.StreamHmacSHA3 = _chunkSLF5J2V6js.StreamHmacSHA3; exports.StreamHmacSHA384 = _chunkSLF5J2V6js.StreamHmacSHA384; exports.StreamHmacSHA3_224 = _chunkSLF5J2V6js.StreamHmacSHA3_224; exports.StreamHmacSHA3_256 = _chunkSLF5J2V6js.StreamHmacSHA3_256; exports.StreamHmacSHA3_384 = _chunkSLF5J2V6js.StreamHmacSHA3_384; exports.StreamHmacSHA3_512 = _chunkSLF5J2V6js.StreamHmacSHA3_512; exports.StreamHmacSHA512 = _chunkSLF5J2V6js.StreamHmacSHA512; exports.StreamHmacSM3 = _chunkSLF5J2V6js.StreamHmacSM3; exports.StreamMD5 = _chunkSLF5J2V6js.StreamMD5; exports.StreamRIPEMD160 = _chunkSLF5J2V6js.StreamRIPEMD160; exports.StreamSHA1 = _chunkSLF5J2V6js.StreamSHA1; exports.StreamSHA224 = _chunkSLF5J2V6js.StreamSHA224; exports.StreamSHA256 = _chunkSLF5J2V6js.StreamSHA256; exports.StreamSHA3 = _chunkSLF5J2V6js.StreamSHA3; exports.StreamSHA384 = _chunkSLF5J2V6js.StreamSHA384; exports.StreamSHA3_224 = _chunkSLF5J2V6js.StreamSHA3_224; exports.StreamSHA3_256 = _chunkSLF5J2V6js.StreamSHA3_256; exports.StreamSHA3_384 = _chunkSLF5J2V6js.StreamSHA3_384; exports.StreamSHA3_512 = _chunkSLF5J2V6js.StreamSHA3_512; exports.StreamSHA512 = _chunkSLF5J2V6js.StreamSHA512; exports.StreamSM3 = _chunkSLF5J2V6js.StreamSM3;
package/Helper.d.ts CHANGED
@@ -12,6 +12,13 @@ import 'url';
12
12
  import 'http';
13
13
  import 'https';
14
14
 
15
+ /**
16
+ * 以平稳、安全和可控的方式终止程序的执行
17
+ * @param exitCode
18
+ * @param functions
19
+ * @constructor
20
+ */
21
+ declare function GraceExit(exitCode: number, ...functions: (() => any)[]): void;
15
22
  /**
16
23
  * 对象转换为Map
17
24
  * @param obj
@@ -240,4 +247,4 @@ declare function NonceStr(): string;
240
247
  */
241
248
  declare function ParentConstructor<T extends Function = any>(target: T): IConstructor<any> | null;
242
249
 
243
- export { ArrayToSet, As, ConfigureObjectProperties, ConvertToIterable, ConvertToStream, Delay, DevNull, GetPort, IsEqual, IsGlobString, IsObjectInitialized, IsPath, IsPromise, IsPromiseLike, MergeArray, MergeMap, MergeSet, NonceStr, ObjectToMap, ParentConstructor, RandomString, SetToArray, SortArray, SortObject, ThrowIntoBlackHole, UniqueArray };
250
+ export { ArrayToSet, As, ConfigureObjectProperties, ConvertToIterable, ConvertToStream, Delay, DevNull, GetPort, GraceExit, IsEqual, IsGlobString, IsObjectInitialized, IsPath, IsPromise, IsPromiseLike, MergeArray, MergeMap, MergeSet, NonceStr, ObjectToMap, ParentConstructor, RandomString, SetToArray, SortArray, SortObject, ThrowIntoBlackHole, UniqueArray };
package/Helper.js CHANGED
@@ -25,7 +25,8 @@
25
25
 
26
26
 
27
27
 
28
- var _chunkCDQUWO3Tjs = require('./chunk-CDQUWO3T.js');
28
+
29
+ var _chunkPFL764XZjs = require('./chunk-PFL764XZ.js');
29
30
  require('./chunk-7LXDFQCY.js');
30
31
 
31
32
 
@@ -54,4 +55,5 @@ require('./chunk-7LXDFQCY.js');
54
55
 
55
56
 
56
57
 
57
- exports.ArrayToSet = _chunkCDQUWO3Tjs.ArrayToSet; exports.As = _chunkCDQUWO3Tjs.As; exports.ConfigureObjectProperties = _chunkCDQUWO3Tjs.ConfigureObjectProperties; exports.ConvertToIterable = _chunkCDQUWO3Tjs.ConvertToIterable; exports.ConvertToStream = _chunkCDQUWO3Tjs.ConvertToStream; exports.Delay = _chunkCDQUWO3Tjs.Delay; exports.DevNull = _chunkCDQUWO3Tjs.DevNull; exports.GetPort = _chunkCDQUWO3Tjs.GetPort; exports.IsEqual = _chunkCDQUWO3Tjs.IsEqual; exports.IsGlobString = _chunkCDQUWO3Tjs.IsGlobString; exports.IsObjectInitialized = _chunkCDQUWO3Tjs.IsObjectInitialized; exports.IsPath = _chunkCDQUWO3Tjs.IsPath; exports.IsPromise = _chunkCDQUWO3Tjs.IsPromise; exports.IsPromiseLike = _chunkCDQUWO3Tjs.IsPromiseLike; exports.MergeArray = _chunkCDQUWO3Tjs.MergeArray; exports.MergeMap = _chunkCDQUWO3Tjs.MergeMap; exports.MergeSet = _chunkCDQUWO3Tjs.MergeSet; exports.NonceStr = _chunkCDQUWO3Tjs.NonceStr; exports.ObjectToMap = _chunkCDQUWO3Tjs.ObjectToMap; exports.ParentConstructor = _chunkCDQUWO3Tjs.ParentConstructor; exports.RandomString = _chunkCDQUWO3Tjs.RandomString; exports.SetToArray = _chunkCDQUWO3Tjs.SetToArray; exports.SortArray = _chunkCDQUWO3Tjs.SortArray; exports.SortObject = _chunkCDQUWO3Tjs.SortObject; exports.ThrowIntoBlackHole = _chunkCDQUWO3Tjs.ThrowIntoBlackHole; exports.UniqueArray = _chunkCDQUWO3Tjs.UniqueArray;
58
+
59
+ exports.ArrayToSet = _chunkPFL764XZjs.ArrayToSet; exports.As = _chunkPFL764XZjs.As; exports.ConfigureObjectProperties = _chunkPFL764XZjs.ConfigureObjectProperties; exports.ConvertToIterable = _chunkPFL764XZjs.ConvertToIterable; exports.ConvertToStream = _chunkPFL764XZjs.ConvertToStream; exports.Delay = _chunkPFL764XZjs.Delay; exports.DevNull = _chunkPFL764XZjs.DevNull; exports.GetPort = _chunkPFL764XZjs.GetPort; exports.GraceExit = _chunkPFL764XZjs.GraceExit; exports.IsEqual = _chunkPFL764XZjs.IsEqual; exports.IsGlobString = _chunkPFL764XZjs.IsGlobString; exports.IsObjectInitialized = _chunkPFL764XZjs.IsObjectInitialized; exports.IsPath = _chunkPFL764XZjs.IsPath; exports.IsPromise = _chunkPFL764XZjs.IsPromise; exports.IsPromiseLike = _chunkPFL764XZjs.IsPromiseLike; exports.MergeArray = _chunkPFL764XZjs.MergeArray; exports.MergeMap = _chunkPFL764XZjs.MergeMap; exports.MergeSet = _chunkPFL764XZjs.MergeSet; exports.NonceStr = _chunkPFL764XZjs.NonceStr; exports.ObjectToMap = _chunkPFL764XZjs.ObjectToMap; exports.ParentConstructor = _chunkPFL764XZjs.ParentConstructor; exports.RandomString = _chunkPFL764XZjs.RandomString; exports.SetToArray = _chunkPFL764XZjs.SetToArray; exports.SortArray = _chunkPFL764XZjs.SortArray; exports.SortObject = _chunkPFL764XZjs.SortObject; exports.ThrowIntoBlackHole = _chunkPFL764XZjs.ThrowIntoBlackHole; exports.UniqueArray = _chunkPFL764XZjs.UniqueArray;
package/Lakutata.d.ts CHANGED
@@ -4234,11 +4234,7 @@ declare class Application extends Module {
4234
4234
  * 执行应用程序
4235
4235
  * @param options
4236
4236
  */
4237
- static run(options: ApplicationOptions): Promise<Application>;
4238
- /**
4239
- * 获得应用程序加载所使用的options
4240
- */
4241
- get options(): ApplicationOptions;
4237
+ static run(...options: ApplicationOptions[]): Promise<Application>;
4242
4238
  /**
4243
4239
  * 应用程序ID
4244
4240
  */
package/Lakutata.js CHANGED
@@ -62,7 +62,7 @@
62
62
 
63
63
 
64
64
 
65
- var _chunkEESDZ7OAjs = require('./chunk-EESDZ7OA.js');
65
+ var _chunkSBKWEF22js = require('./chunk-SBKWEF22.js');
66
66
  require('./chunk-WP7R7CXB.js');
67
67
 
68
68
 
@@ -79,15 +79,15 @@ require('./chunk-WP7R7CXB.js');
79
79
 
80
80
 
81
81
 
82
- var _chunkOHQGLMDUjs = require('./chunk-OHQGLMDU.js');
82
+ var _chunkKNS24473js = require('./chunk-KNS24473.js');
83
83
 
84
84
 
85
- var _chunkBDZ4HVBZjs = require('./chunk-BDZ4HVBZ.js');
85
+ var _chunkSLF5J2V6js = require('./chunk-SLF5J2V6.js');
86
86
 
87
87
 
88
- var _chunkTDTTBUBPjs = require('./chunk-TDTTBUBP.js');
88
+ var _chunkKWFW67OVjs = require('./chunk-KWFW67OV.js');
89
89
  require('./chunk-IZCE6VLC.js');
90
- require('./chunk-CDQUWO3T.js');
90
+ require('./chunk-PFL764XZ.js');
91
91
  require('./chunk-7LXDFQCY.js');
92
92
 
93
93
 
@@ -169,4 +169,4 @@ require('./chunk-7LXDFQCY.js');
169
169
 
170
170
 
171
171
 
172
- exports.Accept = _chunkEESDZ7OAjs.Accept; exports.AccessControl = _chunkEESDZ7OAjs.AccessControl; exports.AccessControlConfigureRequiredException = _chunkEESDZ7OAjs.AccessControlConfigureRequiredException; exports.AccessDenyException = _chunkEESDZ7OAjs.AccessDenyException; exports.Action = _chunkEESDZ7OAjs.Action; exports.AliasExistsException = _chunkEESDZ7OAjs.AliasExistsException; exports.AliasNotFoundException = _chunkEESDZ7OAjs.AliasNotFoundException; exports.Application = _chunkEESDZ7OAjs.Application; exports.ApplicationOptions = _chunkEESDZ7OAjs.ApplicationOptions; exports.AsymmetricDecryptException = _chunkOHQGLMDUjs.AsymmetricDecryptException; exports.AsymmetricEncryptException = _chunkOHQGLMDUjs.AsymmetricEncryptException; exports.AsymmetricSignException = _chunkOHQGLMDUjs.AsymmetricSignException; exports.AsymmetricVerifyException = _chunkOHQGLMDUjs.AsymmetricVerifyException; exports.BaseObject = _chunkEESDZ7OAjs.BaseObject; exports.BaseValidator = _chunkEESDZ7OAjs.BaseValidator; exports.ChildProcessUnavailableException = _chunkEESDZ7OAjs.ChildProcessUnavailableException; exports.Component = _chunkEESDZ7OAjs.Component; exports.Configurable = _chunkEESDZ7OAjs.Configurable; exports.Container = _chunkEESDZ7OAjs.Container; exports.Controller = _chunkEESDZ7OAjs.Controller; exports.Cron = _chunkEESDZ7OAjs.Cron; exports.DTO = _chunkEESDZ7OAjs.DTO; exports.Database = _chunkEESDZ7OAjs.Database; exports.DependencyInjectionException = _chunkEESDZ7OAjs.DependencyInjectionException; exports.DuplicateControllerActionPatternException = _chunkEESDZ7OAjs.DuplicateControllerActionPatternException; exports.DynamicRegisterControllerNotAllowException = _chunkEESDZ7OAjs.DynamicRegisterControllerNotAllowException; exports.Exception = _chunkTDTTBUBPjs.Exception; exports.Expect = _chunkEESDZ7OAjs.Expect; exports.Formatter = _chunkEESDZ7OAjs.Formatter; exports.HttpRequest = _chunkEESDZ7OAjs.HttpRequest; exports.HttpRequestAbortException = _chunkEESDZ7OAjs.HttpRequestAbortException; exports.HttpRequestException = _chunkEESDZ7OAjs.HttpRequestException; exports.IllegalMethodCallException = _chunkEESDZ7OAjs.IllegalMethodCallException; exports.IndexSignature = _chunkEESDZ7OAjs.IndexSignature; exports.Inject = _chunkEESDZ7OAjs.Inject; exports.InjectApp = _chunkEESDZ7OAjs.InjectApp; exports.InjectModule = _chunkEESDZ7OAjs.InjectModule; exports.Interval = _chunkEESDZ7OAjs.Interval; exports.IntervalMode = _chunkEESDZ7OAjs.IntervalMode; exports.InvalidAliasNameException = _chunkEESDZ7OAjs.InvalidAliasNameException; exports.InvalidAsymmetricEncryptKeyPairException = _chunkOHQGLMDUjs.InvalidAsymmetricEncryptKeyPairException; exports.InvalidAsymmetricEncryptPrivateKeyException = _chunkOHQGLMDUjs.InvalidAsymmetricEncryptPrivateKeyException; exports.InvalidAsymmetricEncryptPublicKeyException = _chunkOHQGLMDUjs.InvalidAsymmetricEncryptPublicKeyException; exports.InvalidConfigurableValueException = _chunkEESDZ7OAjs.InvalidConfigurableValueException; exports.InvalidDTOValueException = _chunkEESDZ7OAjs.InvalidDTOValueException; exports.InvalidGlobStringException = _chunkEESDZ7OAjs.InvalidGlobStringException; exports.InvalidMethodAcceptException = _chunkEESDZ7OAjs.InvalidMethodAcceptException; exports.InvalidMethodReturnException = _chunkEESDZ7OAjs.InvalidMethodReturnException; exports.InvalidSymmetricCipherIVLengthException = _chunkOHQGLMDUjs.InvalidSymmetricCipherIVLengthException; exports.InvalidSymmetricCipherKeyLengthException = _chunkOHQGLMDUjs.InvalidSymmetricCipherKeyLengthException; exports.InvalidValueException = _chunkEESDZ7OAjs.InvalidValueException; exports.Lifetime = _chunkEESDZ7OAjs.Lifetime; exports.LoadComponentOptions = _chunkEESDZ7OAjs.LoadComponentOptions; exports.LoadEntryClassOptions = _chunkEESDZ7OAjs.LoadEntryClassOptions; exports.LoadEntryCommonOptions = _chunkEESDZ7OAjs.LoadEntryCommonOptions; exports.LoadModuleOptions = _chunkEESDZ7OAjs.LoadModuleOptions; exports.Logger = _chunkEESDZ7OAjs.Logger; exports.MethodNotFoundException = _chunkEESDZ7OAjs.MethodNotFoundException; exports.MethodNotImplementedException = _chunkEESDZ7OAjs.MethodNotImplementedException; exports.Model = _chunkEESDZ7OAjs.Model; exports.Module = _chunkEESDZ7OAjs.Module; exports.ModuleNotFoundException = _chunkEESDZ7OAjs.ModuleNotFoundException; exports.ModuleOptions = _chunkEESDZ7OAjs.ModuleOptions; exports.NoAsymmetricEncryptPrivateKeyException = _chunkOHQGLMDUjs.NoAsymmetricEncryptPrivateKeyException; exports.NoAsymmetricEncryptPublicKeyException = _chunkOHQGLMDUjs.NoAsymmetricEncryptPublicKeyException; exports.NoAuthUserException = _chunkEESDZ7OAjs.NoAuthUserException; exports.NoMatchedControllerActionPatternException = _chunkEESDZ7OAjs.NoMatchedControllerActionPatternException; exports.NotSupportCipherException = _chunkOHQGLMDUjs.NotSupportCipherException; exports.NotSupportHashException = _chunkBDZ4HVBZjs.NotSupportHashException; exports.Process = _chunkEESDZ7OAjs.Process; exports.Return = _chunkEESDZ7OAjs.Return; exports.Scoped = _chunkEESDZ7OAjs.Scoped; exports.Singleton = _chunkEESDZ7OAjs.Singleton; exports.SymmetricDecryptException = _chunkOHQGLMDUjs.SymmetricDecryptException; exports.SymmetricEncryptException = _chunkOHQGLMDUjs.SymmetricEncryptException; exports.ThreadTask = _chunkEESDZ7OAjs.ThreadTask; exports.Time = _chunkEESDZ7OAjs.Time; exports.Transient = _chunkEESDZ7OAjs.Transient; exports.Validator = _chunkEESDZ7OAjs.Validator;
172
+ exports.Accept = _chunkSBKWEF22js.Accept; exports.AccessControl = _chunkSBKWEF22js.AccessControl; exports.AccessControlConfigureRequiredException = _chunkSBKWEF22js.AccessControlConfigureRequiredException; exports.AccessDenyException = _chunkSBKWEF22js.AccessDenyException; exports.Action = _chunkSBKWEF22js.Action; exports.AliasExistsException = _chunkSBKWEF22js.AliasExistsException; exports.AliasNotFoundException = _chunkSBKWEF22js.AliasNotFoundException; exports.Application = _chunkSBKWEF22js.Application; exports.ApplicationOptions = _chunkSBKWEF22js.ApplicationOptions; exports.AsymmetricDecryptException = _chunkKNS24473js.AsymmetricDecryptException; exports.AsymmetricEncryptException = _chunkKNS24473js.AsymmetricEncryptException; exports.AsymmetricSignException = _chunkKNS24473js.AsymmetricSignException; exports.AsymmetricVerifyException = _chunkKNS24473js.AsymmetricVerifyException; exports.BaseObject = _chunkSBKWEF22js.BaseObject; exports.BaseValidator = _chunkSBKWEF22js.BaseValidator; exports.ChildProcessUnavailableException = _chunkSBKWEF22js.ChildProcessUnavailableException; exports.Component = _chunkSBKWEF22js.Component; exports.Configurable = _chunkSBKWEF22js.Configurable; exports.Container = _chunkSBKWEF22js.Container; exports.Controller = _chunkSBKWEF22js.Controller; exports.Cron = _chunkSBKWEF22js.Cron; exports.DTO = _chunkSBKWEF22js.DTO; exports.Database = _chunkSBKWEF22js.Database; exports.DependencyInjectionException = _chunkSBKWEF22js.DependencyInjectionException; exports.DuplicateControllerActionPatternException = _chunkSBKWEF22js.DuplicateControllerActionPatternException; exports.DynamicRegisterControllerNotAllowException = _chunkSBKWEF22js.DynamicRegisterControllerNotAllowException; exports.Exception = _chunkKWFW67OVjs.Exception; exports.Expect = _chunkSBKWEF22js.Expect; exports.Formatter = _chunkSBKWEF22js.Formatter; exports.HttpRequest = _chunkSBKWEF22js.HttpRequest; exports.HttpRequestAbortException = _chunkSBKWEF22js.HttpRequestAbortException; exports.HttpRequestException = _chunkSBKWEF22js.HttpRequestException; exports.IllegalMethodCallException = _chunkSBKWEF22js.IllegalMethodCallException; exports.IndexSignature = _chunkSBKWEF22js.IndexSignature; exports.Inject = _chunkSBKWEF22js.Inject; exports.InjectApp = _chunkSBKWEF22js.InjectApp; exports.InjectModule = _chunkSBKWEF22js.InjectModule; exports.Interval = _chunkSBKWEF22js.Interval; exports.IntervalMode = _chunkSBKWEF22js.IntervalMode; exports.InvalidAliasNameException = _chunkSBKWEF22js.InvalidAliasNameException; exports.InvalidAsymmetricEncryptKeyPairException = _chunkKNS24473js.InvalidAsymmetricEncryptKeyPairException; exports.InvalidAsymmetricEncryptPrivateKeyException = _chunkKNS24473js.InvalidAsymmetricEncryptPrivateKeyException; exports.InvalidAsymmetricEncryptPublicKeyException = _chunkKNS24473js.InvalidAsymmetricEncryptPublicKeyException; exports.InvalidConfigurableValueException = _chunkSBKWEF22js.InvalidConfigurableValueException; exports.InvalidDTOValueException = _chunkSBKWEF22js.InvalidDTOValueException; exports.InvalidGlobStringException = _chunkSBKWEF22js.InvalidGlobStringException; exports.InvalidMethodAcceptException = _chunkSBKWEF22js.InvalidMethodAcceptException; exports.InvalidMethodReturnException = _chunkSBKWEF22js.InvalidMethodReturnException; exports.InvalidSymmetricCipherIVLengthException = _chunkKNS24473js.InvalidSymmetricCipherIVLengthException; exports.InvalidSymmetricCipherKeyLengthException = _chunkKNS24473js.InvalidSymmetricCipherKeyLengthException; exports.InvalidValueException = _chunkSBKWEF22js.InvalidValueException; exports.Lifetime = _chunkSBKWEF22js.Lifetime; exports.LoadComponentOptions = _chunkSBKWEF22js.LoadComponentOptions; exports.LoadEntryClassOptions = _chunkSBKWEF22js.LoadEntryClassOptions; exports.LoadEntryCommonOptions = _chunkSBKWEF22js.LoadEntryCommonOptions; exports.LoadModuleOptions = _chunkSBKWEF22js.LoadModuleOptions; exports.Logger = _chunkSBKWEF22js.Logger; exports.MethodNotFoundException = _chunkSBKWEF22js.MethodNotFoundException; exports.MethodNotImplementedException = _chunkSBKWEF22js.MethodNotImplementedException; exports.Model = _chunkSBKWEF22js.Model; exports.Module = _chunkSBKWEF22js.Module; exports.ModuleNotFoundException = _chunkSBKWEF22js.ModuleNotFoundException; exports.ModuleOptions = _chunkSBKWEF22js.ModuleOptions; exports.NoAsymmetricEncryptPrivateKeyException = _chunkKNS24473js.NoAsymmetricEncryptPrivateKeyException; exports.NoAsymmetricEncryptPublicKeyException = _chunkKNS24473js.NoAsymmetricEncryptPublicKeyException; exports.NoAuthUserException = _chunkSBKWEF22js.NoAuthUserException; exports.NoMatchedControllerActionPatternException = _chunkSBKWEF22js.NoMatchedControllerActionPatternException; exports.NotSupportCipherException = _chunkKNS24473js.NotSupportCipherException; exports.NotSupportHashException = _chunkSLF5J2V6js.NotSupportHashException; exports.Process = _chunkSBKWEF22js.Process; exports.Return = _chunkSBKWEF22js.Return; exports.Scoped = _chunkSBKWEF22js.Scoped; exports.Singleton = _chunkSBKWEF22js.Singleton; exports.SymmetricDecryptException = _chunkKNS24473js.SymmetricDecryptException; exports.SymmetricEncryptException = _chunkKNS24473js.SymmetricEncryptException; exports.ThreadTask = _chunkSBKWEF22js.ThreadTask; exports.Time = _chunkSBKWEF22js.Time; exports.Transient = _chunkSBKWEF22js.Transient; exports.Validator = _chunkSBKWEF22js.Validator;