@butr/vortexextensionnative 1.0.141 → 2.0.159

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.
Files changed (59) hide show
  1. package/dist/Bannerlord.LauncherManager.Native.dll +0 -0
  2. package/dist/launchermanager.node +0 -0
  3. package/dist/main/lib/BannerlordModuleManager.d.ts +25 -25
  4. package/dist/main/lib/BannerlordModuleManager.js +99 -99
  5. package/dist/main/lib/BannerlordModuleManager.js.map +1 -1
  6. package/dist/main/lib/Common.d.ts +3 -1
  7. package/dist/main/lib/Common.js +28 -18
  8. package/dist/main/lib/Common.js.map +1 -1
  9. package/dist/main/lib/FetchBannerlordVersion.d.ts +8 -8
  10. package/dist/main/lib/FetchBannerlordVersion.js +35 -35
  11. package/dist/main/lib/FetchBannerlordVersion.js.map +1 -1
  12. package/dist/main/lib/LauncherManager.d.ts +38 -37
  13. package/dist/main/lib/LauncherManager.js +110 -107
  14. package/dist/main/lib/LauncherManager.js.map +1 -1
  15. package/dist/main/lib/Utils.d.ts +14 -14
  16. package/dist/main/lib/Utils.js +47 -47
  17. package/dist/main/lib/Utils.js.map +1 -1
  18. package/dist/main/lib/index.d.ts +7 -7
  19. package/dist/main/lib/index.js +56 -46
  20. package/dist/main/lib/index.js.map +1 -1
  21. package/dist/main/lib/types/BannerlordModuleManager.d.ts +118 -118
  22. package/dist/main/lib/types/BannerlordModuleManager.js +42 -42
  23. package/dist/main/lib/types/BannerlordModuleManager.js.map +1 -1
  24. package/dist/main/lib/types/FetchBannerlordVersion.d.ts +5 -5
  25. package/dist/main/lib/types/FetchBannerlordVersion.js +12 -12
  26. package/dist/main/lib/types/LauncherManager.d.ts +92 -91
  27. package/dist/main/lib/types/LauncherManager.js +12 -12
  28. package/dist/main/lib/types/Utils.d.ts +11 -11
  29. package/dist/main/lib/types/Utils.js +12 -12
  30. package/dist/main/lib/types/index.d.ts +13 -11
  31. package/dist/main/lib/types/index.js +30 -30
  32. package/dist/module/lib/BannerlordModuleManager.d.ts +25 -25
  33. package/dist/module/lib/BannerlordModuleManager.js +85 -85
  34. package/dist/module/lib/BannerlordModuleManager.js.map +1 -1
  35. package/dist/module/lib/Common.d.ts +3 -1
  36. package/dist/module/lib/Common.js +12 -4
  37. package/dist/module/lib/Common.js.map +1 -1
  38. package/dist/module/lib/FetchBannerlordVersion.d.ts +8 -8
  39. package/dist/module/lib/FetchBannerlordVersion.js +21 -21
  40. package/dist/module/lib/FetchBannerlordVersion.js.map +1 -1
  41. package/dist/module/lib/LauncherManager.d.ts +38 -37
  42. package/dist/module/lib/LauncherManager.js +96 -93
  43. package/dist/module/lib/LauncherManager.js.map +1 -1
  44. package/dist/module/lib/Utils.d.ts +14 -14
  45. package/dist/module/lib/Utils.js +33 -33
  46. package/dist/module/lib/Utils.js.map +1 -1
  47. package/dist/module/lib/index.d.ts +7 -7
  48. package/dist/module/lib/index.js +7 -7
  49. package/dist/module/lib/types/BannerlordModuleManager.d.ts +118 -118
  50. package/dist/module/lib/types/BannerlordModuleManager.js +29 -29
  51. package/dist/module/lib/types/FetchBannerlordVersion.d.ts +5 -5
  52. package/dist/module/lib/types/FetchBannerlordVersion.js +1 -1
  53. package/dist/module/lib/types/LauncherManager.d.ts +92 -91
  54. package/dist/module/lib/types/LauncherManager.js +1 -1
  55. package/dist/module/lib/types/Utils.d.ts +11 -11
  56. package/dist/module/lib/types/Utils.js +1 -1
  57. package/dist/module/lib/types/index.d.ts +13 -11
  58. package/dist/module/lib/types/index.js +4 -4
  59. package/package.json +5 -11
