lakutata 0.1.37 → 0.1.39

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
@@ -20,7 +20,7 @@
20
20
 
21
21
 
22
22
 
23
- var _chunkADG5J4INjs = require('./chunk-ADG5J4IN.js');
23
+ var _chunkJB6T6PAAjs = require('./chunk-JB6T6PAA.js');
24
24
  require('./chunk-R5RG75GE.js');
25
25
 
26
26
 
@@ -53609,13 +53609,13 @@ var ProjectType = /* @__PURE__ */ ((ProjectType2) => {
53609
53609
  })(ProjectType || {});
53610
53610
 
53611
53611
  // src/CLI.ts
53612
- _chunkADG5J4INjs.init_Lakutata.call(void 0, );
53612
+ _chunkJB6T6PAAjs.init_Lakutata.call(void 0, );
53613
53613
 
53614
53614
  // src/cli/controllers/CommandLineController.ts
53615
- _chunkADG5J4INjs.init_Lakutata.call(void 0, );
53615
+ _chunkJB6T6PAAjs.init_Lakutata.call(void 0, );
53616
53616
 
53617
53617
  // src/cli/models/Info.ts
53618
- _chunkADG5J4INjs.init_Lakutata.call(void 0, );
53618
+ _chunkJB6T6PAAjs.init_Lakutata.call(void 0, );
53619
53619
 
53620
53620
  // node_modules/chalk/source/vendor/ansi-styles/index.js
53621
53621
  var ANSI_BACKGROUND_OFFSET = 10;
@@ -54116,7 +54116,7 @@ var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
54116
54116
  var source_default = chalk;
54117
54117
 
54118
54118
  // src/cli/models/Info.ts
54119
- var Info = (_class = class extends _chunkADG5J4INjs.Model {constructor(...args2) { super(...args2); _class.prototype.__init.call(this); }
54119
+ var Info = (_class = class extends _chunkJB6T6PAAjs.Model {constructor(...args2) { super(...args2); _class.prototype.__init.call(this); }
54120
54120
  static {
54121
54121
  _chunkHFRHAWXMjs.__name.call(void 0, this, "Info");
54122
54122
  }
@@ -54140,28 +54140,28 @@ var Info = (_class = class extends _chunkADG5J4INjs.Model {constructor(...args2)
54140
54140
  `The installation directory path is ${source_default.underline(this.packageLevel.getInstallPath())}`,
54141
54141
  `Currently running at ${source_default.bold(this.packageLevel.getLevel())} level`,
54142
54142
  `Lakutata is ${source_default.cyan(this.license)} licensed.`,
54143
- `Copyright (c) ${new (0, _chunkADG5J4INjs.Time)().format("YYYY")} ${source_default.bold("Lakutata")}. All rights reserved.`
54143
+ `Copyright (c) ${new (0, _chunkJB6T6PAAjs.Time)().format("YYYY")} ${source_default.bold("Lakutata")}. All rights reserved.`
54144
54144
  ];
54145
54145
  }
54146
54146
  }, _class);
54147
54147
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
54148
- _chunkADG5J4INjs.Inject.call(void 0, )
54148
+ _chunkJB6T6PAAjs.Inject.call(void 0, )
54149
54149
  ], Info.prototype, "packageLevel", 2);
54150
54150
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
54151
- _chunkADG5J4INjs.Configurable.call(void 0, )
54151
+ _chunkJB6T6PAAjs.Configurable.call(void 0, )
54152
54152
  ], Info.prototype, "description", 2);
54153
54153
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
54154
- _chunkADG5J4INjs.Configurable.call(void 0, )
54154
+ _chunkJB6T6PAAjs.Configurable.call(void 0, )
54155
54155
  ], Info.prototype, "license", 2);
54156
54156
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
54157
- _chunkADG5J4INjs.Configurable.call(void 0, )
54157
+ _chunkJB6T6PAAjs.Configurable.call(void 0, )
54158
54158
  ], Info.prototype, "asciiLogo", 2);
54159
54159
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
54160
- _chunkADG5J4INjs.Configurable.call(void 0, )
54160
+ _chunkJB6T6PAAjs.Configurable.call(void 0, )
54161
54161
  ], Info.prototype, "version", 2);
54162
54162
 
54163
54163
  // src/cli/models/Upgrade.ts
54164
- _chunkADG5J4INjs.init_Lakutata.call(void 0, );
54164
+ _chunkJB6T6PAAjs.init_Lakutata.call(void 0, );
54165
54165
 
54166
54166
  // node_modules/execa/index.js
54167
54167
  var import_cross_spawn = _chunkHFRHAWXMjs.__toESM.call(void 0, require_cross_spawn(), 1);
@@ -55769,7 +55769,7 @@ _chunkHFRHAWXMjs.__name.call(void 0, create$, "create$");
55769
55769
  var $ = create$();
55770
55770
 
55771
55771
  // src/cli/models/Upgrade.ts
55772
- var Upgrade = class extends _chunkADG5J4INjs.Model {
55772
+ var Upgrade = class extends _chunkJB6T6PAAjs.Model {
55773
55773
  static {
55774
55774
  _chunkHFRHAWXMjs.__name.call(void 0, this, "Upgrade");
55775
55775
  }
@@ -55859,29 +55859,29 @@ var Upgrade = class extends _chunkADG5J4INjs.Model {
55859
55859
  }
55860
55860
  };
55861
55861
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
55862
- _chunkADG5J4INjs.Inject.call(void 0, "spinner")
55862
+ _chunkJB6T6PAAjs.Inject.call(void 0, "spinner")
55863
55863
  ], Upgrade.prototype, "spinner", 2);
55864
55864
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
55865
- _chunkADG5J4INjs.Inject.call(void 0, "packageLevel")
55865
+ _chunkJB6T6PAAjs.Inject.call(void 0, "packageLevel")
55866
55866
  ], Upgrade.prototype, "packageLevel", 2);
55867
55867
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
55868
- _chunkADG5J4INjs.Inject.call(void 0, "onlineVersion")
55868
+ _chunkJB6T6PAAjs.Inject.call(void 0, "onlineVersion")
55869
55869
  ], Upgrade.prototype, "onlineVersion", 2);
55870
55870
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
55871
- _chunkADG5J4INjs.Configurable.call(void 0, )
55871
+ _chunkJB6T6PAAjs.Configurable.call(void 0, )
55872
55872
  ], Upgrade.prototype, "name", 2);
55873
55873
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
55874
- _chunkADG5J4INjs.Configurable.call(void 0, )
55874
+ _chunkJB6T6PAAjs.Configurable.call(void 0, )
55875
55875
  ], Upgrade.prototype, "version", 2);
55876
55876
 
55877
55877
  // src/cli/models/Create.ts
55878
- _chunkADG5J4INjs.init_Lakutata.call(void 0, );
55878
+ _chunkJB6T6PAAjs.init_Lakutata.call(void 0, );
55879
55879
 
55880
55880
  _chunkAJNR3KRZjs.init_Helper.call(void 0, );
55881
55881
 
55882
55882
  // src/cli/options/ProjectInputInformationOptions.ts
55883
- _chunkADG5J4INjs.init_Lakutata.call(void 0, );
55884
- var ProjectInputInformationOptions = class extends _chunkADG5J4INjs.DTO {
55883
+ _chunkJB6T6PAAjs.init_Lakutata.call(void 0, );
55884
+ var ProjectInputInformationOptions = class extends _chunkJB6T6PAAjs.DTO {
55885
55885
  static {
55886
55886
  _chunkHFRHAWXMjs.__name.call(void 0, this, "ProjectInputInformationOptions");
55887
55887
  }
@@ -55894,56 +55894,56 @@ var ProjectInputInformationOptions = class extends _chunkADG5J4INjs.DTO {
55894
55894
 
55895
55895
  };
55896
55896
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
55897
- _chunkADG5J4INjs.Expect.call(void 0, _chunkADG5J4INjs.Validator.String().required())
55897
+ _chunkJB6T6PAAjs.Expect.call(void 0, _chunkJB6T6PAAjs.Validator.String().required())
55898
55898
  ], ProjectInputInformationOptions.prototype, "path", 2);
55899
55899
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
55900
- _chunkADG5J4INjs.Expect.call(void 0, _chunkADG5J4INjs.Validator.String().valid(...Object.values(ProjectType)))
55900
+ _chunkJB6T6PAAjs.Expect.call(void 0, _chunkJB6T6PAAjs.Validator.String().valid(...Object.values(ProjectType)))
55901
55901
  ], ProjectInputInformationOptions.prototype, "type", 2);
55902
55902
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
55903
- _chunkADG5J4INjs.Expect.call(void 0, _chunkADG5J4INjs.Validator.String().optional())
55903
+ _chunkJB6T6PAAjs.Expect.call(void 0, _chunkJB6T6PAAjs.Validator.String().optional())
55904
55904
  ], ProjectInputInformationOptions.prototype, "id", 2);
55905
55905
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
55906
- _chunkADG5J4INjs.Expect.call(void 0, _chunkADG5J4INjs.Validator.String().optional())
55906
+ _chunkJB6T6PAAjs.Expect.call(void 0, _chunkJB6T6PAAjs.Validator.String().optional())
55907
55907
  ], ProjectInputInformationOptions.prototype, "name", 2);
55908
55908
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
55909
- _chunkADG5J4INjs.Expect.call(void 0, _chunkADG5J4INjs.Validator.String().optional())
55909
+ _chunkJB6T6PAAjs.Expect.call(void 0, _chunkJB6T6PAAjs.Validator.String().optional())
55910
55910
  ], ProjectInputInformationOptions.prototype, "description", 2);
55911
55911
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
55912
- _chunkADG5J4INjs.Expect.call(void 0, _chunkADG5J4INjs.Validator.String().optional())
55912
+ _chunkJB6T6PAAjs.Expect.call(void 0, _chunkJB6T6PAAjs.Validator.String().optional())
55913
55913
  ], ProjectInputInformationOptions.prototype, "author", 2);
55914
55914
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
55915
- _chunkADG5J4INjs.Expect.call(void 0, _chunkADG5J4INjs.Validator.String().optional())
55915
+ _chunkJB6T6PAAjs.Expect.call(void 0, _chunkJB6T6PAAjs.Validator.String().optional())
55916
55916
  ], ProjectInputInformationOptions.prototype, "license", 2);
