@irsdk-node/native 5.2.2 → 5.4.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Matthew Bengston
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/binding.gyp CHANGED
@@ -6,8 +6,8 @@
6
6
  "lib/root.cpp",
7
7
  "lib/logger.cpp",
8
8
  "lib/irsdk_node.cpp",
9
- "lib/irsdk_utils.cpp",
10
- "lib/irsdk_defines.h"
9
+ "lib/irsdk/irsdk_utils.cpp",
10
+ "lib/irsdk/irsdk_defines.h"
11
11
  ],
12
12
  "defines": [
13
13
  "NAPI_DISABLE_CPP_EXCEPTIONS",
@@ -9437,6 +9437,9 @@ var MockSDK = class {
9437
9437
  }
9438
9438
  return mockTelemetry[name];
9439
9439
  }
9440
+ getTelemetryVariableIndex(_name) {
9441
+ return 0;
9442
+ }
9440
9443
  broadcast(message, ...args) {
9441
9444
  (0, import_node_console.log)("Mocking SDK call:", message, ...args);
9442
9445
  return true;
package/dist/esm/index.js CHANGED
@@ -9424,6 +9424,9 @@ var MockSDK = class {
9424
9424
  }
9425
9425
  return mockTelemetry[name];
9426
9426
  }
9427
+ getTelemetryVariableIndex(_name) {
9428
+ return 0;
9429
+ }
9427
9430
  broadcast(message, ...args) {
9428
9431
  log("Mocking SDK call:", message, ...args);
9429
9432
  return true;
@@ -27,8 +27,9 @@ export interface INativeSDK {
27
27
  getTelemetryData(): TelemetryVarList;
28
28
  getSessionVersionNum(): number;
29
29
  getSessionConnectionID(): number;
30
- getTelemetryVariable<T>(index: number): TelemetryVariable<T>;
31
- getTelemetryVariable<T>(name: string): TelemetryVariable<T>;
30
+ getTelemetryVariable<T>(index: number): TelemetryVariable<T> | null;
31
+ getTelemetryVariable<T>(name: string): TelemetryVariable<T> | null;
32
+ getTelemetryVariableIndex(name: string): number | null;
32
33
  __getTelemetryTypes(): TelemetryTypesDict;
33
34
  broadcast<Command extends BroadcastCommand = BroadcastCommand>(message: Command, ...args: BroadcastCommandArgs<Command>): boolean;
34
35
  }
@@ -28,6 +28,7 @@ export declare class MockSDK implements INativeSDK {
28
28
  getTelemetryData(): TelemetryVarList;
29
29
  getTelemetryVariable<T extends TelemetryResultTypes>(index: number): TelemetryVariable<T[]>;
30
30
  getTelemetryVariable<T extends TelemetryResultTypes>(name: TelemetryVarKey): TelemetryVariable<T[]>;
31
+ getTelemetryVariableIndex(_name: TelemetryVarKey): number | null;
31
32
  broadcast<Command extends BroadcastCommand = BroadcastCommand>(message: Command, ...args: BroadcastCommandArgs<Command>): boolean;
32
33
  __getTelemetryTypes(): TelemetryTypesDict;
33
34
  }
@@ -29,9 +29,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
29
  #include <string.h>
30
30
 
31
31
  #include <assert.h>
32
- #include "irsdk_defines.h"
33
- #include "yaml_parser.h"
34
- #include "irsdk_client.h"
32
+ #include "./irsdk_defines.h"
33
+ #include "./yaml_parser.h"
34
+ #include "./irsdk_client.h"
35
35
 
36
36
  #pragma warning(disable:4996)
37
37
 
@@ -30,9 +30,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
30
  #include <time.h>
31
31
 
32
32
  #include <assert.h>
33
- #include "irsdk_defines.h"
34
- #include "yaml_parser.h"
35
- #include "irsdk_diskclient.h"
33
+ #include "./irsdk_defines.h"
34
+ #include "./yaml_parser.h"
35
+ #include "./irsdk_diskclient.h"
36
36
 
37
37
  #pragma warning(disable:4996)
38
38
 
@@ -44,7 +44,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
44
44
  #include <crtdbg.h>
45
45
  #endif
46
46
 
47
- #include "irsdk_defines.h"
47
+ #include "./irsdk_defines.h"
48
48
 
49
49
  // for timeBeginPeriod()
50
50
  #pragma comment(lib, "Winmm")