@@ -1,108 +1,111 @@
1
- (function (factory) {
2
- if (typeof module === "object" && typeof module.exports === "object") {
3
- var v = factory(require, exports);
4
- if (v !== undefined) module.exports = v;
5
- }
6
- else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports"], factory);
8
- }
9
- })(function (require, exports) {
10
- "use strict";
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.NativeLauncherManager = void 0;
13
- class NativeLauncherManager {
14
- constructor(setGameParameters, sendNotification, sendDialog, getInstallPath, readFileContent, writeFileContent, readDirectoryFileList, readDirectoryList, getAllModuleViewModels, getModuleViewModels, setModuleViewModels, getOptions, getState) {
15
- this.checkForRootHarmony = () => {
16
- return this.manager.checkForRootHarmony();
17
- };
18
- this.getGamePlatform = () => {
19
- return this.manager.getGamePlatform();
20
- };
21
- this.getGameVersion = () => {
22
- return this.manager.getGameVersion();
23
- };
24
- this.getModules = () => {
25
- return this.manager.getModules();
26
- };
27
- this.getAllModules = () => {
28
- return this.manager.getAllModules();
29
- };
30
- this.getSaveFilePath = (saveFile) => {
31
- return this.manager.getSaveFilePath(saveFile);
32
- };
33
- this.getSaveFiles = () => {
34
- return this.manager.getSaveFiles();
35
- };
36
- this.getSaveMetadata = (saveFile, data) => {
37
- return this.manager.getSaveMetadata(saveFile, data);
38
- };
39
- this.installModule = (files, moduleInfos) => {
40
- return this.manager.installModule(files, moduleInfos);
41
- };
42
- this.isSorting = () => {
43
- return this.manager.isSorting();
44
- };
45
- this.moduleListHandlerExport = () => {
46
- return this.manager.moduleListHandlerExport();
47
- };
48
- this.moduleListHandlerExportSaveFile = (saveFile) => {
49
- return this.manager.moduleListHandlerExportSaveFile(saveFile);
50
- };
51
- this.moduleListHandlerImport = () => {
52
- return this.manager.moduleListHandlerImport();
53
- };
54
- this.moduleListHandlerImportSaveFile = (saveFile) => {
55
- return this.manager.moduleListHandlerImportSaveFile(saveFile);
56
- };
57
- this.orderByLoadOrder = (loadOrder) => {
58
- return this.manager.orderByLoadOrder(loadOrder);
59
- };
60
- this.refreshModules = () => {
61
- return this.manager.refreshModules();
62
- };
63
- this.refreshGameParameters = () => {
64
- return this.manager.refreshGameParameters();
65
- };
66
- this.sort = () => {
67
- return this.manager.sort();
68
- };
69
- this.sortHelperChangeModulePosition = (moduleViewModel, insertIndex) => {
70
- return this.manager.sortHelperChangeModulePosition(moduleViewModel, insertIndex);
71
- };
72
- this.sortHelperToggleModuleSelection = (moduleViewModel) => {
73
- return this.manager.sortHelperToggleModuleSelection(moduleViewModel);
74
- };
75
- this.sortHelperValidateModule = (moduleViewModel) => {
76
- return this.manager.sortHelperValidateModule(moduleViewModel);
77
- };
78
- this.testModule = (files) => {
79
- return this.manager.testModule(files);
80
- };
81
- this.dialogTestWarning = () => {
82
- return this.manager.dialogTestWarning();
83
- };
84
- this.dialogTestFileOpen = () => {
85
- return this.manager.dialogTestFileOpen();
86
- };
87
- this.setGameParameterLoadOrder = (loadOrder) => {
88
- return this.manager.setGameParameterLoadOrder(loadOrder);
89
- };
90
- const addon = require('./../../launchermanager.node');
91
- this.manager = new addon.LauncherManager(setGameParameters, sendNotification, sendDialog, getInstallPath, readFileContent, writeFileContent, readDirectoryFileList, readDirectoryList, getAllModuleViewModels, getModuleViewModels, setModuleViewModels, getOptions, getState);
92
- }
93
- setGameParameterExecutable(executable) {
94
- return this.manager.setGameParameterExecutable(executable);
95
- }
96
- setGameParameterSaveFile(saveName) {
97
- return this.manager.setGameParameterSaveFile(saveName);
98
- }
99
- setGameParameterContinueLastSaveFile(value) {
100
- return this.manager.setGameParameterContinueLastSaveFile(value);
101
- }
102
- setGameStore(gameStore) {
103
- return this.manager.setGameStore(gameStore);
104
- }
105
- }
106
- exports.NativeLauncherManager = NativeLauncherManager;
107
- });
1
+ (function (factory) {
2
+ if (typeof module === "object" && typeof module.exports === "object") {
3
+ var v = factory(require, exports);
4
+ if (v !== undefined) module.exports = v;
5
+ }
6
+ else if (typeof define === "function" && define.amd) {
7
+ define(["require", "exports"], factory);
8
+ }
9
+ })(function (require, exports) {
10
+ "use strict";
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.NativeLauncherManager = void 0;
13
+ class NativeLauncherManager {
14
+ constructor(setGameParametersAsync, sendNotificationAsync, sendDialogAsync, getInstallPathAsync, readFileContentAsync, writeFileContentAsync, readDirectoryFileListAsync, readDirectoryListAsync, getAllModuleViewModelsAsync, getModuleViewModelsAsync, setModuleViewModelsAsync, getOptionsAsync, getStateAsync) {
15
+ this.checkForRootHarmonyAsync = () => {
16
+ return this.manager.checkForRootHarmonyAsync();
17
+ };
18
+ this.getGamePlatformAsync = () => {
19
+ return this.manager.getGamePlatformAsync();
20
+ };
21
+ this.getGameVersionAsync = () => {
22
+ return this.manager.getGameVersionAsync();
23
+ };
24
+ this.getModulesAsync = () => {
25
+ return this.manager.getModulesAsync();
26
+ };
27
+ this.getAllModulesAsync = () => {
28
+ return this.manager.getAllModulesAsync();
29
+ };
30
+ this.getSaveFilePathAsync = (saveFile) => {
31
+ return this.manager.getSaveFilePathAsync(saveFile);
32
+ };
33
+ this.getSaveFilesAsync = () => {
34
+ return this.manager.getSaveFilesAsync();
35
+ };
36
+ this.getSaveMetadataAsync = (saveFile, data) => {
37
+ return this.manager.getSaveMetadataAsync(saveFile, data);
38
+ };
39
+ this.installModule = (files, moduleInfos) => {
40
+ return this.manager.installModule(files, moduleInfos);
41
+ };
42
+ this.isObfuscatedAsync = (module) => {
43
+ return this.manager.isObfuscatedAsync(module);
44
+ };
45
+ this.isSorting = () => {
46
+ return this.manager.isSorting();
47
+ };
48
+ this.moduleListHandlerExportAsync = () => {
49
+ return this.manager.moduleListHandlerExportAsync();
50
+ };
51
+ this.moduleListHandlerExportSaveFileAsync = (saveFile) => {
52
+ return this.manager.moduleListHandlerExportSaveFileAsync(saveFile);
53
+ };
54
+ this.moduleListHandlerImportAsync = () => {
55
+ return this.manager.moduleListHandlerImportAsync();
56
+ };
57
+ this.moduleListHandlerImportSaveFileAsync = (saveFile) => {
58
+ return this.manager.moduleListHandlerImportSaveFileAsync(saveFile);
59
+ };
60
+ this.orderByLoadOrderAsync = (loadOrder) => {
61
+ return this.manager.orderByLoadOrderAsync(loadOrder);
62
+ };
63
+ this.refreshModulesAsync = () => {
64
+ return this.manager.refreshModulesAsync();
65
+ };
66
+ this.refreshGameParametersAsync = () => {
67
+ return this.manager.refreshGameParametersAsync();
68
+ };
69
+ this.sortAsync = () => {
70
+ return this.manager.sortAsync();
71
+ };
72
+ this.sortHelperChangeModulePositionAsync = (moduleViewModel, insertIndex) => {
73
+ return this.manager.sortHelperChangeModulePositionAsync(moduleViewModel, insertIndex);
74
+ };
75
+ this.sortHelperToggleModuleSelectionAsync = (moduleViewModel) => {
76
+ return this.manager.sortHelperToggleModuleSelectionAsync(moduleViewModel);
77
+ };
78
+ this.sortHelperValidateModuleAsync = (moduleViewModel) => {
79
+ return this.manager.sortHelperValidateModuleAsync(moduleViewModel);
80
+ };
81
+ this.testModule = (files) => {
82
+ return this.manager.testModule(files);
83
+ };
84
+ this.dialogTestWarningAsync = () => {
85
+ return this.manager.dialogTestWarningAsync();
86
+ };
87
+ this.dialogTestFileOpenAsync = () => {
88
+ return this.manager.dialogTestFileOpenAsync();
89
+ };
90
+ this.setGameParameterLoadOrderAsync = (loadOrder) => {
91
+ return this.manager.setGameParameterLoadOrderAsync(loadOrder);
92
+ };
93
+ const addon = require('./../../launchermanager.node');
94
+ this.manager = new addon.LauncherManager(setGameParametersAsync, sendNotificationAsync, sendDialogAsync, getInstallPathAsync, readFileContentAsync, writeFileContentAsync, readDirectoryFileListAsync, readDirectoryListAsync, getAllModuleViewModelsAsync, getModuleViewModelsAsync, setModuleViewModelsAsync, getOptionsAsync, getStateAsync);
95
+ }
96
+ setGameParameterExecutableAsync(executable) {
97
+ return this.manager.setGameParameterExecutableAsync(executable);
98
+ }
99
+ setGameParameterSaveFileAsync(saveName) {
100
+ return this.manager.setGameParameterSaveFileAsync(saveName);
101
+ }
102
+ setGameParameterContinueLastSaveFileAsync(value) {
103
+ return this.manager.setGameParameterContinueLastSaveFileAsync(value);
104
+ }
105
+ setGameStore(gameStore) {
106
+ return this.manager.setGameStore(gameStore);
107
+ }
108
+ }
109
+ exports.NativeLauncherManager = NativeLauncherManager;
110
+ });
108
111
  //# sourceMappingURL=LauncherManager.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LauncherManager.js","sourceRoot":"","sources":["../../../src/lib/LauncherManager.ts"],"names":[],"mappings":";;;;;;;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A8B,GAAG,CAAC,SAA0B,EAAiB,EAAE;gBACpF,OAAO,IAAI,CAAC,OAAO,CAAC,8BAA8B,CAAC,SAAS,CAAC,CAAC;YAChE,CAAC,CAAA;YA1GC,MAAM,KAAK,GAA2B,OAAO,CAAC,8BAA8B,CAAC,CAAC;YAC9E,IAAI,CAAC,OAAO,GAAG,IAAI,KAAK,CAAC,eAAe,CACtC,sBAAsB,EACtB,qBAAqB,EACrB,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,0BAA0B,EAC1B,sBAAsB,EACtB,2BAA2B,EAC3B,wBAAwB,EACxB,wBAAwB,EACxB,eAAe,EACf,aAAa,CACd,CAAC;QACJ,CAAC;QAuDM,+BAA+B,CAAC,UAAkB;YACvD,OAAO,IAAI,CAAC,OAAO,CAAC,+BAA+B,CAAC,UAAU,CAAC,CAAC;QAClE,CAAC;QACM,6BAA6B,CAAC,QAAgB;YACnD,OAAO,IAAI,CAAC,OAAO,CAAC,6BAA6B,CAAC,QAAQ,CAAC,CAAC;QAC9D,CAAC;QACM,yCAAyC,CAAC,KAAc;YAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,yCAAyC,CAAC,KAAK,CAAC,CAAC;QACvE,CAAC;QACM,YAAY,CAAC,SAA0B;YAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;QAC9C,CAAC;KAyBF;IA7HD,sDA6HC"}
