wstp-node 0.7.1 → 0.7.2
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/binding.gyp +2 -2
- package/build/Release/wstp.node +0 -0
- package/package.json +1 -1
- package/src/addon.cc +2 -2
package/binding.gyp
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# Cross-platform WSTP DeveloperKit path.
|
|
4
4
|
# Override by setting WSTP_DIR in the environment.
|
|
5
5
|
# See scripts/wstp_dir.js for auto-detection logic.
|
|
6
|
-
"wstp_dir%": "
|
|
6
|
+
"wstp_dir%": "<!(node scripts/wstp_dir.js)"
|
|
7
7
|
},
|
|
8
8
|
"targets": [
|
|
9
9
|
{
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
],
|
|
20
20
|
|
|
21
21
|
"include_dirs": [
|
|
22
|
-
"
|
|
22
|
+
"<!(node -p \"require('node-addon-api').include.replace(/\\\"/g,'')\")",
|
|
23
23
|
"<(wstp_dir)"
|
|
24
24
|
],
|
|
25
25
|
|
package/build/Release/wstp.node
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wstp-node",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "Native Node.js addon for Wolfram/Mathematica WSTP — kernel sessions with evaluation queue, streaming Print/messages, Dialog subsessions, and side-channel WstpReader",
|
|
5
5
|
"main": "build/Release/wstp.node",
|
|
6
6
|
"types": "index.d.ts",
|
package/src/addon.cc
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// =============================================================================
|
|
2
|
-
// wstp-backend/src/addon.cc (v0.7.
|
|
2
|
+
// wstp-backend/src/addon.cc (v0.7.2 — thin entry point after refactor)
|
|
3
3
|
//
|
|
4
4
|
// This file is intentionally minimal. All implementation lives in the
|
|
5
5
|
// other source files listed in binding.gyp:
|
|
@@ -47,7 +47,7 @@ Napi::Object InitModule(Napi::Env env, Napi::Object exports) {
|
|
|
47
47
|
WstpReader::Init(env, exports);
|
|
48
48
|
exports.Set("setDiagHandler",
|
|
49
49
|
Napi::Function::New(env, SetDiagHandler, "setDiagHandler"));
|
|
50
|
-
exports.Set("version", Napi::String::New(env, "0.7.
|
|
50
|
+
exports.Set("version", Napi::String::New(env, "0.7.2"));
|
|
51
51
|
return exports;
|
|
52
52
|
}
|
|
53
53
|
|