diff --git a/packages/win32-api/demo/create_window.ts b/packages/win32-api/demo/create_window.ts index 74ca7e6c..1e918ca1 100644 --- a/packages/win32-api/demo/create_window.ts +++ b/packages/win32-api/demo/create_window.ts @@ -9,8 +9,8 @@ * @link https://github.com/waitingsong/node-win32-api */ -import * as ffi from 'ffi-napi' -import * as ref from 'ref-napi' +import * as ffi from '@lwahonen/ffi-napi' +import * as ref from '@lwahonen/ref-napi' import * as StructDi from 'ref-struct-di' // import { diff --git a/packages/win32-api/demo/find_window.ts b/packages/win32-api/demo/find_window.ts index 6dabc849..1059e101 100644 --- a/packages/win32-api/demo/find_window.ts +++ b/packages/win32-api/demo/find_window.ts @@ -8,7 +8,7 @@ * @link https://github.com/waitingsong/node-win32-api */ -import * as ref from 'ref-napi' +import * as ref from '@lwahonen/ref-napi' import { U, diff --git a/packages/win32-api/demo/knl_GetMOduleHandleExW.ts b/packages/win32-api/demo/knl_GetMOduleHandleExW.ts index a7b899b2..b6ea88e2 100644 --- a/packages/win32-api/demo/knl_GetMOduleHandleExW.ts +++ b/packages/win32-api/demo/knl_GetMOduleHandleExW.ts @@ -8,7 +8,7 @@ * @link https://github.com/waitingsong/node-win32-api */ -import * as ref from 'ref-napi' +import * as ref from '@lwahonen/ref-napi' import { K, diff --git a/packages/win32-api/src/func/spoolss/helper.ts b/packages/win32-api/src/func/spoolss/helper.ts index e54ea3c5..c5c40d4b 100644 --- a/packages/win32-api/src/func/spoolss/helper.ts +++ b/packages/win32-api/src/func/spoolss/helper.ts @@ -1,5 +1,5 @@ // eslint-disable-next-line import/no-extraneous-dependencies -import ref from 'ref-napi' +import ref from '@lwahonen/ref-napi' import { DllNames, diff --git a/packages/win32-api/src/func/user32/helper.ts b/packages/win32-api/src/func/user32/helper.ts index cab02c38..8105a4b5 100644 --- a/packages/win32-api/src/func/user32/helper.ts +++ b/packages/win32-api/src/func/user32/helper.ts @@ -1,5 +1,5 @@ // eslint-disable-next-line import/no-extraneous-dependencies -import ref from 'ref-napi' +import ref from '@lwahonen/ref-napi' import { DllNames } from '../../index.js' import { User32 as DLL } from '../../index.promise.js' diff --git a/packages/win32-api/src/func/winspool/helper.ts b/packages/win32-api/src/func/winspool/helper.ts index d408a5d3..5b28bf8f 100644 --- a/packages/win32-api/src/func/winspool/helper.ts +++ b/packages/win32-api/src/func/winspool/helper.ts @@ -1,7 +1,7 @@ import assert from 'node:assert' // eslint-disable-next-line import/no-extraneous-dependencies -import ref from 'ref-napi' +import ref from '@lwahonen/ref-napi' import { DllNames, diff --git a/packages/win32-api/src/lib/helper.ts b/packages/win32-api/src/lib/helper.ts index d7110d48..81b68d7b 100644 --- a/packages/win32-api/src/lib/helper.ts +++ b/packages/win32-api/src/lib/helper.ts @@ -5,8 +5,8 @@ import assert from 'node:assert' import { copyFileSync, statSync } from 'node:fs' -import ffi from 'ffi-napi' -import ref from 'ref-napi' +import ffi from '@lwahonen/ffi-napi' +import ref from '@lwahonen/ref-napi' import { AsyncSyncFuncModel, DllFuncs, diff --git a/packages/win32-api/test/gdi32/201.CreateCompatibleDC.test.ts b/packages/win32-api/test/gdi32/201.CreateCompatibleDC.test.ts index 3f2d275d..01c8abff 100644 --- a/packages/win32-api/test/gdi32/201.CreateCompatibleDC.test.ts +++ b/packages/win32-api/test/gdi32/201.CreateCompatibleDC.test.ts @@ -1,16 +1,7 @@ import assert from 'node:assert/strict' import { fileShortPath } from '@waiting/shared-core' -import ref from 'ref-napi' -import { sleep } from 'zx' -import * as CS from '../../src/index.consts.js' -import { - DModel as M, - DTypes as W, - DStruct as DS, - StructFactory, -} from '../../src/index.js' import { gdi32 } from '../helper.js' diff --git a/packages/win32-api/test/helper.ts b/packages/win32-api/test/helper.ts index b80c4314..94b4c876 100644 --- a/packages/win32-api/test/helper.ts +++ b/packages/win32-api/test/helper.ts @@ -2,8 +2,8 @@ import assert from 'node:assert' import { genCurrentDirname } from '@waiting/shared-core' -import ffi from 'ffi-napi' -import ref from 'ref-napi' +import ffi from '@lwahonen/ffi-napi' +import ref from '@lwahonen/ref-napi' import StructDi from 'ref-struct-di' import UnionDi from 'ref-union-di' import { $ } from 'zx' diff --git a/packages/win32-api/test/helper/97.bufferToStruct.test.ts b/packages/win32-api/test/helper/97.bufferToStruct.test.ts index 466ab34d..40d3b88f 100644 --- a/packages/win32-api/test/helper/97.bufferToStruct.test.ts +++ b/packages/win32-api/test/helper/97.bufferToStruct.test.ts @@ -1,7 +1,6 @@ import assert from 'node:assert/strict' import { fileShortPath } from '@waiting/shared-core' -import ref from 'ref-napi' import { DModel as M, @@ -12,7 +11,6 @@ import { bufferToStruct, } from '../../src/index.js' import { githubPrinterNames } from '../config.unittest.js' -import { CI } from '../root.config.js' describe(fileShortPath(import.meta.url), () => { diff --git a/packages/win32-api/test/user32/51.EnumDisplayDevicesW.test.ts b/packages/win32-api/test/user32/51.EnumDisplayDevicesW.test.ts index b57133bf..9958d01c 100644 --- a/packages/win32-api/test/user32/51.EnumDisplayDevicesW.test.ts +++ b/packages/win32-api/test/user32/51.EnumDisplayDevicesW.test.ts @@ -2,7 +2,7 @@ import assert from 'node:assert/strict' import { fileShortPath } from '@waiting/shared-core' -import ref from 'ref-napi' +import ref from '@lwahonen/ref-napi' import { DModel as M, diff --git a/packages/win32-api/test/user32/55.SendMessageW.test.ts b/packages/win32-api/test/user32/55.SendMessageW.test.ts index 3dde56bd..505a2bda 100644 --- a/packages/win32-api/test/user32/55.SendMessageW.test.ts +++ b/packages/win32-api/test/user32/55.SendMessageW.test.ts @@ -2,7 +2,7 @@ import assert from 'node:assert/strict' import { spawn } from 'node:child_process' import { fileShortPath } from '@waiting/shared-core' -import ref from 'ref-napi' +import ref from '@lwahonen/ref-napi' import { sleep } from 'zx' import * as CS from '../../src/index.consts.js' diff --git a/packages/win32-api/test/user32/56.SendMessageW.SETTEXT.test.ts b/packages/win32-api/test/user32/56.SendMessageW.SETTEXT.test.ts index f65a0ede..9e1f49b3 100644 --- a/packages/win32-api/test/user32/56.SendMessageW.SETTEXT.test.ts +++ b/packages/win32-api/test/user32/56.SendMessageW.SETTEXT.test.ts @@ -2,7 +2,7 @@ import assert from 'node:assert/strict' import { spawn } from 'node:child_process' import { fileShortPath } from '@waiting/shared-core' -import ref from 'ref-napi' +import ref from '@lwahonen/ref-napi' import { sleep } from 'zx' import * as CS from '../../src/index.consts.js' diff --git a/packages/win32-api/test/user32/57.SendMessageW.GETTEXT.test.ts b/packages/win32-api/test/user32/57.SendMessageW.GETTEXT.test.ts index c294f1c9..44c58c8a 100644 --- a/packages/win32-api/test/user32/57.SendMessageW.GETTEXT.test.ts +++ b/packages/win32-api/test/user32/57.SendMessageW.GETTEXT.test.ts @@ -2,7 +2,7 @@ import assert from 'node:assert/strict' import { spawn } from 'node:child_process' import { fileShortPath } from '@waiting/shared-core' -import ref from 'ref-napi' +import ref from '@lwahonen/ref-napi' import { sleep } from 'zx' import * as CS from '../../src/index.consts.js' diff --git a/packages/win32-api/test/user32/60.FlashWindowEx.test.ts b/packages/win32-api/test/user32/60.FlashWindowEx.test.ts index 4da3bed9..14bd8fe7 100644 --- a/packages/win32-api/test/user32/60.FlashWindowEx.test.ts +++ b/packages/win32-api/test/user32/60.FlashWindowEx.test.ts @@ -2,7 +2,6 @@ import assert from 'node:assert/strict' import { spawn } from 'node:child_process' import { fileShortPath } from '@waiting/shared-core' -import ref from 'ref-napi' import { FLASHW_ALL, FLASHW_CAPTION } from 'win32-def/consts' import { sleep } from 'zx' diff --git a/packages/win32-api/test/user32/61.FlashWindow.test.ts b/packages/win32-api/test/user32/61.FlashWindow.test.ts index 14c3de6d..c631f4d1 100644 --- a/packages/win32-api/test/user32/61.FlashWindow.test.ts +++ b/packages/win32-api/test/user32/61.FlashWindow.test.ts @@ -2,7 +2,6 @@ import assert from 'node:assert/strict' import { spawn } from 'node:child_process' import { fileShortPath } from '@waiting/shared-core' -import ref from 'ref-napi' import { sleep } from 'zx' // import * as CS from '../../src/index.consts.js' diff --git a/packages/win32-api/test/user32/62.GetCaretPos.test.ts b/packages/win32-api/test/user32/62.GetCaretPos.test.ts index ee3e6ba3..53899db9 100644 --- a/packages/win32-api/test/user32/62.GetCaretPos.test.ts +++ b/packages/win32-api/test/user32/62.GetCaretPos.test.ts @@ -2,7 +2,6 @@ import assert from 'node:assert/strict' import { spawn } from 'node:child_process' import { fileShortPath } from '@waiting/shared-core' -import ref from 'ref-napi' import { sleep } from 'zx' // import * as CS from '../../src/index.consts.js' diff --git a/packages/win32-api/test/winspool/520.print-to-pdf.test.ts b/packages/win32-api/test/winspool/520.print-to-pdf.test.ts index eb9c0e93..c880ff7c 100644 --- a/packages/win32-api/test/winspool/520.print-to-pdf.test.ts +++ b/packages/win32-api/test/winspool/520.print-to-pdf.test.ts @@ -1,7 +1,7 @@ import assert from 'node:assert/strict' import { fileShortPath } from '@waiting/shared-core' -import ref from 'ref-napi' +import ref from '@lwahonen/ref-napi' import { StructPropToWCHAR } from 'win32-def' import { PrinterEnumFlags } from 'win32-def/consts' diff --git a/packages/win32-def/package.json b/packages/win32-def/package.json index a99a2e8b..13799a0d 100644 --- a/packages/win32-def/package.json +++ b/packages/win32-def/package.json @@ -52,11 +52,11 @@ "@waiting/shared-types": "^20.11.0" }, "devDependencies": { + "@lwahonen/ref-napi": "^4.0.8", "@types/ref-napi": "^3.0.6", "@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": { diff --git a/packages/win32-def/src/lib/common.types.ts b/packages/win32-def/src/lib/common.types.ts index 0b533508..bc0164d1 100644 --- a/packages/win32-def/src/lib/common.types.ts +++ b/packages/win32-def/src/lib/common.types.ts @@ -5,7 +5,7 @@ import { BigIntStr } from '@waiting/shared-types' // eslint-disable-next-line import/no-extraneous-dependencies -import ref from 'ref-napi' +import ref from '@lwahonen/ref-napi' export type _POINTER = Buffer diff --git a/packages/win32-def/src/lib/fixed-buffer.ts b/packages/win32-def/src/lib/fixed-buffer.ts index ea902939..461fdd4c 100644 --- a/packages/win32-def/src/lib/fixed-buffer.ts +++ b/packages/win32-def/src/lib/fixed-buffer.ts @@ -1,7 +1,7 @@ import assert from 'assert' // eslint-disable-next-line import/no-extraneous-dependencies -import { types } from 'ref-napi' +import { types } from '@lwahonen/ref-napi' import { StringBuffer } from './common.types.js' diff --git a/packages/win32-def/src/lib/helper.ts b/packages/win32-def/src/lib/helper.ts index 8f546ccc..4de96f5c 100644 --- a/packages/win32-def/src/lib/helper.ts +++ b/packages/win32-def/src/lib/helper.ts @@ -1,5 +1,5 @@ /* eslint-disable import/no-extraneous-dependencies */ -import ref from 'ref-napi' +import ref from '@lwahonen/ref-napi' import StructDi from 'ref-struct-di' import UnionDi from 'ref-union-di'