w-mousekey 1.0.33 → 1.0.35

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/docs/global.html CHANGED
@@ -517,7 +517,7 @@ sendCombo: [combo] xdotool風格組合鍵字串 (如 'ctrl+v'
517
517
  <br class="clear">
518
518
 
519
519
  <footer>
520
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Sep 05 2026 22:12:52 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
520
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Fri Sep 18 2026 12:35:36 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
521
521
  </footer>
522
522
 
523
523
  <script>prettyPrint();</script>
package/docs/index.html CHANGED
@@ -71,7 +71,7 @@
71
71
  <br class="clear">
72
72
 
73
73
  <footer>
74
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Sep 05 2026 22:12:52 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
74
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Fri Sep 18 2026 12:35:36 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
75
75
  </footer>
76
76
 
77
77
  <script>prettyPrint();</script>
@@ -207,7 +207,7 @@ export default obj
207
207
  <br class="clear">
208
208
 
209
209
  <footer>
210
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Sep 05 2026 22:12:52 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
210
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Fri Sep 18 2026 12:35:36 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
211
211
  </footer>
212
212
 
213
213
  <script>prettyPrint();</script>
@@ -214,7 +214,7 @@ export default obj
214
214
  <br class="clear">
215
215
 
216
216
  <footer>
217
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Sep 05 2026 22:12:52 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
217
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Fri Sep 18 2026 12:35:36 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
218
218
  </footer>
219
219
 
220
220
  <script>prettyPrint();</script>
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "w-mousekey",
3
- "version": "1.0.33",
3
+ "version": "1.0.35",
4
4
  "main": "dist/w-mousekey.umd.js",
5
5
  "dependencies": {
6
6
  "@techstark/opencv-js": "^4.12.0-release.1",
7
7
  "json5": "^2.2.3",
8
8
  "screenshot-desktop": "^1.15.4",
9
9
  "sharp": "^0.35.3",
10
- "wsemi": "^1.8.85"
10
+ "wsemi": "^1.9.0"
11
11
  },
12
12
  "devDependencies": {
13
13
  "playwright": "^1.62.1",
14
- "w-package-tools": "^1.1.15"
14
+ "w-package-tools": "^1.1.16"
15
15
  },
16
16
  "scripts": {
17
- "test": "mocha --no-parallel --timeout 60000",
17
+ "test": "mocha --no-parallel \"test/*.test.mjs\" --timeout 180000",
18
18
  "deploy": "gh-pages -d docs"
19
19
  },
20
20
  "repository": {
@@ -3,11 +3,12 @@ import path from 'path'
3
3
  import fs from 'fs'
4
4
  import sharp from 'sharp'
5
5
  import { fileURLToPath } from 'url'
6
- import mk from '../src/mousekey.mjs'
7
- import getAhk from '../src/getAhk.mjs'
8
- import sc from '../src/screen.mjs'
6
+ import mk from '../../src/mousekey.mjs'
7
+ import getAhk from '../../src/getAhk.mjs'
8
+ import sc from '../../src/screen.mjs'
9
9
 
10
- export const testDir = path.dirname(fileURLToPath(import.meta.url))
10
+ export const toolsDir = path.dirname(fileURLToPath(import.meta.url))
11
+ export const testDir = path.resolve(toolsDir, '..')
11
12
  export const imgsDir = path.join(testDir, 'imgs')
12
13
 
13
14
  export function fileUrl(file) {
@@ -5,7 +5,7 @@ import sharp from 'sharp'
5
5
  import sc from '../src/screen.mjs'
6
6
  import cp from '../src/compare.mjs'
7
7
  import ckPic from '../src/ckPic.mjs'
8
- import { testDir, imgsDir, fileUrl, checkAhk, checkScreen, launchBrowser, ensureImages } from './helper.mjs'
8
+ import { testDir, imgsDir, fileUrl, checkAhk, checkScreen, launchBrowser, ensureImages } from './tools/helper.mjs'
9
9
 
10
10
  describe('ckPic', function () {
11
11
  this.timeout(60000)
@@ -4,7 +4,7 @@ import fs from 'fs'
4
4
  import mk from '../src/mousekey.mjs'
5
5
  import sc from '../src/screen.mjs'
6
6
  import cp from '../src/compare.mjs'
7
- import { testDir, imgsDir, fileUrl, checkAhk, checkScreen, launchBrowser, ensureImages } from './helper.mjs'
7
+ import { testDir, imgsDir, fileUrl, checkAhk, checkScreen, launchBrowser, ensureImages } from './tools/helper.mjs'
8
8
 
9
9
  describe('mousekey', function () {
10
10
  this.timeout(30000)
@@ -4,7 +4,7 @@ import fs from 'fs'
4
4
  import sc from '../src/screen.mjs'
5
5
  import cp from '../src/compare.mjs'
6
6
  import runScp from '../src/runScp.mjs'
7
- import { testDir, imgsDir, fileUrl, checkAhk, checkScreen, launchBrowser, ensureImages } from './helper.mjs'
7
+ import { testDir, imgsDir, fileUrl, checkAhk, checkScreen, launchBrowser, ensureImages } from './tools/helper.mjs'
8
8
 
9
9
  describe('runScp', function () {
10
10
  this.timeout(30000)
@@ -3,7 +3,7 @@ import path from 'path'
3
3
  import fs from 'fs'
4
4
  import sharp from 'sharp'
5
5
  import sc from '../src/screen.mjs'
6
- import { imgsDir, checkScreen } from './helper.mjs'
6
+ import { imgsDir, checkScreen } from './tools/helper.mjs'
7
7
 
8
8
  describe('screen', function () {
9
9
  this.timeout(30000)
@@ -5,7 +5,7 @@ import sharp from 'sharp'
5
5
  import sc from '../src/screen.mjs'
6
6
  import cp from '../src/compare.mjs'
7
7
  import waitPics from '../src/waitPics.mjs'
8
- import { testDir, imgsDir, fileUrl, checkAhk, checkScreen, launchBrowser, ensureImages } from './helper.mjs'
8
+ import { testDir, imgsDir, fileUrl, checkAhk, checkScreen, launchBrowser, ensureImages } from './tools/helper.mjs'
9
9
 
10
10
  describe('waitPics', function () {
11
11
  this.timeout(60000)