55917
55917
 
55918
55918
  // src/cli/options/ProjectCompleteInformationOptions.ts
55919
- _chunkADG5J4INjs.init_ValidationDecorators.call(void 0, );
55920
- _chunkADG5J4INjs.init_Validator.call(void 0, );
55919
+ _chunkJB6T6PAAjs.init_ValidationDecorators.call(void 0, );
55920
+ _chunkJB6T6PAAjs.init_Validator.call(void 0, );
55921
55921
  var ProjectCompleteInformationOptions = class extends ProjectInputInformationOptions {
55922
55922
  static {
55923
55923
  _chunkHFRHAWXMjs.__name.call(void 0, this, "ProjectCompleteInformationOptions");
55924
55924
  }
55925
55925
  };
55926
55926
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
55927
- _chunkADG5J4INjs.Expect.call(void 0, _chunkADG5J4INjs.Validator.String().valid(...Object.values(ProjectType)).required())
55927
+ _chunkJB6T6PAAjs.Expect.call(void 0, _chunkJB6T6PAAjs.Validator.String().valid(...Object.values(ProjectType)).required())
55928
55928
  ], ProjectCompleteInformationOptions.prototype, "type", 2);
55929
55929
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
55930
- _chunkADG5J4INjs.Expect.call(void 0, _chunkADG5J4INjs.Validator.String().required())
55930
+ _chunkJB6T6PAAjs.Expect.call(void 0, _chunkJB6T6PAAjs.Validator.String().required())
55931
55931
  ], ProjectCompleteInformationOptions.prototype, "id", 2);
55932
55932
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
55933
- _chunkADG5J4INjs.Expect.call(void 0, _chunkADG5J4INjs.Validator.String().required())
55933
+ _chunkJB6T6PAAjs.Expect.call(void 0, _chunkJB6T6PAAjs.Validator.String().required())
55934
55934
  ], ProjectCompleteInformationOptions.prototype, "name", 2);
55935
55935
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
55936
- _chunkADG5J4INjs.Expect.call(void 0, _chunkADG5J4INjs.Validator.String().required())
55936
+ _chunkJB6T6PAAjs.Expect.call(void 0, _chunkJB6T6PAAjs.Validator.String().required())
55937
55937
  ], ProjectCompleteInformationOptions.prototype, "description", 2);
55938
55938
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
55939
- _chunkADG5J4INjs.Expect.call(void 0, _chunkADG5J4INjs.Validator.String().required())
55939
+ _chunkJB6T6PAAjs.Expect.call(void 0, _chunkJB6T6PAAjs.Validator.String().required())
55940
55940
  ], ProjectCompleteInformationOptions.prototype, "author", 2);
55941
55941
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
55942
- _chunkADG5J4INjs.Expect.call(void 0, _chunkADG5J4INjs.Validator.String().required())
55942
+ _chunkJB6T6PAAjs.Expect.call(void 0, _chunkJB6T6PAAjs.Validator.String().required())
55943
55943
  ], ProjectCompleteInformationOptions.prototype, "license", 2);
55944
55944
 
55945
55945
  // src/cli/models/Create.ts
55946
- var Create = class extends _chunkADG5J4INjs.Model {
55946
+ var Create = class extends _chunkJB6T6PAAjs.Model {
55947
55947
  static {
55948
55948
  _chunkHFRHAWXMjs.__name.call(void 0, this, "Create");
55949
55949
  }
@@ -55988,24 +55988,24 @@ var Create = class extends _chunkADG5J4INjs.Model {
55988
55988
  }
55989
55989
  };
55990
55990
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
55991
- _chunkADG5J4INjs.Inject.call(void 0, "spinner")
55991
+ _chunkJB6T6PAAjs.Inject.call(void 0, "spinner")
55992
55992
  ], Create.prototype, "spinner", 2);
55993
55993
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
55994
- _chunkADG5J4INjs.Inject.call(void 0, "puller")
55994
+ _chunkJB6T6PAAjs.Inject.call(void 0, "puller")
55995
55995
  ], Create.prototype, "puller", 2);
55996
55996
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
55997
- _chunkADG5J4INjs.Inject.call(void 0, "onlineVersion")
55997
+ _chunkJB6T6PAAjs.Inject.call(void 0, "onlineVersion")
55998
55998
  ], Create.prototype, "onlineVersion", 2);
55999
55999
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
56000
- _chunkADG5J4INjs.Configurable.call(void 0, { accept: ProjectCompleteInformationOptions, acceptOptions: { stripUnknown: true } })
56000
+ _chunkJB6T6PAAjs.Configurable.call(void 0, { accept: ProjectCompleteInformationOptions, acceptOptions: { stripUnknown: true } })
56001
56001
  ], Create.prototype, "options", 2);
56002
56002
 
56003
56003
  // src/cli/models/Init.ts
56004
- _chunkADG5J4INjs.init_Model.call(void 0, );
56005
- _chunkADG5J4INjs.init_DependencyInjectionDecorators.call(void 0, );
56004
+ _chunkJB6T6PAAjs.init_Model.call(void 0, );
56005
+ _chunkJB6T6PAAjs.init_DependencyInjectionDecorators.call(void 0, );
56006
56006
 
56007
56007
 
56008
- var Init = class extends _chunkADG5J4INjs.Model {
56008
+ var Init = class extends _chunkJB6T6PAAjs.Model {
56009
56009
  static {
56010
56010
  _chunkHFRHAWXMjs.__name.call(void 0, this, "Init");
56011
56011
  }
@@ -56050,20 +56050,20 @@ var Init = class extends _chunkADG5J4INjs.Model {
56050
56050
  }
56051
56051
  };
56052
56052
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
56053
- _chunkADG5J4INjs.Inject.call(void 0, "spinner")
56053
+ _chunkJB6T6PAAjs.Inject.call(void 0, "spinner")
56054
56054
  ], Init.prototype, "spinner", 2);
56055
56055
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
56056
- _chunkADG5J4INjs.Inject.call(void 0, "puller")
56056
+ _chunkJB6T6PAAjs.Inject.call(void 0, "puller")
56057
56057
  ], Init.prototype, "puller", 2);
56058
56058
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
56059
- _chunkADG5J4INjs.Inject.call(void 0, "onlineVersion")
56059
+ _chunkJB6T6PAAjs.Inject.call(void 0, "onlineVersion")
56060
56060
  ], Init.prototype, "onlineVersion", 2);
56061
56061
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
56062
- _chunkADG5J4INjs.Configurable.call(void 0, { accept: ProjectCompleteInformationOptions, acceptOptions: { stripUnknown: true } })
56062
+ _chunkJB6T6PAAjs.Configurable.call(void 0, { accept: ProjectCompleteInformationOptions, acceptOptions: { stripUnknown: true } })
56063
56063
  ], Init.prototype, "options", 2);
56064
56064
 
56065
56065
  // src/cli/controllers/CommandLineController.ts
56066
- var CommandLineController = class extends _chunkADG5J4INjs.Controller {
56066
+ var CommandLineController = class extends _chunkJB6T6PAAjs.Controller {
56067
56067
  static {
56068
56068
  _chunkHFRHAWXMjs.__name.call(void 0, this, "CommandLineController");
56069
56069
  }
@@ -56090,31 +56090,31 @@ var CommandLineController = class extends _chunkADG5J4INjs.Controller {
56090
56090
  }
56091
56091
  };
56092
56092
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
56093
- _chunkADG5J4INjs.Inject.call(void 0, "completer")
56093
+ _chunkJB6T6PAAjs.Inject.call(void 0, "completer")
56094
56094
  ], CommandLineController.prototype, "completer", 2);
56095
56095
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
56096
- _chunkADG5J4INjs.Action.call(void 0, { type: "init" })
56096
+ _chunkJB6T6PAAjs.Action.call(void 0, { type: "init" })
56097
56097
  ], CommandLineController.prototype, "initProject", 1);
56098
56098
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
56099
- _chunkADG5J4INjs.Action.call(void 0, { type: "create" })
56099
+ _chunkJB6T6PAAjs.Action.call(void 0, { type: "create" })
56100
56100
  ], CommandLineController.prototype, "createProject", 1);
56101
56101
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
56102
- _chunkADG5J4INjs.Action.call(void 0, { type: "upgrade" })
56102
+ _chunkJB6T6PAAjs.Action.call(void 0, { type: "upgrade" })
56103
56103
  ], CommandLineController.prototype, "upgrade", 1);
56104
56104
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
56105
- _chunkADG5J4INjs.Action.call(void 0, { type: "info" })
56105
+ _chunkJB6T6PAAjs.Action.call(void 0, { type: "info" })
56106
56106
  ], CommandLineController.prototype, "info", 1);
56107
56107
 
56108
56108
  // src/CLI.ts
56109
56109
  _chunkAJNR3KRZjs.init_Helper.call(void 0, );
56110
56110
 
56111
56111
  // src/cli/components/PackageLevel.ts
56112
- _chunkADG5J4INjs.init_Lakutata.call(void 0, );
56112
+ _chunkJB6T6PAAjs.init_Lakutata.call(void 0, );
56113
56113
  var import_find_root = _chunkHFRHAWXMjs.__toESM.call(void 0, require_find_root());
56114
56114
  _chunkAJNR3KRZjs.init_Helper.call(void 0, );
56115
56115
 
56116
56116
 
56117
- var PackageLevel = class extends _chunkADG5J4INjs.Component {
56117
+ var PackageLevel = class extends _chunkJB6T6PAAjs.Component {
56118
56118
  static {
56119
56119
  _chunkHFRHAWXMjs.__name.call(void 0, this, "PackageLevel");
56120
56120
  }
@@ -56220,17 +56220,17 @@ var PackageLevel = class extends _chunkADG5J4INjs.Component {
56220
56220
  }
56221
56221
  };
56222
56222
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
56223
- _chunkADG5J4INjs.Configurable.call(void 0, )
56223
+ _chunkJB6T6PAAjs.Configurable.call(void 0, )
56224
56224
  ], PackageLevel.prototype, "name", 2);
56225
56225
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
56226
- _chunkADG5J4INjs.Configurable.call(void 0, )
56226
+ _chunkJB6T6PAAjs.Configurable.call(void 0, )
56227
56227
  ], PackageLevel.prototype, "currentDirectory", 2);
