@butr/vortexextensionnative 1.0.51 → 1.0.52

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.
Binary file
@@ -0,0 +1,8 @@
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
+ }
@@ -0,0 +1,32 @@
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
+ }
30
+ exports.Utils = Utils;
31
+ });
32
+ //# sourceMappingURL=Utils.js.map
@@ -0,0 +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;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;KACF;IArBD,sBAqBC"}
@@ -0,0 +1,5 @@
1
+ import { ModuleInfoExtended } from "./BannerlordModuleManager";
2
+ export interface IUtils {
3
+ isLoadOrderCorrect(modules: Array<ModuleInfoExtended>): Array<string>;
4
+ getDependencyHint(module: ModuleInfoExtended): string;
5
+ }
@@ -0,0 +1,13 @@
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
+ });
13
+ //# sourceMappingURL=Utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Utils.js","sourceRoot":"","sources":["../../../../src/lib/types/Utils.ts"],"names":[],"mappings":""}
@@ -1,9 +1,11 @@
1
1
  export * from './BannerlordModuleManager';
2
2
  export * from './FetchBannerlordVersion';
3
3
  export * from './LauncherManager';
4
+ export * from './Utils';
4
5
  import { IBannerlordModuleManager } from './BannerlordModuleManager';
5
6
  import { IFetchBannerlordVersion } from './FetchBannerlordVersion';
6
7
  import { INativeExtension } from './LauncherManager';
7
- export interface IExtension extends IBannerlordModuleManager, IFetchBannerlordVersion, INativeExtension {
8
+ import { IUtils } from './Utils';
9
+ export interface IExtension extends IBannerlordModuleManager, IFetchBannerlordVersion, IUtils, INativeExtension {
8
10
  allocAliveCount(): number;
9
11
  }
@@ -18,7 +18,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
18
18
  if (v !== undefined) module.exports = v;
19
19
  }
20
20
  else if (typeof define === "function" && define.amd) {
21
- define(["require", "exports", "./BannerlordModuleManager", "./FetchBannerlordVersion", "./LauncherManager"], factory);
21
+ define(["require", "exports", "./BannerlordModuleManager", "./FetchBannerlordVersion", "./LauncherManager", "./Utils"], factory);
22
22
  }
23
23
  })(function (require, exports) {
24
24
  "use strict";
@@ -26,5 +26,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  __exportStar(require("./BannerlordModuleManager"), exports);
27
27
  __exportStar(require("./FetchBannerlordVersion"), exports);
28
28
  __exportStar(require("./LauncherManager"), exports);
29
+ __exportStar(require("./Utils"), exports);
29
30
  });
30
31
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;IAAA,4DAA0C;IAC1C,2DAAyC;IACzC,oDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;IAAA,4DAA0C;IAC1C,2DAAyC;IACzC,oDAAkC;IAClC,0CAAwB"}
@@ -0,0 +1,8 @@
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
+ }
@@ -0,0 +1,18 @@
1
+ export class Utils {
2
+ /* istanbul ignore next */
3
+ constructor() { }
4
+ static initialize() {
5
+ if (Utils.addon === undefined) {
6
+ Utils.addon = require('./../../launchermanager.node');
7
+ }
8
+ }
9
+ static isLoadOrderCorrect(modules) {
10
+ Utils.initialize();
11
+ return Utils.addon.isLoadOrderCorrect(modules);
12
+ }
13
+ static getDependencyHint(module) {
14
+ Utils.initialize();
15
+ return Utils.addon.getDependencyHint(module);
16
+ }
17
+ }
18
+ //# sourceMappingURL=Utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Utils.js","sourceRoot":"","sources":["../../../src/lib/Utils.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,KAAK;IAGhB,0BAA0B;IAC1B,gBAAwB,CAAC;IAEjB,MAAM,CAAC,UAAU;QACvB,IAAI,KAAK,CAAC,KAAK,KAAK,SAAS,EAAE;YAC7B,KAAK,CAAC,KAAK,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;SACvD;IACH,CAAC;IAEM,MAAM,CAAC,kBAAkB,CAAC,OAAwC;QACvE,KAAK,CAAC,UAAU,EAAE,CAAC;QACnB,OAAO,KAAK,CAAC,KAAK,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;IACjD,CAAC;IAEM,MAAM,CAAC,iBAAiB,CAAC,MAAgC;QAC9D,KAAK,CAAC,UAAU,EAAE,CAAC;QACnB,OAAO,KAAK,CAAC,KAAK,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAC/C,CAAC;CACF"}
@@ -0,0 +1,5 @@
1
+ import { ModuleInfoExtended } from "./BannerlordModuleManager";
2
+ export interface IUtils {
3
+ isLoadOrderCorrect(modules: Array<ModuleInfoExtended>): Array<string>;
4
+ getDependencyHint(module: ModuleInfoExtended): string;
5
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Utils.js","sourceRoot":"","sources":["../../../../src/lib/types/Utils.ts"],"names":[],"mappings":""}
@@ -1,9 +1,11 @@
1
1
  export * from './BannerlordModuleManager';
2
2
  export * from './FetchBannerlordVersion';
3
3
  export * from './LauncherManager';
4
+ export * from './Utils';
4
5
  import { IBannerlordModuleManager } from './BannerlordModuleManager';
5
6
  import { IFetchBannerlordVersion } from './FetchBannerlordVersion';
6
7
  import { INativeExtension } from './LauncherManager';
7
- export interface IExtension extends IBannerlordModuleManager, IFetchBannerlordVersion, INativeExtension {
8
+ import { IUtils } from './Utils';
9
+ export interface IExtension extends IBannerlordModuleManager, IFetchBannerlordVersion, IUtils, INativeExtension {
8
10
  allocAliveCount(): number;
9
11
  }
@@ -1,4 +1,5 @@
1
1
  export * from './BannerlordModuleManager';
2
2
  export * from './FetchBannerlordVersion';
3
3
  export * from './LauncherManager';
4
+ export * from './Utils';
4
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@butr/vortexextensionnative",
3
- "version": "1.0.51",
3
+ "version": "1.0.52",
4
4
  "description": "Package of native bindings bundled with TS declarations",
5
5
  "main": "dist/main/lib/index.js",
6
6
  "typings": "dist/main/lib/index.d.ts",