@butr/vortexextensionnative 2.0.199 → 2.0.202

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 NativeLogger implements types.Logger {
3
+ private manager;
4
+ constructor(log: (level: number, message: string) => void);
5
+ setCallbacks(): void;
6
+ disposeDefaultLogger(): void;
7
+ static setDefaultCallbacks: () => void;
8
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NativeLogger = void 0;
4
+ class NativeLogger {
5
+ constructor(log) {
6
+ const addon = require("./../build/launchermanager.node");
7
+ this.manager = new addon.Logger(log);
8
+ }
9
+ setCallbacks() {
10
+ return this.manager.setCallbacks();
11
+ }
12
+ disposeDefaultLogger() {
13
+ return this.manager.disposeDefaultLogger();
14
+ }
15
+ }
16
+ exports.NativeLogger = NativeLogger;
17
+ NativeLogger.setDefaultCallbacks = () => {
18
+ const addon = require("./../build/launchermanager.node");
19
+ return addon.Logger.setDefaultCallbacks();
20
+ };
21
+ //# sourceMappingURL=Logger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Logger.js","sourceRoot":"","sources":["../../src/Logger.ts"],"names":[],"mappings":";;;AAEA,MAAa,YAAY;IAGvB,YAAmB,GAA6C;QAC9D,MAAM,KAAK,GAA2B,OAAO,CAAC,iCAAiC,CAAC,CAAC;QACjF,IAAI,CAAC,OAAO,GAAG,IAAI,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACvC,CAAC;IAEM,YAAY;QACjB,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC;IACrC,CAAC;IAEM,oBAAoB;QACzB,OAAO,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,CAAC;IAC7C,CAAC;;AAdH,oCAoBC;AAJe,gCAAmB,GAAG,GAAS,EAAE;IAC7C,MAAM,KAAK,GAA2B,OAAO,CAAC,iCAAiC,CAAC,CAAC;IACjF,OAAO,KAAK,CAAC,MAAM,CAAC,mBAAmB,EAAE,CAAC;AAC5C,CAAC,CAAC"}
@@ -1,7 +1,8 @@
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';
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 "./Logger";
7
+ export * from "./Utils";
7
8
  export { types };
@@ -43,5 +43,6 @@ __exportStar(require("./Common"), exports);
43
43
  __exportStar(require("./BannerlordModuleManager"), exports);
44
44
  __exportStar(require("./FetchBannerlordVersion"), exports);
45
45
  __exportStar(require("./LauncherManager"), exports);
46
+ __exportStar(require("./Logger"), exports);
46
47
  __exportStar(require("./Utils"), exports);
47
48
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AAS7B,sBAAK;AAPT,2CAAyB;AACzB,4DAA0C;AAC1C,2DAAyC;AACzC,oDAAkC;AAClC,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AASxB,sBAAK;AAPd,2CAAyB;AACzB,4DAA0C;AAC1C,2DAAyC;AACzC,oDAAkC;AAClC,2CAAyB;AACzB,0CAAwB"}
@@ -0,0 +1,11 @@
1
+ export interface LoggerConstructor {
2
+ new (log: (level: number, message: string) => void): Logger;
3
+ setDefaultCallbacks(): void;
4
+ }
5
+ export interface Logger {
6
+ setCallbacks(): void;
7
+ disposeDefaultLogger(): void;
8
+ }
9
+ export interface ILoggerExtension {
10
+ Logger: LoggerConstructor;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Logger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Logger.js","sourceRoot":"","sources":["../../../src/types/Logger.ts"],"names":[],"mappings":""}
@@ -1,11 +1,12 @@
1
- export * from './BannerlordModuleManager';
2
- export * from './FetchBannerlordVersion';
3
- export * from './LauncherManager';
4
- export * from './Utils';
5
- import { IBannerlordModuleManager } from './BannerlordModuleManager';
6
- import { IFetchBannerlordVersion } from './FetchBannerlordVersion';
7
- import { INativeExtension } from './LauncherManager';
8
- import { IUtils } from './Utils';
1
+ export * from "./BannerlordModuleManager";
2
+ export * from "./FetchBannerlordVersion";
3
+ export * from "./LauncherManager";
4
+ export * from "./Logger";
5
+ export * from "./Utils";
6
+ import { IBannerlordModuleManager } from "./BannerlordModuleManager";
7
+ import { IFetchBannerlordVersion } from "./FetchBannerlordVersion";
8
+ import { INativeExtension } from "./LauncherManager";
9
+ import { IUtils } from "./Utils";
9
10
  export interface IExtension extends IBannerlordModuleManager, IFetchBannerlordVersion, IUtils, INativeExtension {
10
11
  allocWithOwnership(length: number): Buffer | null;
11
12
  allocWithoutOwnership(length: number): Buffer | null;
@@ -17,5 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./BannerlordModuleManager"), exports);
18
18
  __exportStar(require("./FetchBannerlordVersion"), exports);
19
19
  __exportStar(require("./LauncherManager"), exports);
20
+ __exportStar(require("./Logger"), exports);
20
21
  __exportStar(require("./Utils"), exports);
21
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,2DAAyC;AACzC,oDAAkC;AAClC,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,2DAAyC;AACzC,oDAAkC;AAClC,2CAAyB;AACzB,0CAAwB"}
@@ -0,0 +1,8 @@
1
+ import * as types from "./types";
2
+ export declare class NativeLogger implements types.Logger {
3
+ private manager;
4
+ constructor(log: (level: number, message: string) => void);
5
+ setCallbacks(): void;
6
+ disposeDefaultLogger(): void;
7
+ static setDefaultCallbacks: () => void;
8
+ }
@@ -0,0 +1,17 @@
1
+ export class NativeLogger {
2
+ constructor(log) {
3
+ const addon = require("./../build/launchermanager.node");
4
+ this.manager = new addon.Logger(log);
5
+ }
6
+ setCallbacks() {
7
+ return this.manager.setCallbacks();
8
+ }
9
+ disposeDefaultLogger() {
10
+ return this.manager.disposeDefaultLogger();
11
+ }
12
+ }
13
+ NativeLogger.setDefaultCallbacks = () => {
14
+ const addon = require("./../build/launchermanager.node");
15
+ return addon.Logger.setDefaultCallbacks();
16
+ };
17
+ //# sourceMappingURL=Logger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Logger.js","sourceRoot":"","sources":["../../src/Logger.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,YAAY;IAGvB,YAAmB,GAA6C;QAC9D,MAAM,KAAK,GAA2B,OAAO,CAAC,iCAAiC,CAAC,CAAC;QACjF,IAAI,CAAC,OAAO,GAAG,IAAI,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACvC,CAAC;IAEM,YAAY;QACjB,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC;IACrC,CAAC;IAEM,oBAAoB;QACzB,OAAO,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,CAAC;IAC7C,CAAC;;AAEa,gCAAmB,GAAG,GAAS,EAAE;IAC7C,MAAM,KAAK,GAA2B,OAAO,CAAC,iCAAiC,CAAC,CAAC;IACjF,OAAO,KAAK,CAAC,MAAM,CAAC,mBAAmB,EAAE,CAAC;AAC5C,CAAC,CAAC"}
@@ -1,7 +1,8 @@
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';
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 "./Logger";
7
+ export * from "./Utils";
7
8
  export { types };
@@ -1,8 +1,9 @@
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';
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 "./Logger";
7
+ export * from "./Utils";
7
8
  export { types };
8
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AAEjC,cAAc,UAAU,CAAC;AACzB,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AAExB,OAAO,EACH,KAAK,EACR,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AAEjC,cAAc,UAAU,CAAC;AACzB,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,KAAK,EAAE,CAAC"}
@@ -0,0 +1,11 @@
1
+ export interface LoggerConstructor {
2
+ new (log: (level: number, message: string) => void): Logger;
3
+ setDefaultCallbacks(): void;
4
+ }
5
+ export interface Logger {
6
+ setCallbacks(): void;
7
+ disposeDefaultLogger(): void;
8
+ }
9
+ export interface ILoggerExtension {
10
+ Logger: LoggerConstructor;
11
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Logger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Logger.js","sourceRoot":"","sources":["../../../src/types/Logger.ts"],"names":[],"mappings":""}
@@ -1,11 +1,12 @@
1
- export * from './BannerlordModuleManager';
2
- export * from './FetchBannerlordVersion';
3
- export * from './LauncherManager';
4
- export * from './Utils';
5
- import { IBannerlordModuleManager } from './BannerlordModuleManager';
6
- import { IFetchBannerlordVersion } from './FetchBannerlordVersion';
7
- import { INativeExtension } from './LauncherManager';
8
- import { IUtils } from './Utils';
1
+ export * from "./BannerlordModuleManager";
2
+ export * from "./FetchBannerlordVersion";
3
+ export * from "./LauncherManager";
4
+ export * from "./Logger";
5
+ export * from "./Utils";
6
+ import { IBannerlordModuleManager } from "./BannerlordModuleManager";
7
+ import { IFetchBannerlordVersion } from "./FetchBannerlordVersion";
8
+ import { INativeExtension } from "./LauncherManager";
9
+ import { IUtils } from "./Utils";
9
10
  export interface IExtension extends IBannerlordModuleManager, IFetchBannerlordVersion, IUtils, INativeExtension {
10
11
  allocWithOwnership(length: number): Buffer | null;
11
12
  allocWithoutOwnership(length: number): Buffer | null;
@@ -1,5 +1,6 @@
1
- export * from './BannerlordModuleManager';
2
- export * from './FetchBannerlordVersion';
3
- export * from './LauncherManager';
4
- export * from './Utils';
1
+ export * from "./BannerlordModuleManager";
2
+ export * from "./FetchBannerlordVersion";
3
+ export * from "./LauncherManager";
4
+ export * from "./Logger";
5
+ export * from "./Utils";
5
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@butr/vortexextensionnative",
3
- "version": "2.0.199",
3
+ "version": "2.0.202",
4
4
  "description": "Package of native bindings bundled with TS declarations",
5
5
  "main": "dist/main/index.js",
6
6
  "typings": "dist/main/index.d.ts",