From 5b344e3c6781967dbe36e6ce866232b759751fd1 Mon Sep 17 00:00:00 2001 From: waiting <1661926154@qq.com> Date: Fri, 14 Jun 2024 12:57:13 +0800 Subject: [PATCH] chore: use alternative ffi --- package.json | 1 + packages/win32-api/package.json | 6 ++---- packages/win32-def/package.json | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 02642681..9bcd3a36 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "mocha": "10", "rollup-plugin-dts": "^5.1.1", "rxjs": "^7.8.0", + "rxrunscript": "^11.0.1", "ts-node": "^10.9.1", "tsc-alias": "^1.8.2", "tsconfig-paths": "4", diff --git a/packages/win32-api/package.json b/packages/win32-api/package.json index 6fd9d8e9..008c59e7 100644 --- a/packages/win32-api/package.json +++ b/packages/win32-api/package.json @@ -74,6 +74,8 @@ }, "license": "MIT", "dependencies": { + "@lwahonen/ffi-napi": "^4.0.12", + "@lwahonen/ref-napi": "^4.0.8", "win32-def": "^20.5.0" }, "devDependencies": { @@ -83,14 +85,10 @@ "@types/ref-union-di": "^1.0.5", "@waiting/shared-core": "^20.11.4", "cross-env": "7", - "ffi-napi": "^4.0.3", - "ref-napi": "^3.0.3", "ref-struct-di": "^1.1.1", "ref-union-di": "^1.0.1" }, "peerDependencies": { - "ffi-napi": "^4.0.3", - "ref-napi": "^3.0.3", "ref-struct-di": "^1.1.1", "ref-union-di": "^1.0.1" }, diff --git a/packages/win32-def/package.json b/packages/win32-def/package.json index 1cc8ea20..a99a2e8b 100644 --- a/packages/win32-def/package.json +++ b/packages/win32-def/package.json @@ -56,10 +56,10 @@ "@types/ref-struct-di": "^1.1.8", "@types/ref-union-di": "^1.0.5", "@waiting/shared-core": "^20.11.4", + "@lwahonen/ref-napi": "^4.0.8", "cross-env": "7" }, "peerDependencies": { - "ref-napi": "^3.0.3", "ref-struct-di": "^1.1.1", "ref-union-di": "^1.0.1" },