56228
56228
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
56229
- _chunkADG5J4INjs.Configurable.call(void 0, )
56229
+ _chunkJB6T6PAAjs.Configurable.call(void 0, )
56230
56230
  ], PackageLevel.prototype, "workingDirectory", 2);
56231
56231
 
56232
56232
  // src/cli/components/Spinner.ts
56233
- _chunkADG5J4INjs.init_Lakutata.call(void 0, );
56233
+ _chunkJB6T6PAAjs.init_Lakutata.call(void 0, );
56234
56234
  var import_cli_spinners = _chunkHFRHAWXMjs.__toESM.call(void 0, require_cli_spinners());
56235
56235
 
56236
56236
  // node_modules/log-update/index.js
@@ -57166,7 +57166,7 @@ var log_update_default = logUpdate;
57166
57166
  var logUpdateStderr = createLogUpdate(_process3.default.stderr);
57167
57167
 
57168
57168
  // src/cli/components/Spinner.ts
57169
- var Spinner = (_class4 = class extends _chunkADG5J4INjs.Component {constructor(...args3) { super(...args3); _class4.prototype.__init7.call(this);_class4.prototype.__init8.call(this); }
57169
+ var Spinner = (_class4 = class extends _chunkJB6T6PAAjs.Component {constructor(...args3) { super(...args3); _class4.prototype.__init7.call(this);_class4.prototype.__init8.call(this); }
57170
57170
  __init7() {this.style = import_cli_spinners.dots}
57171
57171
  __init8() {this.spinnerInterval = null}
57172
57172
  /**
@@ -57195,19 +57195,19 @@ var Spinner = (_class4 = class extends _chunkADG5J4INjs.Component {constructor(.
57195
57195
  }, _class4);
57196
57196
  _chunkHFRHAWXMjs.__name.call(void 0, Spinner, "Spinner");
57197
57197
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
57198
- _chunkADG5J4INjs.Configurable.call(void 0, )
57198
+ _chunkJB6T6PAAjs.Configurable.call(void 0, )
57199
57199
  ], Spinner.prototype, "style", 2);
57200
57200
  Spinner = _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
57201
- _chunkADG5J4INjs.Singleton.call(void 0, )
57201
+ _chunkJB6T6PAAjs.Singleton.call(void 0, )
57202
57202
  ], Spinner);
57203
57203
 
57204
57204
  // src/CLI.ts
57205
57205
  var import_cli_spinners2 = _chunkHFRHAWXMjs.__toESM.call(void 0, require_cli_spinners());
57206
57206
 
57207
57207
  // src/cli/components/DeGitPuller.ts
57208
- _chunkADG5J4INjs.init_Lakutata.call(void 0, );
57208
+ _chunkJB6T6PAAjs.init_Lakutata.call(void 0, );
57209
57209
  var import_degit = _chunkHFRHAWXMjs.__toESM.call(void 0, require_dist());
57210
- var DeGitPuller = (_class5 = class extends _chunkADG5J4INjs.Component {constructor(...args4) { super(...args4); _class5.prototype.__init9.call(this);_class5.prototype.__init10.call(this);_class5.prototype.__init11.call(this); }
57210
+ var DeGitPuller = (_class5 = class extends _chunkJB6T6PAAjs.Component {constructor(...args4) { super(...args4); _class5.prototype.__init9.call(this);_class5.prototype.__init10.call(this);_class5.prototype.__init11.call(this); }
57211
57211
  static {
57212
57212
  _chunkHFRHAWXMjs.__name.call(void 0, this, "DeGitPuller");
57213
57213
  }
@@ -57237,20 +57237,20 @@ var DeGitPuller = (_class5 = class extends _chunkADG5J4INjs.Component {construct
57237
57237
  }
57238
57238
  }, _class5);
57239
57239
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
57240
- _chunkADG5J4INjs.Configurable.call(void 0, )
57240
+ _chunkJB6T6PAAjs.Configurable.call(void 0, )
57241
57241
  ], DeGitPuller.prototype, "cache", 2);
57242
57242
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
57243
- _chunkADG5J4INjs.Configurable.call(void 0, )
57243
+ _chunkJB6T6PAAjs.Configurable.call(void 0, )
57244
57244
  ], DeGitPuller.prototype, "verbose", 2);
57245
57245
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
57246
- _chunkADG5J4INjs.Configurable.call(void 0, )
57246
+ _chunkJB6T6PAAjs.Configurable.call(void 0, )
57247
57247
  ], DeGitPuller.prototype, "force", 2);
57248
57248
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
57249
- _chunkADG5J4INjs.Configurable.call(void 0, )
57249
+ _chunkJB6T6PAAjs.Configurable.call(void 0, )
57250
57250
  ], DeGitPuller.prototype, "repo", 2);
57251
57251
 
57252
57252
  // src/cli/objects/ProjectInformationCompleter.ts
57253
- _chunkADG5J4INjs.init_Lakutata.call(void 0, );
57253
+ _chunkJB6T6PAAjs.init_Lakutata.call(void 0, );
57254
57254
 
57255
57255
  // node_modules/figures/index.js
57256
57256
 
@@ -59441,7 +59441,7 @@ var inquirer_default = inquirer;
59441
59441
 
59442
59442
  // src/cli/objects/ProjectInformationCompleter.ts
59443
59443
  _chunkAJNR3KRZjs.init_Helper.call(void 0, );
59444
- var ProjectInformationCompleter = class extends _chunkADG5J4INjs.BaseObject {
59444
+ var ProjectInformationCompleter = class extends _chunkJB6T6PAAjs.BaseObject {
59445
59445
  /**
59446
59446
  * 完善项目信息
59447
59447
  * @param options
@@ -59497,15 +59497,15 @@ var ProjectInformationCompleter = class extends _chunkADG5J4INjs.BaseObject {
59497
59497
  };
59498
59498
  _chunkHFRHAWXMjs.__name.call(void 0, ProjectInformationCompleter, "ProjectInformationCompleter");
59499
59499
  ProjectInformationCompleter = _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
59500
- _chunkADG5J4INjs.Transient.call(void 0, )
59500
+ _chunkJB6T6PAAjs.Transient.call(void 0, )
59501
59501
  ], ProjectInformationCompleter);
59502
59502
 
59503
59503
  // src/cli/objects/ProjectInformationUpdater.ts
59504
- _chunkADG5J4INjs.init_Lakutata.call(void 0, );
59504
+ _chunkJB6T6PAAjs.init_Lakutata.call(void 0, );
59505
59505
  _chunkAJNR3KRZjs.init_Helper.call(void 0, );
59506
59506
 
59507
59507
 
59508
- var ProjectInformationUpdater = class extends _chunkADG5J4INjs.BaseObject {
59508
+ var ProjectInformationUpdater = class extends _chunkJB6T6PAAjs.BaseObject {
59509
59509
 
59510
59510
 
59511
59511
 
@@ -59593,14 +59593,14 @@ var ProjectInformationUpdater = class extends _chunkADG5J4INjs.BaseObject {
59593
59593
  };
59594
59594
  _chunkHFRHAWXMjs.__name.call(void 0, ProjectInformationUpdater, "ProjectInformationUpdater");
59595
59595
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
59596
- _chunkADG5J4INjs.Configurable.call(void 0, )
59596
+ _chunkJB6T6PAAjs.Configurable.call(void 0, )
59597
59597
  ], ProjectInformationUpdater.prototype, "workingDirectory", 2);
59598
59598
  ProjectInformationUpdater = _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
59599
- _chunkADG5J4INjs.Transient.call(void 0, )
59599
+ _chunkJB6T6PAAjs.Transient.call(void 0, )
59600
59600
  ], ProjectInformationUpdater);
59601
59601
 
59602
59602
  // src/cli/objects/OnlineLatestVersion.ts
59603
- _chunkADG5J4INjs.init_Lakutata.call(void 0, );
59603
+ _chunkJB6T6PAAjs.init_Lakutata.call(void 0, );
59604
59604
  var import_semver2 = _chunkHFRHAWXMjs.__toESM.call(void 0, require_semver2());
59605
59605
 
59606
59606
  // node_modules/package-json/index.js
@@ -65002,7 +65002,7 @@ async function latestVersion(packageName, options) {
65002
65002
  _chunkHFRHAWXMjs.__name.call(void 0, latestVersion, "latestVersion");
65003
65003
 
65004
65004
  // src/cli/objects/OnlineLatestVersion.ts
65005
- var OnlineLatestVersion = class extends _chunkADG5J4INjs.BaseObject {
65005
+ var OnlineLatestVersion = class extends _chunkJB6T6PAAjs.BaseObject {
65006
65006
  static {
65007
65007
  _chunkHFRHAWXMjs.__name.call(void 0, this, "OnlineLatestVersion");
65008
65008
  }
@@ -65029,14 +65029,13 @@ var OnlineLatestVersion = class extends _chunkADG5J4INjs.BaseObject {
65029
65029
  }
65030
65030
  };
65031
65031
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
65032
- _chunkADG5J4INjs.Configurable.call(void 0, )
65032
+ _chunkJB6T6PAAjs.Configurable.call(void 0, )
65033
65033
  ], OnlineLatestVersion.prototype, "version", 2);
65034
65034
  _chunkHFRHAWXMjs.__decorateClass.call(void 0, [
65035
- _chunkADG5J4INjs.Configurable.call(void 0, )
65035
+ _chunkJB6T6PAAjs.Configurable.call(void 0, )
65036
65036
  ], OnlineLatestVersion.prototype, "name", 2);
65037
65037
 
65038
65038
  // src/CLI.ts
65039
- process.env.ENTRYPOINT_DIR = __dirname;
65040
65039
  var asciiLogo = " _ _ _ \n| | _ | | | | \n| | __ _ | | _ _ _ | |_ __ _ | |_ __ _ \n| | / _` | | |/ / | | | | | __| / _` | | __| / _` | \n| |____ | (_| | | < | |_| | \\ |_ | (_| | \\ |_ | (_| | \n|______| \\__,_| |_|\\_\\ \\__,_| \\__| \\__,_| \\__| \\__,_| \n ";
65041
65040
  async function getCliParams(cli) {
65042
65041
  return new Promise((resolve, reject) => {
@@ -65061,10 +65060,10 @@ async function getCliParams(cli) {
65061
65060
  }
65062
65061
  _chunkHFRHAWXMjs.__name.call(void 0, getCliParams, "getCliParams");
65063
65062
  (async () => {
65064
- const packageJson2 = JSON.parse(await _promises.readFile.call(void 0, _path3.default.resolve(__dirname, "../package.json"), { encoding: "utf-8" }));
65063
+ const packageJson2 = JSON.parse(await _promises.readFile.call(void 0, _path3.default.resolve(__dirname, "./package.json"), { encoding: "utf-8" }));
65065
65064
  const params = await getCliParams(new Command().description("Lakutata CLI").version(packageJson2.version, "-v, --version").helpOption("-h, --help"));
65066
65065
  try {
65067
- await _chunkADG5J4INjs.Application.run({
65066
+ await _chunkJB6T6PAAjs.Application.run({
65068
65067
  id: "cli.lakutata.app",
65069
65068
  name: "Lakutata CLI",
65070
65069
  entries: {
@@ -65117,7 +65116,7 @@ _chunkHFRHAWXMjs.__name.call(void 0, getCliParams, "getCliParams");
65117
65116
  ]
65118
65117
  });
65119
65118
  } catch (e) {
65120
- _chunkADG5J4INjs.Logger.error(_chunkAJNR3KRZjs.As.call(void 0, e).message);
65119
+ _chunkJB6T6PAAjs.Logger.error(_chunkAJNR3KRZjs.As.call(void 0, e).message);
65121
65120
  process.exit(1);
65122
65121
  }
65123
65122
  })();
package/Lakutata.js CHANGED
@@ -63,7 +63,7 @@
63
63
 
64
64
 
65
65
 
66
- var _chunkADG5J4INjs = require('./chunk-ADG5J4IN.js');
66
+ var _chunkJB6T6PAAjs = require('./chunk-JB6T6PAA.js');
67
67
  require('./chunk-R5RG75GE.js');
68
68
  require('./chunk-VHVLJ7ZX.js');
69
69
 
@@ -92,7 +92,7 @@ require('./chunk-BRBHZMTB.js');
92
92
  require('./chunk-AJNR3KRZ.js');
93
93
  require('./chunk-6UN5H6WW.js');
94
94
  require('./chunk-HFRHAWXM.js');
95
- _chunkADG5J4INjs.init_Lakutata.call(void 0, );
95
+ _chunkJB6T6PAAjs.init_Lakutata.call(void 0, );
96
96
 
97
97
 
98
98
 
@@ -173,4 +173,4 @@ _chunkADG5J4INjs.init_Lakutata.call(void 0, );
173
173
 
174
174
 
175
175
 
176
- exports.Accept = _chunkADG5J4INjs.Accept; exports.AccessControl = _chunkADG5J4INjs.AccessControl; exports.AccessControlConfigureRequiredException = _chunkADG5J4INjs.AccessControlConfigureRequiredException; exports.AccessDenyException = _chunkADG5J4INjs.AccessDenyException; exports.Action = _chunkADG5J4INjs.Action; exports.AliasExistsException = _chunkADG5J4INjs.AliasExistsException; exports.AliasNotFoundException = _chunkADG5J4INjs.AliasNotFoundException; exports.Application = _chunkADG5J4INjs.Application; exports.ApplicationOptions = _chunkADG5J4INjs.ApplicationOptions; exports.AsymmetricDecryptException = _chunk55JTWCDUjs.AsymmetricDecryptException; exports.AsymmetricEncryptException = _chunk55JTWCDUjs.AsymmetricEncryptException; exports.AsymmetricSignException = _chunk55JTWCDUjs.AsymmetricSignException; exports.AsymmetricVerifyException = _chunk55JTWCDUjs.AsymmetricVerifyException; exports.BaseObject = _chunkADG5J4INjs.BaseObject; exports.BaseValidator = _chunkADG5J4INjs.BaseValidator; exports.ChildProcessUnavailableException = _chunkADG5J4INjs.ChildProcessUnavailableException; exports.Component = _chunkADG5J4INjs.Component; exports.Configurable = _chunkADG5J4INjs.Configurable; exports.Container = _chunkADG5J4INjs.Container; exports.Controller = _chunkADG5J4INjs.Controller; exports.Cron = _chunkADG5J4INjs.Cron; exports.DTO = _chunkADG5J4INjs.DTO; exports.Database = _chunkADG5J4INjs.Database; exports.DependencyInjectionException = _chunkADG5J4INjs.DependencyInjectionException; exports.DuplicateControllerActionPatternException = _chunkADG5J4INjs.DuplicateControllerActionPatternException; exports.DynamicRegisterControllerNotAllowException = _chunkADG5J4INjs.DynamicRegisterControllerNotAllowException; exports.Exception = _chunkQQXNDXJKjs.Exception; exports.Expect = _chunkADG5J4INjs.Expect; exports.Formatter = _chunkADG5J4INjs.Formatter; exports.HttpRequest = _chunkADG5J4INjs.HttpRequest; exports.HttpRequestAbortException = _chunkADG5J4INjs.HttpRequestAbortException; exports.HttpRequestException = _chunkADG5J4INjs.HttpRequestException; exports.IllegalMethodCallException = _chunkADG5J4INjs.IllegalMethodCallException; exports.IndexSignature = _chunkADG5J4INjs.IndexSignature; exports.Inject = _chunkADG5J4INjs.Inject; exports.InjectApp = _chunkADG5J4INjs.InjectApp; exports.InjectModule = _chunkADG5J4INjs.InjectModule; exports.Interval = _chunkADG5J4INjs.Interval; exports.IntervalMode = _chunkADG5J4INjs.IntervalMode; exports.InvalidAliasNameException = _chunkADG5J4INjs.InvalidAliasNameException; exports.InvalidAsymmetricEncryptKeyPairException = _chunk55JTWCDUjs.InvalidAsymmetricEncryptKeyPairException; exports.InvalidAsymmetricEncryptPrivateKeyException = _chunk55JTWCDUjs.InvalidAsymmetricEncryptPrivateKeyException; exports.InvalidAsymmetricEncryptPublicKeyException = _chunk55JTWCDUjs.InvalidAsymmetricEncryptPublicKeyException; exports.InvalidConfigurableValueException = _chunkADG5J4INjs.InvalidConfigurableValueException; exports.InvalidDTOValueException = _chunkADG5J4INjs.InvalidDTOValueException; exports.InvalidGlobStringException = _chunkADG5J4INjs.InvalidGlobStringException; exports.InvalidMethodAcceptException = _chunkADG5J4INjs.InvalidMethodAcceptException; exports.InvalidMethodReturnException = _chunkADG5J4INjs.InvalidMethodReturnException; exports.InvalidSymmetricCipherIVLengthException = _chunk55JTWCDUjs.InvalidSymmetricCipherIVLengthException; exports.InvalidSymmetricCipherKeyLengthException = _chunk55JTWCDUjs.InvalidSymmetricCipherKeyLengthException; exports.InvalidValueException = _chunkADG5J4INjs.InvalidValueException; exports.Lifetime = _chunkADG5J4INjs.Lifetime; exports.LoadComponentOptions = _chunkADG5J4INjs.LoadComponentOptions; exports.LoadEntryClassOptions = _chunkADG5J4INjs.LoadEntryClassOptions; exports.LoadEntryCommonOptions = _chunkADG5J4INjs.LoadEntryCommonOptions; exports.LoadModuleOptions = _chunkADG5J4INjs.LoadModuleOptions; exports.Logger = _chunkADG5J4INjs.Logger; exports.MethodNotFoundException = _chunkADG5J4INjs.MethodNotFoundException; exports.MethodNotImplementedException = _chunkADG5J4INjs.MethodNotImplementedException; exports.Model = _chunkADG5J4INjs.Model; exports.Module = _chunkADG5J4INjs.Module; exports.ModuleNotFoundException = _chunkADG5J4INjs.ModuleNotFoundException; exports.ModuleOptions = _chunkADG5J4INjs.ModuleOptions; exports.NoAsymmetricEncryptPrivateKeyException = _chunk55JTWCDUjs.NoAsymmetricEncryptPrivateKeyException; exports.NoAsymmetricEncryptPublicKeyException = _chunk55JTWCDUjs.NoAsymmetricEncryptPublicKeyException; exports.NoAuthUserException = _chunkADG5J4INjs.NoAuthUserException; exports.NoMatchedControllerActionPatternException = _chunkADG5J4INjs.NoMatchedControllerActionPatternException; exports.NotSupportCipherException = _chunk55JTWCDUjs.NotSupportCipherException; exports.NotSupportHashException = _chunkUTI5FNBVjs.NotSupportHashException; exports.Process = _chunkADG5J4INjs.Process; exports.Return = _chunkADG5J4INjs.Return; exports.Scoped = _chunkADG5J4INjs.Scoped; exports.Singleton = _chunkADG5J4INjs.Singleton; exports.SymmetricDecryptException = _chunk55JTWCDUjs.SymmetricDecryptException; exports.SymmetricEncryptException = _chunk55JTWCDUjs.SymmetricEncryptException; exports.ThreadTask = _chunkADG5J4INjs.ThreadTask; exports.Time = _chunkADG5J4INjs.Time; exports.Transient = _chunkADG5J4INjs.Transient; exports.Validator = _chunkADG5J4INjs.Validator;
176
+ exports.Accept = _chunkJB6T6PAAjs.Accept; exports.AccessControl = _chunkJB6T6PAAjs.AccessControl; exports.AccessControlConfigureRequiredException = _chunkJB6T6PAAjs.AccessControlConfigureRequiredException; exports.AccessDenyException = _chunkJB6T6PAAjs.AccessDenyException; exports.Action = _chunkJB6T6PAAjs.Action; exports.AliasExistsException = _chunkJB6T6PAAjs.AliasExistsException; exports.AliasNotFoundException = _chunkJB6T6PAAjs.AliasNotFoundException; exports.Application = _chunkJB6T6PAAjs.Application; exports.ApplicationOptions = _chunkJB6T6PAAjs.ApplicationOptions; exports.AsymmetricDecryptException = _chunk55JTWCDUjs.AsymmetricDecryptException; exports.AsymmetricEncryptException = _chunk55JTWCDUjs.AsymmetricEncryptException; exports.AsymmetricSignException = _chunk55JTWCDUjs.AsymmetricSignException; exports.AsymmetricVerifyException = _chunk55JTWCDUjs.AsymmetricVerifyException; exports.BaseObject = _chunkJB6T6PAAjs.BaseObject; exports.BaseValidator = _chunkJB6T6PAAjs.BaseValidator; exports.ChildProcessUnavailableException = _chunkJB6T6PAAjs.ChildProcessUnavailableException; exports.Component = _chunkJB6T6PAAjs.Component; exports.Configurable = _chunkJB6T6PAAjs.Configurable; exports.Container = _chunkJB6T6PAAjs.Container; exports.Controller = _chunkJB6T6PAAjs.Controller; exports.Cron = _chunkJB6T6PAAjs.Cron; exports.DTO = _chunkJB6T6PAAjs.DTO; exports.Database = _chunkJB6T6PAAjs.Database; exports.DependencyInjectionException = _chunkJB6T6PAAjs.DependencyInjectionException; exports.DuplicateControllerActionPatternException = _chunkJB6T6PAAjs.DuplicateControllerActionPatternException; exports.DynamicRegisterControllerNotAllowException = _chunkJB6T6PAAjs.DynamicRegisterControllerNotAllowException; exports.Exception = _chunkQQXNDXJKjs.Exception; exports.Expect = _chunkJB6T6PAAjs.Expect; exports.Formatter = _chunkJB6T6PAAjs.Formatter; exports.HttpRequest = _chunkJB6T6PAAjs.HttpRequest; exports.HttpRequestAbortException = _chunkJB6T6PAAjs.HttpRequestAbortException; exports.HttpRequestException = _chunkJB6T6PAAjs.HttpRequestException; exports.IllegalMethodCallException = _chunkJB6T6PAAjs.IllegalMethodCallException; exports.IndexSignature = _chunkJB6T6PAAjs.IndexSignature; exports.Inject = _chunkJB6T6PAAjs.Inject; exports.InjectApp = _chunkJB6T6PAAjs.InjectApp; exports.InjectModule = _chunkJB6T6PAAjs.InjectModule; exports.Interval = _chunkJB6T6PAAjs.Interval; exports.IntervalMode = _chunkJB6T6PAAjs.IntervalMode; exports.InvalidAliasNameException = _chunkJB6T6PAAjs.InvalidAliasNameException; exports.InvalidAsymmetricEncryptKeyPairException = _chunk55JTWCDUjs.InvalidAsymmetricEncryptKeyPairException; exports.InvalidAsymmetricEncryptPrivateKeyException = _chunk55JTWCDUjs.InvalidAsymmetricEncryptPrivateKeyException; exports.InvalidAsymmetricEncryptPublicKeyException = _chunk55JTWCDUjs.InvalidAsymmetricEncryptPublicKeyException; exports.InvalidConfigurableValueException = _chunkJB6T6PAAjs.InvalidConfigurableValueException; exports.InvalidDTOValueException = _chunkJB6T6PAAjs.InvalidDTOValueException; exports.InvalidGlobStringException = _chunkJB6T6PAAjs.InvalidGlobStringException; exports.InvalidMethodAcceptException = _chunkJB6T6PAAjs.InvalidMethodAcceptException; exports.InvalidMethodReturnException = _chunkJB6T6PAAjs.InvalidMethodReturnException; exports.InvalidSymmetricCipherIVLengthException = _chunk55JTWCDUjs.InvalidSymmetricCipherIVLengthException; exports.InvalidSymmetricCipherKeyLengthException = _chunk55JTWCDUjs.InvalidSymmetricCipherKeyLengthException; exports.InvalidValueException = _chunkJB6T6PAAjs.InvalidValueException; exports.Lifetime = _chunkJB6T6PAAjs.Lifetime; exports.LoadComponentOptions = _chunkJB6T6PAAjs.LoadComponentOptions; exports.LoadEntryClassOptions = _chunkJB6T6PAAjs.LoadEntryClassOptions; exports.LoadEntryCommonOptions = _chunkJB6T6PAAjs.LoadEntryCommonOptions; exports.LoadModuleOptions = _chunkJB6T6PAAjs.LoadModuleOptions; exports.Logger = _chunkJB6T6PAAjs.Logger; exports.MethodNotFoundException = _chunkJB6T6PAAjs.MethodNotFoundException; exports.MethodNotImplementedException = _chunkJB6T6PAAjs.MethodNotImplementedException; exports.Model = _chunkJB6T6PAAjs.Model; exports.Module = _chunkJB6T6PAAjs.Module; exports.ModuleNotFoundException = _chunkJB6T6PAAjs.ModuleNotFoundException; exports.ModuleOptions = _chunkJB6T6PAAjs.ModuleOptions; exports.NoAsymmetricEncryptPrivateKeyException = _chunk55JTWCDUjs.NoAsymmetricEncryptPrivateKeyException; exports.NoAsymmetricEncryptPublicKeyException = _chunk55JTWCDUjs.NoAsymmetricEncryptPublicKeyException; exports.NoAuthUserException = _chunkJB6T6PAAjs.NoAuthUserException; exports.NoMatchedControllerActionPatternException = _chunkJB6T6PAAjs.NoMatchedControllerActionPatternException; exports.NotSupportCipherException = _chunk55JTWCDUjs.NotSupportCipherException; exports.NotSupportHashException = _chunkUTI5FNBVjs.NotSupportHashException; exports.Process = _chunkJB6T6PAAjs.Process; exports.Return = _chunkJB6T6PAAjs.Return; exports.Scoped = _chunkJB6T6PAAjs.Scoped; exports.Singleton = _chunkJB6T6PAAjs.Singleton; exports.SymmetricDecryptException = _chunk55JTWCDUjs.SymmetricDecryptException; exports.SymmetricEncryptException = _chunk55JTWCDUjs.SymmetricEncryptException; exports.ThreadTask = _chunkJB6T6PAAjs.ThreadTask; exports.Time = _chunkJB6T6PAAjs.Time; exports.Transient = _chunkJB6T6PAAjs.Transient; exports.Validator = _chunkJB6T6PAAjs.Validator;
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkADG5J4INjs = require('./chunk-ADG5J4IN.js');
5
+ var _chunkJB6T6PAAjs = require('./chunk-JB6T6PAA.js');
6
6
  require('./chunk-R5RG75GE.js');
7
7
  require('./chunk-VHVLJ7ZX.js');
8
8
  require('./chunk-55JTWCDU.js');
@@ -20,7 +20,7 @@ var _chunkHFRHAWXMjs = require('./chunk-HFRHAWXM.js');
20
20
  var _v8 = require('v8'); var _v82 = _interopRequireDefault(_v8);
21
21
  var require_ProcessContainer = _chunkHFRHAWXMjs.__commonJS.call(void 0, {
22
22
  "src/ProcessContainer.ts"(exports, module) {
23
- _chunkADG5J4INjs.init_Lakutata.call(void 0, );
23
+ _chunkJB6T6PAAjs.init_Lakutata.call(void 0, );
24
24
  if (_chunkHFRHAWXMjs.__require.resolve("ts-node") && __filename.endsWith(".js"))
25
25
  eval("require('ts-node')")["register"]();
26
26
  var reversed = process.argv.reverse();
@@ -32,13 +32,13 @@ var require_ProcessContainer = _chunkHFRHAWXMjs.__commonJS.call(void 0, {
32
32
  var configurableProperties = _v82.default.deserialize(Buffer.from(base64Configs, "base64"));
33
33
  var ProcessClassConstructor = _chunkHFRHAWXMjs.__require.call(void 0, moduleFilename)[className];
34
34
  process.on("uncaughtException", (error) => process.send(["__$psError", error])).on("disconnect", () => process.exit());
35
- _chunkADG5J4INjs.Application.run({
35
+ _chunkJB6T6PAAjs.Application.run({
36
36
  id: `${className}.${workerId}`,
37
37
  name: `${className}-${process.env.appName}`,
38
38
  timezone: process.env.TZ,
39
39
  components: {
40
40
  log: {
41
- class: _chunkADG5J4INjs.Logger,
41
+ class: _chunkJB6T6PAAjs.Logger,
42
42
  provider: {
43
43
  error: (...args) => process.send([loggerEvent, "error", ...args]),
44
44
  warn: (...args) => process.send([loggerEvent, "warn", ...args]),
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkADG5J4INjs = require('./chunk-ADG5J4IN.js');
4
+ var _chunkJB6T6PAAjs = require('./chunk-JB6T6PAA.js');
5
5
  require('./chunk-R5RG75GE.js');
6
6
  require('./chunk-VHVLJ7ZX.js');
7
7
  require('./chunk-55JTWCDU.js');
@@ -22,7 +22,7 @@ var require_ThreadContainer = _chunkHFRHAWXMjs.__commonJS.call(void 0, {
22
22
  "src/ThreadContainer.js"(exports, module) {
23
23
  if (_chunkHFRHAWXMjs.__require.resolve("ts-node"))
24
24
  eval("require('ts-node')")["register"]();
25
- var { Application, Logger } = (_chunkADG5J4INjs.init_Lakutata.call(void 0, ), _chunkHFRHAWXMjs.__toCommonJS.call(void 0, _chunkADG5J4INjs.Lakutata_exports));
25
+ var { Application, Logger } = (_chunkJB6T6PAAjs.init_Lakutata.call(void 0, ), _chunkHFRHAWXMjs.__toCommonJS.call(void 0, _chunkJB6T6PAAjs.Lakutata_exports));
26
26
  var { workerData, parentPort } = _chunkHFRHAWXMjs.__require.call(void 0, "worker_threads");
27
27
  var configurableProperties = workerData.configurableProperties;
28
28
  var moduleFilename = workerData.moduleId;
@@ -15246,8 +15246,8 @@ var require_utils4 = _chunkHFRHAWXMjs.__commonJS.call(void 0, {
15246
15246
  exports2.array = array;
15247
15247
  var errno = require_errno();
15248
15248
  exports2.errno = errno;
15249
- var fs2 = require_fs();
15250
- exports2.fs = fs2;
15249
+ var fs3 = require_fs();
15250
+ exports2.fs = fs3;
15251
15251
  var path7 = require_path();
15252
15252
  exports2.path = path7;
15253
15253
  var pattern = require_pattern();
@@ -15443,12 +15443,12 @@ var require_fs2 = _chunkHFRHAWXMjs.__commonJS.call(void 0, {
15443
15443
  "use strict";
15444
15444
  Object.defineProperty(exports2, "__esModule", { value: true });
15445
15445
  exports2.createFileSystemAdapter = exports2.FILE_SYSTEM_ADAPTER = void 0;
15446
- var fs2 = _chunkHFRHAWXMjs.__require.call(void 0, "fs");
15446
+ var fs3 = _chunkHFRHAWXMjs.__require.call(void 0, "fs");
15447
15447
  exports2.FILE_SYSTEM_ADAPTER = {
15448
- lstat: fs2.lstat,
15449
- stat: fs2.stat,
15450
- lstatSync: fs2.lstatSync,
15451
- statSync: fs2.statSync
15448
+ lstat: fs3.lstat,
15449
+ stat: fs3.stat,
15450
+ lstatSync: fs3.lstatSync,
15451
+ statSync: fs3.statSync
15452
15452
  };
15453
15453
  function createFileSystemAdapter(fsMethods) {
15454
15454
  if (fsMethods === void 0) {
@@ -15466,7 +15466,7 @@ var require_settings = _chunkHFRHAWXMjs.__commonJS.call(void 0, {
15466
15466
  "node_modules/@nodelib/fs.stat/out/settings.js"(exports2) {
15467
15467
  "use strict";
15468
15468
  Object.defineProperty(exports2, "__esModule", { value: true });
15469
- var fs2 = require_fs2();
15469
+ var fs3 = require_fs2();
15470
15470
  var Settings = class {
15471
15471
  static {
15472
15472
  _chunkHFRHAWXMjs.__name.call(void 0, this, "Settings");
@@ -15474,7 +15474,7 @@ var require_settings = _chunkHFRHAWXMjs.__commonJS.call(void 0, {
15474
15474
  constructor(_options = {}) {
15475
15475
  this._options = _options;
15476
15476
  this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, true);
15477
- this.fs = fs2.createFileSystemAdapter(this._options.fs);
15477
+ this.fs = fs3.createFileSystemAdapter(this._options.fs);
15478
15478
  this.markSymbolicLink = this._getValue(this._options.markSymbolicLink, false);
15479
15479
  this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
15480
15480
  }
@@ -15645,8 +15645,8 @@ var require_utils5 = _chunkHFRHAWXMjs.__commonJS.call(void 0, {
15645
15645
  "use strict";
15646
15646
  Object.defineProperty(exports2, "__esModule", { value: true });
15647
15647
  exports2.fs = void 0;
15648
- var fs2 = require_fs3();
15649
- exports2.fs = fs2;
15648
+ var fs3 = require_fs3();
15649
+ exports2.fs = fs3;
15650
15650
  }
15651
15651
  });
15652
15652
 
@@ -15851,14 +15851,14 @@ var require_fs4 = _chunkHFRHAWXMjs.__commonJS.call(void 0, {
15851
15851
  "use strict";
15852
15852
  Object.defineProperty(exports2, "__esModule", { value: true });
15853
15853
  exports2.createFileSystemAdapter = exports2.FILE_SYSTEM_ADAPTER = void 0;
15854
- var fs2 = _chunkHFRHAWXMjs.__require.call(void 0, "fs");
15854
+ var fs3 = _chunkHFRHAWXMjs.__require.call(void 0, "fs");
15855
15855
  exports2.FILE_SYSTEM_ADAPTER = {
15856
- lstat: fs2.lstat,
15857
- stat: fs2.stat,
15858
- lstatSync: fs2.lstatSync,
15859
- statSync: fs2.statSync,
15860
- readdir: fs2.readdir,
15861
- readdirSync: fs2.readdirSync
15856
+ lstat: fs3.lstat,
15857
+ stat: fs3.stat,
15858
+ lstatSync: fs3.lstatSync,
15859
+ statSync: fs3.statSync,
15860
+ readdir: fs3.readdir,
15861
+ readdirSync: fs3.readdirSync
15862
15862
  };
15863
15863
  function createFileSystemAdapter(fsMethods) {
15864
15864
  if (fsMethods === void 0) {
@@ -15878,7 +15878,7 @@ var require_settings2 = _chunkHFRHAWXMjs.__commonJS.call(void 0, {
15878
15878
  Object.defineProperty(exports2, "__esModule", { value: true });
15879
15879
  var path7 = _chunkHFRHAWXMjs.__require.call(void 0, "path");
15880
15880
  var fsStat = require_out();
15881
- var fs2 = require_fs4();
15881
+ var fs3 = require_fs4();
15882
15882
  var Settings = class {
15883
15883
  static {
15884
15884
  _chunkHFRHAWXMjs.__name.call(void 0, this, "Settings");
@@ -15886,7 +15886,7 @@ var require_settings2 = _chunkHFRHAWXMjs.__commonJS.call(void 0, {
15886
15886
  constructor(_options = {}) {
15887
15887
  this._options = _options;
15888
15888
  this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
15889
- this.fs = fs2.createFileSystemAdapter(this._options.fs);
15889
+ this.fs = fs3.createFileSystemAdapter(this._options.fs);
15890
15890
  this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path7.sep);
15891
15891
  this.stats = this._getValue(this._options.stats, false);
15892
15892
  this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
@@ -17301,16 +17301,16 @@ var require_settings4 = _chunkHFRHAWXMjs.__commonJS.call(void 0, {
17301
17301
  "use strict";
17302
17302
  Object.defineProperty(exports2, "__esModule", { value: true });
17303
17303
  exports2.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
17304
- var fs2 = _chunkHFRHAWXMjs.__require.call(void 0, "fs");
17304
+ var fs3 = _chunkHFRHAWXMjs.__require.call(void 0, "fs");
17305
17305
  var os = _chunkHFRHAWXMjs.__require.call(void 0, "os");
17306
17306
  var CPU_COUNT = Math.max(os.cpus().length, 1);
17307
17307
  exports2.DEFAULT_FILE_SYSTEM_ADAPTER = {
17308
- lstat: fs2.lstat,
17309
- lstatSync: fs2.lstatSync,
17310
- stat: fs2.stat,
17311
- statSync: fs2.statSync,
17312
- readdir: fs2.readdir,
17313
- readdirSync: fs2.readdirSync
17308
+ lstat: fs3.lstat,
17309
+ lstatSync: fs3.lstatSync,
17310
+ stat: fs3.stat,
17311
+ statSync: fs3.statSync,
17312
+ readdir: fs3.readdir,
17313
+ readdirSync: fs3.readdirSync
17314
17314
  };
17315
17315
  var Settings = class {
17316
17316
  static {
@@ -25490,7 +25490,7 @@ var require_atomic_sleep = _chunkHFRHAWXMjs.__commonJS.call(void 0, {
25490
25490
  var require_sonic_boom = _chunkHFRHAWXMjs.__commonJS.call(void 0, {
25491
25491
  "node_modules/sonic-boom/index.js"(exports2, module2) {
25492
25492
  "use strict";
25493
- var fs2 = _chunkHFRHAWXMjs.__require.call(void 0, "fs");
25493
+ var fs3 = _chunkHFRHAWXMjs.__require.call(void 0, "fs");
25494
25494
  var EventEmitter3 = _chunkHFRHAWXMjs.__require.call(void 0, "events");
25495
25495
  var inherits2 = _chunkHFRHAWXMjs.__require.call(void 0, "util").inherits;
25496
25496
  var path7 = _chunkHFRHAWXMjs.__require.call(void 0, "path");
@@ -25540,21 +25540,21 @@ var require_sonic_boom = _chunkHFRHAWXMjs.__commonJS.call(void 0, {
25540
25540
  if (sonic.sync) {
25541
25541
  try {
25542
25542
  if (sonic.mkdir)
25543
- fs2.mkdirSync(path7.dirname(file), { recursive: true });
25544
- const fd = fs2.openSync(file, flags, mode);
25543
+ fs3.mkdirSync(path7.dirname(file), { recursive: true });
25544
+ const fd = fs3.openSync(file, flags, mode);
25545
25545
  fileOpened(null, fd);
25546
25546
  } catch (err) {
25547
25547
  fileOpened(err);
25548
25548
  throw err;
25549
25549
  }
25550
25550
  } else if (sonic.mkdir) {
25551
- fs2.mkdir(path7.dirname(file), { recursive: true }, (err) => {
25551
+ fs3.mkdir(path7.dirname(file), { recursive: true }, (err) => {
25552
25552
  if (err)
25553
25553
  return fileOpened(err);
25554
- fs2.open(file, flags, mode, fileOpened);
25554
+ fs3.open(file, flags, mode, fileOpened);
25555
25555
  });
25556
25556
  } else {
25557
- fs2.open(file, flags, mode, fileOpened);
25557
+ fs3.open(file, flags, mode, fileOpened);
25558
25558
  }
25559
25559
  }
25560
25560
  _chunkHFRHAWXMjs.__name.call(void 0, openFile, "openFile");
@@ -25607,7 +25607,7 @@ var require_sonic_boom = _chunkHFRHAWXMjs.__commonJS.call(void 0, {
25607
25607
  }
25608
25608
  } else {
25609
25609
  setTimeout(() => {
25610
- fs2.write(this.fd, this._writingBuf, "utf8", this.release);
25610
+ fs3.write(this.fd, this._writingBuf, "utf8", this.release);
25611
25611
  }, BUSY_WRITE_TIMEOUT);
25612
25612
  }
25613
25613
  } else {
@@ -25624,12 +25624,12 @@ var require_sonic_boom = _chunkHFRHAWXMjs.__commonJS.call(void 0, {
25624
25624
  this._writingBuf = this._writingBuf.slice(n2);
25625
25625
  if (this._writingBuf.length) {
25626
25626
  if (!this.sync) {
25627
- fs2.write(this.fd, this._writingBuf, "utf8", this.release);
25627
+ fs3.write(this.fd, this._writingBuf, "utf8", this.release);
25628
25628
  return;
25629
25629
  }
25630
25630
  try {
25631
25631
  do {
25632
- const n3 = fs2.writeSync(this.fd, this._writingBuf, "utf8");
25632
+ const n3 = fs3.writeSync(this.fd, this._writingBuf, "utf8");
25633
25633
  this._len -= n3;
25634
25634
  this._writingBuf = this._writingBuf.slice(n3);
25635
25635
  } while (this._writingBuf);
@@ -25639,7 +25639,7 @@ var require_sonic_boom = _chunkHFRHAWXMjs.__commonJS.call(void 0, {
25639
25639
  }
25640
25640
  }
25641
25641
  if (this._fsync) {
25642
- fs2.fsyncSync(this.fd);
25642
+ fs3.fsyncSync(this.fd);
25643
25643
  }
25644
25644
  const len = this._len;
25645
25645
  if (this._reopening) {
@@ -25739,7 +25739,7 @@ var require_sonic_boom = _chunkHFRHAWXMjs.__commonJS.call(void 0, {
25739
25739
  const fd = this.fd;
25740
25740
  this.once("ready", () => {
25741
25741
  if (fd !== this.fd) {
25742
- fs2.close(fd, (err) => {
25742
+ fs3.close(fd, (err) => {
25743
25743
  if (err) {
25744
25744
  return this.emit("error", err);
25745
25745
  }
@@ -25788,7 +25788,7 @@ var require_sonic_boom = _chunkHFRHAWXMjs.__commonJS.call(void 0, {
25788
25788
  buf = this._bufs[0];
25789
25789
  }
25790
25790
  try {
25791
- const n2 = fs2.writeSync(this.fd, buf, "utf8");
25791
+ const n2 = fs3.writeSync(this.fd, buf, "utf8");
25792
25792
  buf = buf.slice(n2);
25793
25793
  this._len = Math.max(this._len - n2, 0);
25794
25794
  if (buf.length <= 0) {
@@ -25815,13 +25815,13 @@ var require_sonic_boom = _chunkHFRHAWXMjs.__commonJS.call(void 0, {
25815
25815
  sonic._writingBuf = sonic._writingBuf || sonic._bufs.shift() || "";
25816
25816
  if (sonic.sync) {
25817
25817
  try {
25818
- const written = fs2.writeSync(sonic.fd, sonic._writingBuf, "utf8");
25818
+ const written = fs3.writeSync(sonic.fd, sonic._writingBuf, "utf8");
25819
25819
  release(null, written);
25820
25820
  } catch (err) {
25821
25821
  release(err);
25822
25822
  }
25823
25823
  } else {
25824
- fs2.write(sonic.fd, sonic._writingBuf, "utf8", release);
25824
+ fs3.write(sonic.fd, sonic._writingBuf, "utf8", release);
25825
25825
  }
25826
25826
  }
25827
25827
  _chunkHFRHAWXMjs.__name.call(void 0, actualWrite, "actualWrite");
@@ -25833,7 +25833,7 @@ var require_sonic_boom = _chunkHFRHAWXMjs.__commonJS.call(void 0, {
25833
25833
  sonic.destroyed = true;
25834
25834
  sonic._bufs = [];
25835
25835
  if (sonic.fd !== 1 && sonic.fd !== 2) {
25836
- fs2.close(sonic.fd, done);
25836
+ fs3.close(sonic.fd, done);
25837
25837
  } else {
25838
25838
  setImmediate(done);
25839
25839
  }
@@ -28637,7 +28637,7 @@ var require_pump = _chunkHFRHAWXMjs.__commonJS.call(void 0, {
28637
28637
  "use strict";
28638
28638
  var once = _chunkVHVLJ7ZXjs.require_once.call(void 0, );
28639
28639
  var eos = require_end_of_stream();
28640
- var fs2 = _chunkHFRHAWXMjs.__require.call(void 0, "fs");
28640
+ var fs3 = _chunkHFRHAWXMjs.__require.call(void 0, "fs");
28641
28641
  var noop2 = /* @__PURE__ */ _chunkHFRHAWXMjs.__name.call(void 0, function() {
28642
28642
  }, "noop");
28643
28643
  var ancient = /^v?\.0/.test(process.version);
@@ -28647,9 +28647,9 @@ var require_pump = _chunkHFRHAWXMjs.__commonJS.call(void 0, {
28647
28647
  var isFS = /* @__PURE__ */ _chunkHFRHAWXMjs.__name.call(void 0, function(stream4) {
28648
28648
  if (!ancient)
28649
28649
  return false;
28650
- if (!fs2)
28650
+ if (!fs3)
28651
28651
  return false;
28652
- return (stream4 instanceof (fs2.ReadStream || noop2) || stream4 instanceof (fs2.WriteStream || noop2)) && isFn(stream4.close);
28652
+ return (stream4 instanceof (fs3.ReadStream || noop2) || stream4 instanceof (fs3.WriteStream || noop2)) && isFn(stream4.close);
28653
28653
  }, "isFS");
28654
28654
  var isRequest2 = /* @__PURE__ */ _chunkHFRHAWXMjs.__name.call(void 0, function(stream4) {
28655
28655
  return stream4.setHeader && isFn(stream4.abort);
@@ -45572,8 +45572,8 @@ var init_fileSystem = _chunkHFRHAWXMjs.__esm.call(void 0, {
45572
45572
  "use strict";
45573
45573
  defaultFileSystem = void 0;
45574
45574
  ErrorNoFileSystem = new Error("please set the default FileSystem by call the setDefaultFileSystem");
45575
- setDefaultFileSystem = /* @__PURE__ */ _chunkHFRHAWXMjs.__name.call(void 0, (fs2) => {
45576
- defaultFileSystem = fs2;
45575
+ setDefaultFileSystem = /* @__PURE__ */ _chunkHFRHAWXMjs.__name.call(void 0, (fs3) => {
45576
+ defaultFileSystem = fs3;
45577
45577
  }, "setDefaultFileSystem");
45578
45578
  getDefaultFileSystem = /* @__PURE__ */ _chunkHFRHAWXMjs.__name.call(void 0, () => defaultFileSystem, "getDefaultFileSystem");
45579
45579
  mustGetDefaultFileSystem = /* @__PURE__ */ _chunkHFRHAWXMjs.__name.call(void 0, () => {
@@ -45603,9 +45603,9 @@ var init_fileAdapter = _chunkHFRHAWXMjs.__esm.call(void 0, {
45603
45603
  * @param filePath filePath the path of the policy file.
45604
45604
  * @param fs {@link FileSystem}
45605
45605
  */
45606
- constructor(filePath, fs2) {
45606
+ constructor(filePath, fs3) {
45607
45607
  this.filePath = filePath;
45608
- this.fs = fs2;
45608
+ this.fs = fs3;
45609
45609
  }
45610
45610
  async loadPolicy(model) {
45611
45611
  if (!this.filePath) {
@@ -45978,10 +45978,10 @@ var init_config = _chunkHFRHAWXMjs.__esm.call(void 0, {
45978
45978
  static {
45979
45979
  _chunkHFRHAWXMjs.__name.call(void 0, this, "Config");
45980
45980
  }
45981
- constructor(fs2) {
45981
+ constructor(fs3) {
45982
45982
  this.data = /* @__PURE__ */ new Map();
45983
- if (fs2) {
45984
- this.fs = fs2;
45983
+ if (fs3) {
45984
+ this.fs = fs3;
45985
45985
  }
45986
45986
  }
45987
45987
  /**
@@ -45999,8 +45999,8 @@ var init_config = _chunkHFRHAWXMjs.__esm.call(void 0, {
45999
45999
  * @param path the path of the model file.
46000
46000
  * @param fs {@link FileSystem}
46001
46001
  */
46002
- static newConfigFromFile(path7, fs2) {
46003
- const config = new _Config(fs2);
46002
+ static newConfigFromFile(path7, fs3) {
46003
+ const config = new _Config(fs3);
46004
46004
  config.parse(path7);
46005
46005
  return config;
46006
46006
  }
@@ -47320,10 +47320,10 @@ var init_rbac = _chunkHFRHAWXMjs.__esm.call(void 0, {
47320
47320
  });
47321
47321
 
47322
47322
  // node_modules/casbin/lib/esm/model/model.js
47323
- function newModelFromFile(path7, fs2) {
47323
+ function newModelFromFile(path7, fs3) {
47324
47324
  const m2 = new Model();
47325
47325
  if (path7) {
47326
- m2.loadModelFromFile(path7, fs2);
47326
+ m2.loadModelFromFile(path7, fs3);
47327
47327
  }
47328
47328
  return m2;
47329
47329
  }
@@ -47425,16 +47425,16 @@ var init_model = _chunkHFRHAWXMjs.__esm.call(void 0, {
47425
47425
  * @param fs {@link FileSystem}
47426
47426
  * @deprecated {@link loadModelFromFile}
47427
47427
  */
47428
- loadModel(path7, fs2) {
47429
- this.loadModelFromFile(path7, fs2);
47428
+ loadModel(path7, fs3) {
47429
+ this.loadModelFromFile(path7, fs3);
47430
47430
  }
47431
47431
  /**
47432
47432
  * loadModelFromFile loads the model from model CONF file.
47433
47433
  * @param path the model file path
47434
47434
  * @param fs {@link FileSystem}
47435
47435
  */
47436
- loadModelFromFile(path7, fs2) {
47437
- const cfg = Config.newConfigFromFile(path7, fs2);
47436
+ loadModelFromFile(path7, fs3) {
47437
+ const cfg = Config.newConfigFromFile(path7, fs3);
47438
47438
  this.loadModelFromConfig(cfg);
47439
47439
  }
47440
47440
  // loadModelFromText loads the model from the text.
@@ -48017,8 +48017,8 @@ var init_coreEnforcer = _chunkHFRHAWXMjs.__esm.call(void 0, {
48017
48017
  * setFileSystem sets a file system to read the model file or the policy file.
48018
48018
  * @param fs {@link FileSystem}
48019
48019
  */
48020
- setFileSystem(fs2) {
48021
- this.fs = fs2;
48020
+ setFileSystem(fs3) {
48021
+ this.fs = fs3;
48022
48022
  }
48023
48023
  /**
48024
48024
  * getFileSystem gets the file system,
@@ -49321,13 +49321,13 @@ async function newEnforcerWithClass(enforcer, ...params) {
49321
49321
  if (!getDefaultFileSystem()) {
49322
49322
  try {
49323
49323
  if (typeof process !== "undefined" && ((_a = process === null || process === void 0 ? void 0 : process.versions) === null || _a === void 0 ? void 0 : _a.node)) {
49324
- const fs2 = await Promise.resolve().then(() => _interopRequireWildcard(require("fs")));
49324
+ const fs3 = await Promise.resolve().then(() => _interopRequireWildcard(require("fs")));
49325
49325
  const defaultFileSystem2 = {
49326
49326
  readFileSync(path7, encoding) {
49327
- return fs2.readFileSync(path7, { encoding });
49327
+ return fs3.readFileSync(path7, { encoding });
49328
49328
  },
49329
49329
  writeFileSync(path7, text, encoding) {
49330
- return fs2.writeFileSync(path7, text, encoding);
49330
+ return fs3.writeFileSync(path7, text, encoding);
49331
49331
  }
49332
49332
  };
49333
49333
  setDefaultFileSystem(defaultFileSystem2);
@@ -53109,8 +53109,8 @@ var require_fileSystem = _chunkHFRHAWXMjs.__commonJS.call(void 0, {
53109
53109
  exports2.mustGetDefaultFileSystem = exports2.getDefaultFileSystem = exports2.setDefaultFileSystem = void 0;
53110
53110
  var defaultFileSystem2 = void 0;
53111
53111
  var ErrorNoFileSystem2 = new Error("please set the default FileSystem by call the setDefaultFileSystem");
53112
- exports2.setDefaultFileSystem = (fs2) => {
53113
- defaultFileSystem2 = fs2;
53112
+ exports2.setDefaultFileSystem = (fs3) => {
53113
+ defaultFileSystem2 = fs3;
53114
53114
  };
53115
53115
  exports2.getDefaultFileSystem = () => defaultFileSystem2;
53116
53116
  exports2.mustGetDefaultFileSystem = () => {
@@ -53141,9 +53141,9 @@ var require_fileAdapter = _chunkHFRHAWXMjs.__commonJS.call(void 0, {
53141
53141
  * @param filePath filePath the path of the policy file.
53142
53142
  * @param fs {@link FileSystem}
53143
53143
  */
53144
- constructor(filePath, fs2) {
53144
+ constructor(filePath, fs3) {
53145
53145
  this.filePath = filePath;
53146
- this.fs = fs2;
53146
+ this.fs = fs3;
53147
53147
  }
53148
53148
  async loadPolicy(model) {
53149
53149
  if (!this.filePath) {
@@ -53582,10 +53582,10 @@ var require_util3 = _chunkHFRHAWXMjs.__commonJS.call(void 0, {
53582
53582
  _chunkHFRHAWXMjs.__name.call(void 0, setEquals, "setEquals");
53583
53583
  exports2.setEquals = setEquals;
53584
53584
  function readFile4(path7, encoding) {
53585
- const fs2 = persist_1.mustGetDefaultFileSystem();
53585
+ const fs3 = persist_1.mustGetDefaultFileSystem();
53586
53586
  return new Promise((resolve2, reject) => {
53587
53587
  try {
53588
- fs2.readFileSync(path7, encoding || "utf8");
53588
+ fs3.readFileSync(path7, encoding || "utf8");
53589
53589
  resolve2();
53590
53590
  } catch (e2) {
53591
53591
  reject(e2);
@@ -53595,10 +53595,10 @@ var require_util3 = _chunkHFRHAWXMjs.__commonJS.call(void 0, {
53595
53595
  _chunkHFRHAWXMjs.__name.call(void 0, readFile4, "readFile");
53596
53596
  exports2.readFile = readFile4;
53597
53597
  function writeFile4(path7, file, encoding) {
53598
- const fs2 = persist_1.mustGetDefaultFileSystem();
53598
+ const fs3 = persist_1.mustGetDefaultFileSystem();
53599
53599
  return new Promise((resolve2, reject) => {
53600
53600
  try {
53601
- fs2.writeFileSync(path7, file, encoding || "utf-8");
53601
+ fs3.writeFileSync(path7, file, encoding || "utf-8");
53602
53602
  resolve2();
53603
53603
  } catch (e2) {
53604
53604
  reject(e2);
@@ -53742,10 +53742,10 @@ var require_config = _chunkHFRHAWXMjs.__commonJS.call(void 0, {
53742
53742
  static {
53743
53743
  _chunkHFRHAWXMjs.__name.call(void 0, this, "Config");
53744
53744
  }
53745
- constructor(fs2) {
53745
+ constructor(fs3) {
53746
53746
  this.data = /* @__PURE__ */ new Map();
53747
- if (fs2) {
53748
- this.fs = fs2;
53747
+ if (fs3) {
53748
+ this.fs = fs3;
53749
53749
  }
53750
53750
  }
53751
53751
  /**
@@ -53763,8 +53763,8 @@ var require_config = _chunkHFRHAWXMjs.__commonJS.call(void 0, {
53763
53763
  * @param path the path of the model file.
53764
53764
  * @param fs {@link FileSystem}
53765
53765
  */
53766
- static newConfigFromFile(path7, fs2) {
53767
- const config = new _Config(fs2);
53766
+ static newConfigFromFile(path7, fs3) {
53767
+ const config = new _Config(fs3);
53768
53768
  config.parse(path7);
53769
53769
  return config;
53770
53770
  }
@@ -54551,16 +54551,16 @@ var require_model = _chunkHFRHAWXMjs.__commonJS.call(void 0, {
54551
54551
  * @param fs {@link FileSystem}
54552
54552
  * @deprecated {@link loadModelFromFile}
54553
54553
  */
54554
- loadModel(path7, fs2) {
54555
- this.loadModelFromFile(path7, fs2);
54554
+ loadModel(path7, fs3) {
54555
+ this.loadModelFromFile(path7, fs3);
54556
54556
  }
54557
54557
  /**
54558
54558
  * loadModelFromFile loads the model from model CONF file.
54559
54559
  * @param path the model file path
54560
54560
  * @param fs {@link FileSystem}
54561
54561
  */
54562
- loadModelFromFile(path7, fs2) {
54563
- const cfg = config_1.Config.newConfigFromFile(path7, fs2);
54562
+ loadModelFromFile(path7, fs3) {
54563
+ const cfg = config_1.Config.newConfigFromFile(path7, fs3);
54564
54564
  this.loadModelFromConfig(cfg);
54565
54565
  }
54566
54566
  // loadModelFromText loads the model from the text.
@@ -54982,10 +54982,10 @@ var require_model = _chunkHFRHAWXMjs.__commonJS.call(void 0, {
54982
54982
  }
54983
54983
  _chunkHFRHAWXMjs.__name.call(void 0, newModel, "newModel");
54984
54984
  exports2.newModel = newModel;
54985
- function newModelFromFile2(path7, fs2) {
54985
+ function newModelFromFile2(path7, fs3) {
54986
54986
  const m2 = new Model4();
54987
54987
  if (path7) {
54988
- m2.loadModelFromFile(path7, fs2);
54988
+ m2.loadModelFromFile(path7, fs3);
54989
54989
  }
54990
54990
  return m2;
54991
54991
  }
@@ -92989,7 +92989,7 @@ var require_form_data = _chunkHFRHAWXMjs.__commonJS.call(void 0, {
92989
92989
  var http3 = _chunkHFRHAWXMjs.__require.call(void 0, "http");
92990
92990
  var https3 = _chunkHFRHAWXMjs.__require.call(void 0, "https");
92991
92991
  var parseUrl = _chunkHFRHAWXMjs.__require.call(void 0, "url").parse;
92992
- var fs2 = _chunkHFRHAWXMjs.__require.call(void 0, "fs");
92992
+ var fs3 = _chunkHFRHAWXMjs.__require.call(void 0, "fs");
92993
92993
  var Stream2 = _chunkHFRHAWXMjs.__require.call(void 0, "stream").Stream;
92994
92994
  var mime = require_mime_types();
92995
92995
  var asynckit = require_asynckit();
@@ -93055,7 +93055,7 @@ var require_form_data = _chunkHFRHAWXMjs.__commonJS.call(void 0, {
93055
93055
  if (value.end != void 0 && value.end != Infinity && value.start != void 0) {
93056
93056
  callback(null, value.end + 1 - (value.start ? value.start : 0));
93057
93057
  } else {
93058
- fs2.stat(value.path, function(err, stat2) {
93058
+ fs3.stat(value.path, function(err, stat2) {
93059
93059
  var fileSize;
93060
93060
  if (err) {
93061
93061
  callback(err);
@@ -97082,6 +97082,7 @@ _chunkHFRHAWXMjs.__export.call(void 0, Lakutata_exports, {
97082
97082
  Validator: () => Validator
97083
97083
  });
97084
97084
 
97085
+
97085
97086
  var init_Lakutata = _chunkHFRHAWXMjs.__esm.call(void 0, {
97086
97087
  "src/Lakutata.ts"() {
97087
97088
  _chunk6UN5H6WWjs.init_ReflectMetadata.call(void 0, );
@@ -97107,6 +97108,18 @@ var init_Lakutata = _chunkHFRHAWXMjs.__esm.call(void 0, {
97107
97108
  });
97108
97109
  if (!appRootDir)
97109
97110
  appRootDir = argv[0] ? path2.default.dirname(argv[0]) : "";
97111
+ if (!appRootDir) {
97112
+ const pkgJsonFilename = path2.default.resolve(__dirname, "./package.json");
97113
+ if (fs.default.existsSync(pkgJsonFilename)) {
97114
+ try {
97115
+ if (JSON.parse(fs.default.readFileSync(pkgJsonFilename, { encoding: "utf-8" })).name === "lakutata") {
97116
+ appRootDir = __dirname;
97117
+ }
97118
+ } catch (e2) {
97119
+ appRootDir = "";
97120
+ }
97121
+ }
97122
+ }
97110
97123
  return appRootDir;
97111
97124
  })();
97112
97125
  if (!process.env.ENTRYPOINT_DIR)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lakutata",
3
- "version": "0.1.37",
3
+ "version": "0.1.39",
4
4
  "description": "An IoC-based universal application framework.",
5
5
  "main": "./Lakutata.js",
6
6
  "types": "./Lakutata.d.ts",