@@ -1,14 +1,14 @@
1
- import * as types from './types';
2
- export declare class Utils {
3
- private static addon;
4
- private constructor();
5
- private static initialize;
6
- static isLoadOrderCorrect(modules: Array<types.ModuleInfoExtended>): Array<string>;
7
- static getDependencyHint(module: types.ModuleInfoExtended): string;
8
- static renderModuleIssue(moduleIssue: types.ModuleIssue): string;
9
- static loadLocalization: (xml: string) => void;
10
- static setLanguage: (language: string) => void;
11
- static localizeString: (template: string, values: {
12
- [value: string]: string;
13
- }) => string;
14
- }
1
+ import * as types from './types';
2
+ export declare class Utils {
3
+ private static addon;
4
+ private constructor();
5
+ private static initialize;
6
+ static isLoadOrderCorrect(modules: Array<types.ModuleInfoExtended>): Array<string>;
7
+ static getDependencyHint(module: types.ModuleInfoExtended): string;
8
+ static renderModuleIssue(moduleIssue: types.ModuleIssue): string;
9
+ static loadLocalization: (xml: string) => void;
10
+ static setLanguage: (language: string) => void;
11
+ static localizeString: (template: string, values: {
12
+ [value: string]: string;
13
+ }) => string;
14
+ }
@@ -1,48 +1,48 @@
1
- (function (factory) {
2
- if (typeof module === "object" && typeof module.exports === "object") {
3
- var v = factory(require, exports);
4
- if (v !== undefined) module.exports = v;
5
- }
6
- else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports"], factory);
8
- }
9
- })(function (require, exports) {
10
- "use strict";
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.Utils = void 0;
13
- class Utils {
14
- /* istanbul ignore next */
15
- constructor() { }
16
- static initialize() {
17
- if (Utils.addon === undefined) {
18
- Utils.addon = require('./../../launchermanager.node');
19
- }
20
- }
21
- static isLoadOrderCorrect(modules) {
22
- Utils.initialize();
23
- return Utils.addon.isLoadOrderCorrect(modules);
24
- }
25
- static getDependencyHint(module) {
26
- Utils.initialize();
27
- return Utils.addon.getDependencyHint(module);
28
- }
29
- static renderModuleIssue(moduleIssue) {
30
- Utils.initialize();
31
- return Utils.addon.renderModuleIssue(moduleIssue);
32
- }
33
- }
34
- exports.Utils = Utils;
35
- Utils.loadLocalization = (xml) => {
36
- Utils.initialize();
37
- return Utils.addon.loadLocalization(xml);
38
- };
39
- Utils.setLanguage = (language) => {
40
- Utils.initialize();
41
- return Utils.addon.setLanguage(language);
42
- };
43
- Utils.localizeString = (template, values) => {
44
- Utils.initialize();
45
- return Utils.addon.localizeString(template, values);
46
- };
47
- });
1
+ (function (factory) {
2
+ if (typeof module === "object" && typeof module.exports === "object") {
3
+ var v = factory(require, exports);
4
+ if (v !== undefined) module.exports = v;
5
+ }
6
+ else if (typeof define === "function" && define.amd) {
7
+ define(["require", "exports"], factory);
8
+ }
9
+ })(function (require, exports) {
10
+ "use strict";
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.Utils = void 0;
13
+ class Utils {
14
+ /* istanbul ignore next */
15
+ constructor() { }
16
+ static initialize() {
17
+ if (Utils.addon === undefined) {
18
+ Utils.addon = require('./../../launchermanager.node');
19
+ }
20
+ }
21
+ static isLoadOrderCorrect(modules) {
22
+ Utils.initialize();
23
+ return Utils.addon.isLoadOrderCorrect(modules);
24
+ }
25
+ static getDependencyHint(module) {
26
+ Utils.initialize();
27
+ return Utils.addon.getDependencyHint(module);
28
+ }
29
+ static renderModuleIssue(moduleIssue) {
30
+ Utils.initialize();
31
+ return Utils.addon.renderModuleIssue(moduleIssue);
32
+ }
33
+ }
34
+ exports.Utils = Utils;
35
+ Utils.loadLocalization = (xml) => {
36
+ Utils.initialize();
37
+ return Utils.addon.loadLocalization(xml);
38
+ };
39
+ Utils.setLanguage = (language) => {
40
+ Utils.initialize();
41
+ return Utils.addon.setLanguage(language);
42
+ };
43
+ Utils.localizeString = (template, values) => {
44
+ Utils.initialize();
45
+ return Utils.addon.localizeString(template, values);
46
+ };
47
+ });
48
48
  //# sourceMappingURL=Utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Utils.js","sourceRoot":"","sources":["../../../src/lib/Utils.ts"],"names":[],"mappings":";;;;;;;;;;;;IAEA,MAAa,KAAK;QAGhB,0BAA0B;QAC1B,gBAAwB,CAAC;QAEjB,MAAM,CAAC,UAAU;YACvB,IAAI,KAAK,CAAC,KAAK,KAAK,SAAS,EAAE;gBAC7B,KAAK,CAAC,KAAK,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;aACvD;QACH,CAAC;QAEM,MAAM,CAAC,kBAAkB,CAAC,OAAwC;YACvE,KAAK,CAAC,UAAU,EAAE,CAAC;YACnB,OAAO,KAAK,CAAC,KAAK,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;QACjD,CAAC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AAU,EAAE,CAAC;YACnB,OAAO,KAAK,CAAC,KAAK,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;QACjD,CAAC;QAEM,MAAM,CAAC,iBAAiB,CAAC,MAAgC;YAC9D,KAAK,CAAC,UAAU,EAAE,CAAC;YACnB,OAAO,KAAK,CAAC,KAAK,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;QAC/C,CAAC;QAEM,MAAM,CAAC,iBAAiB,CAAC,WAA8B;YAC5D,KAAK,CAAC,UAAU,EAAE,CAAC;YACnB,OAAO,KAAK,CAAC,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC;QACpD,CAAC;;IAzBH,sBAuCC;IAZe,sBAAgB,GAAG,CAAC,GAAW,EAAQ,EAAE;QACrD,KAAK,CAAC,UAAU,EAAE,CAAC;QACnB,OAAO,KAAK,CAAC,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;IAC3C,CAAC,CAAA;IACa,iBAAW,GAAG,CAAC,QAAgB,EAAQ,EAAE;QACrD,KAAK,CAAC,UAAU,EAAE,CAAC;QACnB,OAAO,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC3C,CAAC,CAAA;IACa,oBAAc,GAAG,CAAC,QAAgB,EAAE,MAAmC,EAAU,EAAE;QAC/F,KAAK,CAAC,UAAU,EAAE,CAAC;QACnB,OAAO,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IACtD,CAAC,CAAA"}
