@irsdk-node/native 4.1.1 → 5.1.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/README.md +21 -1
- package/dist/cjs/index.cjs +9454 -0
- package/dist/esm/index.js +9441 -0
- package/dist/types/INativeSDK.d.ts +24 -0
- package/dist/types/MockSdk.d.ts +31 -0
- package/dist/types/index.d.ts +4 -0
- package/lib/irsdk_client.cpp +94 -94
- package/lib/irsdk_client.h +23 -23
- package/lib/irsdk_defines.h +136 -82
- package/lib/irsdk_diskclient.cpp +997 -0
- package/lib/irsdk_diskclient.h +205 -0
- package/lib/irsdk_node.cc +336 -283
- package/lib/irsdk_utils.cpp +71 -71
- package/lib/yaml_parser.cpp +41 -41
- package/lib/yaml_parser.h +1 -1
- package/package.json +27 -29
- package/prebuilds/darwin-arm64/@irsdk-node+native.node +0 -0
- package/prebuilds/win32-x64/@irsdk-node+native.node +0 -0
- package/dist/INativeSDK.d.ts +0 -28
- package/dist/INativeSDK.js +0 -2
- package/dist/MockSdk.d.ts +0 -43
- package/dist/MockSdk.js +0 -70
- package/dist/mock-data/loader.js +0 -41
- package/dist/mock-data/session.json +0 -4305
- package/dist/mock-data/telemetry.json +0 -4986
- package/index.d.ts +0 -87
- package/index.js +0 -36
- package/scripts/generate-var-types.js +0 -71
- /package/dist/{mock-data → types/mock-data}/loader.d.ts +0 -0
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# @irsdk-node/native
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
_Currently using **iRacing SDK v1.19**. You can see the latest version of the SDK [on the forums](https://forums.iracing.com/discussion/62/iracing-sdk/p1)._
|
|
4
|
+
|
|
5
|
+
This is the native bindings package for irsdk-node. This provides near 1:1 bindings to the C++ iRacing SDK, and is consumed as a dependency of [irsdk-node](https://github.com/bengsfort/irsdk-node/tree/main/packages/irsdk-node), which provides a handy little wrapper around the API to make it nicer to use and avoid boilerplating.
|
|
4
6
|
|
|
5
7
|
While you can use this package directly, it is highly recommended to use the [irsdk-node](https://github.com/bengsfort/irsdk-node/tree/main/packages/irsdk-node) package instead. Types for the data exposed via this package can be used independently via [@irsdk-node/types](https://github.com/bengsfort/irsdk-node/tree/main/packages/irsdk-node-native) as well.
|
|
6
8
|
|
|
@@ -111,3 +113,21 @@ $ pnpm clean
|
|
|
111
113
|
# Lint package
|
|
112
114
|
$ pnpm lint
|
|
113
115
|
```
|
|
116
|
+
|
|
117
|
+
#### ⚠️ C++ Build errors from prebuildify/node-gyp
|
|
118
|
+
|
|
119
|
+
If the C++ build fails with an error similar to:
|
|
120
|
+
|
|
121
|
+
```
|
|
122
|
+
gyp: /<path>/<to>/common.gypi not found (cwd: /<cwd>/<path>) while reading includes of binding.gyp...
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
Then try looking for your global node-gyp and prebuildify caches. On Windows, they should be somewhere around:
|
|
126
|
+
|
|
127
|
+
- Node-gyp:
|
|
128
|
+
- `C:\Users\<YourUser>\AppData\Local\node-gyp`
|
|
129
|
+
- `C:\Users\<YourUser>\AppData\Local\.node-gyp`
|
|
130
|
+
- Prebuildify:
|
|
131
|
+
- `C:\Users\<YourUser>\AppData\Local\Temp\prebuildify`
|
|
132
|
+
|
|
133
|
+
Once cleared, you can try running `pnpm clean && pnpm build` again. Prebuildify and Node-GYP should then attempt to do a fresh install before attempting to build.
|