Skip to content

Commit

Permalink
refactor: deps
Browse files Browse the repository at this point in the history
  • Loading branch information
waitingsong committed Jun 14, 2024
1 parent 5b344e3 commit e522b07
Show file tree
Hide file tree
Showing 22 changed files with 20 additions and 34 deletions.
4 changes: 2 additions & 2 deletions packages/win32-api/demo/create_window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion packages/win32-api/demo/find_window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/win32-api/demo/knl_GetMOduleHandleExW.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/win32-api/src/func/spoolss/helper.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/win32-api/src/func/user32/helper.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion packages/win32-api/src/func/winspool/helper.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
4 changes: 2 additions & 2 deletions packages/win32-api/src/lib/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
9 changes: 0 additions & 9 deletions packages/win32-api/test/gdi32/201.CreateCompatibleDC.test.ts
Original file line number Diff line number Diff line change
@@ -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'


Expand Down
4 changes: 2 additions & 2 deletions packages/win32-api/test/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 0 additions & 2 deletions packages/win32-api/test/helper/97.bufferToStruct.test.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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), () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/win32-api/test/user32/55.SendMessageW.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
1 change: 0 additions & 1 deletion packages/win32-api/test/user32/60.FlashWindowEx.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
1 change: 0 additions & 1 deletion packages/win32-api/test/user32/61.FlashWindow.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
1 change: 0 additions & 1 deletion packages/win32-api/test/user32/62.GetCaretPos.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion packages/win32-api/test/winspool/520.print-to-pdf.test.ts
Original file line number Diff line number Diff line change
@@ -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'

Expand Down
2 changes: 1 addition & 1 deletion packages/win32-def/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion packages/win32-def/src/lib/common.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/win32-def/src/lib/fixed-buffer.ts
Original file line number Diff line number Diff line change
@@ -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'

Expand Down
2 changes: 1 addition & 1 deletion packages/win32-def/src/lib/helper.ts
Original file line number Diff line number Diff line change
@@ -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'

Expand Down

0 comments on commit e522b07

Please sign in to comment.