@@ -1,7 +1,7 @@
1
- import * as types from './types';
2
- export * from './Common';
3
- export * from './BannerlordModuleManager';
4
- export * from './FetchBannerlordVersion';
5
- export * from './LauncherManager';
6
- export * from './Utils';
7
- export { types };
1
+ import * as types from './types';
2
+ export * from './Common';
3
+ export * from './BannerlordModuleManager';
4
+ export * from './FetchBannerlordVersion';
5
+ export * from './LauncherManager';
6
+ export * from './Utils';
7
+ export { types };
@@ -1,47 +1,57 @@
1
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
2
- if (k2 === undefined) k2 = k;
3
- var desc = Object.getOwnPropertyDescriptor(m, k);
4
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
5
- desc = { enumerable: true, get: function() { return m[k]; } };
6
- }
7
- Object.defineProperty(o, k2, desc);
8
- }) : (function(o, m, k, k2) {
9
- if (k2 === undefined) k2 = k;
10
- o[k2] = m[k];
11
- }));
12
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
13
- Object.defineProperty(o, "default", { enumerable: true, value: v });
14
- }) : function(o, v) {
15
- o["default"] = v;
16
- });
17
- var __importStar = (this && this.__importStar) || function (mod) {
18
- if (mod && mod.__esModule) return mod;
19
- var result = {};
20
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
21
- __setModuleDefault(result, mod);
22
- return result;
23
- };
24
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
25
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
26
- };
27
- (function (factory) {
28
- if (typeof module === "object" && typeof module.exports === "object") {
29
- var v = factory(require, exports);
30
- if (v !== undefined) module.exports = v;
31
- }
32
- else if (typeof define === "function" && define.amd) {
33
- define(["require", "exports", "./types", "./Common", "./BannerlordModuleManager", "./FetchBannerlordVersion", "./LauncherManager", "./Utils"], factory);
34
- }
35
- })(function (require, exports) {
36
- "use strict";
37
- Object.defineProperty(exports, "__esModule", { value: true });
38
- exports.types = void 0;
39
- const types = __importStar(require("./types"));
40
- exports.types = types;
41
- __exportStar(require("./Common"), exports);
42
- __exportStar(require("./BannerlordModuleManager"), exports);
43
- __exportStar(require("./FetchBannerlordVersion"), exports);
44
- __exportStar(require("./LauncherManager"), exports);
45
- __exportStar(require("./Utils"), exports);
46
- });
1
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
2
+ if (k2 === undefined) k2 = k;
3
+ var desc = Object.getOwnPropertyDescriptor(m, k);
4
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
5
+ desc = { enumerable: true, get: function() { return m[k]; } };
6
+ }
7
+ Object.defineProperty(o, k2, desc);
8
+ }) : (function(o, m, k, k2) {
9
+ if (k2 === undefined) k2 = k;
10
+ o[k2] = m[k];
11
+ }));
12
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
13
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
14
+ }) : function(o, v) {
15
+ o["default"] = v;
16
+ });
17
+ var __importStar = (this && this.__importStar) || (function () {
18
+ var ownKeys = function(o) {
19
+ ownKeys = Object.getOwnPropertyNames || function (o) {
20
+ var ar = [];
21
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
22
+ return ar;
23
+ };
24
+ return ownKeys(o);
25
+ };
26
+ return function (mod) {
27
+ if (mod && mod.__esModule) return mod;
28
+ var result = {};
29
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
30
+ __setModuleDefault(result, mod);
31
+ return result;
32
+ };
33
+ })();
34
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
35
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
36
+ };
37
+ (function (factory) {
38
+ if (typeof module === "object" && typeof module.exports === "object") {
39
+ var v = factory(require, exports);
40
+ if (v !== undefined) module.exports = v;
41
+ }
42
+ else if (typeof define === "function" && define.amd) {
43
+ define(["require", "exports", "./types", "./Common", "./BannerlordModuleManager", "./FetchBannerlordVersion", "./LauncherManager", "./Utils"], factory);
44
+ }
45
+ })(function (require, exports) {
46
+ "use strict";
47
+ Object.defineProperty(exports, "__esModule", { value: true });
48
+ exports.types = void 0;
49
+ const types = __importStar(require("./types"));
50
+ exports.types = types;
51
+ __exportStar(require("./Common"), exports);
52
+ __exportStar(require("./BannerlordModuleManager"), exports);
53
+ __exportStar(require("./FetchBannerlordVersion"), exports);
54
+ __exportStar(require("./LauncherManager"), exports);
55
+ __exportStar(require("./Utils"), exports);
56
+ });
47
57
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAA,+CAAiC;IAS7B,sBAAK;IAPT,2CAAyB;IACzB,4DAA0C;IAC1C,2DAAyC;IACzC,oDAAkC;IAClC,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAA,+CAAiC;IAS7B,sBAAK;IAPT,2CAAyB;IACzB,4DAA0C;IAC1C,2DAAyC;IACzC,oDAAkC;IAClC,0CAAwB"}