@openfin/automation-native
Advanced tools
Comparing version 1.1.11 to 1.2.0
# Changelog | ||
## 1.2.0 | ||
* Update dependencies | ||
## 1.1.11 | ||
@@ -4,0 +8,0 @@ |
@@ -1,1 +0,1 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@nut-tree/nut-js"),t=require("@openfin/automation-helpers");const s={...e.Key};class o{static async actions(s){const a=[e.Button.LEFT,e.Button.MIDDLE,e.Button.RIGHT];for(const i of s)if("mouseDown"===i.type)await e.mouse.pressButton(a[i.button??t.MouseButton.Left]);else if("mouseUp"===i.type)await e.mouse.releaseButton(a[i.button??t.MouseButton.Left]);else if("mouseClick"===i.type)await e.mouse.click(a[i.button??t.MouseButton.Left]);else if("mouseMove"===i.type)await e.mouse.move([{x:i.x??0,y:i.y??0}]);else if("keyDown"===i.type)await e.keyboard.pressKey(i.key);else if("keyUp"===i.type)await e.keyboard.releaseKey(i.key);else if("keyPress"===i.type){let t;t=Array.isArray(i.key)?i.key:(i.key,[i.key]),await e.keyboard.type(...t)}else"pause"===i.type&&i.duration>0&&await o.sleep(i.duration)}static async sleep(e){return new Promise((t=>setTimeout(t,e)))}}exports.NativeDriver=o,exports.NativeDriverKeys=s; | ||
"use strict";var e=require("@nut-tree/nut-js"),t=require("@openfin/automation-helpers");const s={...e.Key};class o{static async actions(s){const a=[e.Button.LEFT,e.Button.MIDDLE,e.Button.RIGHT];for(const i of s)if("mouseDown"===i.type)await e.mouse.pressButton(a[i.button??t.MouseButton.Left]);else if("mouseUp"===i.type)await e.mouse.releaseButton(a[i.button??t.MouseButton.Left]);else if("mouseClick"===i.type)await e.mouse.click(a[i.button??t.MouseButton.Left]);else if("mouseMove"===i.type)await e.mouse.move([{x:i.x??0,y:i.y??0}]);else if("keyDown"===i.type)await e.keyboard.pressKey(i.key);else if("keyUp"===i.type)await e.keyboard.releaseKey(i.key);else if("keyPress"===i.type){let t;t=Array.isArray(i.key)?i.key:(i.key,[i.key]),await e.keyboard.type(...t)}else"pause"===i.type&&i.duration>0&&await o.sleep(i.duration)}static async sleep(e){return new Promise((t=>setTimeout(t,e)))}}exports.NativeDriver=o,exports.NativeDriverKeys=s; |
{ | ||
"name": "@openfin/automation-native", | ||
"version": "1.1.11", | ||
"version": "1.2.0", | ||
"description": "Helper methods for native testing in the OpenFin ecosystem", | ||
@@ -14,3 +14,3 @@ "author": "martyn.janes@openfin.co", | ||
"scripts": { | ||
"build-clean": "rimraf ./es/* ./types/*", | ||
"build-clean": "rimraf --glob ./es/* ./types/*", | ||
"build-lint": "eslint src --ext .ts", | ||
@@ -21,34 +21,36 @@ "build-compile": "tsc", | ||
"format": "prettier --config .prettierrc src/**/* --write", | ||
"package-clean": "rimraf ./dist/*", | ||
"package-cjs": "rollup --config rollup.config.js", | ||
"package-clean": "rimraf --glob ./dist/*", | ||
"package-cjs": "rollup --config rollup.config.js --bundleConfigAsCjs", | ||
"package": "run-s package-clean package-cjs", | ||
"docs": "typedoc --tsconfig ./tsconfig.json --readme none --disableSources ./src/index.ts", | ||
"dist-clean": "rimraf ./es", | ||
"dist-clean": "rimraf --glob ./es", | ||
"dist": "run-s format build package docs dist-clean" | ||
}, | ||
"dependencies": { | ||
"@nut-tree/nut-js": "^3.1.2", | ||
"@openfin/automation-helpers": "1.1.11" | ||
"@openfin/automation-helpers": "1.2.0" | ||
}, | ||
"devDependencies": { | ||
"@rollup/plugin-commonjs": "25.0.3", | ||
"@rollup/plugin-node-resolve": "15.1.0", | ||
"@rollup/plugin-terser": "0.4.3", | ||
"@typescript-eslint/eslint-plugin": "6.2.0", | ||
"@typescript-eslint/parser": "6.2.0", | ||
"eslint": "8.46.0", | ||
"@rollup/plugin-commonjs": "25.0.7", | ||
"@rollup/plugin-node-resolve": "15.2.3", | ||
"@rollup/plugin-terser": "0.4.4", | ||
"@typescript-eslint/eslint-plugin": "6.13.1", | ||
"@typescript-eslint/parser": "6.13.1", | ||
"eslint": "8.54.0", | ||
"eslint-plugin-header": "3.1.1", | ||
"eslint-plugin-import": "2.26.0", | ||
"eslint-plugin-jsdoc": "46.4.5", | ||
"eslint-plugin-jsdoc": "46.9.0", | ||
"eslint-plugin-promise": "6.1.1", | ||
"eslint-plugin-simple-import-sort": "10.0.0", | ||
"eslint-plugin-unicorn": "48.0.1", | ||
"eslint-plugin-unicorn": "49.0.0", | ||
"eslint-plugin-unused-imports": "3.0.0", | ||
"npm-run-all": "4.1.5", | ||
"prettier": "3.0.0", | ||
"rimraf": "3.0.2", | ||
"rollup": "2.79.1", | ||
"typedoc": "0.24.8", | ||
"typescript": "5.1.6" | ||
"prettier": "3.1.0", | ||
"rimraf": "5.0.5", | ||
"rollup": "4.6.1", | ||
"typedoc": "0.25.4", | ||
"typescript": "5.3.2" | ||
}, | ||
"peerDependencies": { | ||
"@nut-tree/nut-js": "3.x" | ||
}, | ||
"main": "dist/cjs/index.js", | ||
@@ -55,0 +57,0 @@ "exports": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13602
+ Added@bazel/runfiles@6.3.1(transitive)
+ Added@openfin/automation-helpers@1.2.0(transitive)
+ Added@openfin/node-adapter@41.100.57(transitive)
+ Added@promptbook/utils@0.69.5(transitive)
+ Added@puppeteer/browsers@1.9.1(transitive)
+ Added@tootallnate/quickjs-emscripten@0.23.0(transitive)
+ Added@types/node@22.9.1(transitive)
+ Added@types/which@2.0.2(transitive)
+ Added@types/yauzl@2.10.3(transitive)
+ Added@wdio/config@8.40.6(transitive)
+ Added@wdio/logger@8.38.09.1.3(transitive)
+ Added@wdio/protocols@8.40.3(transitive)
+ Added@wdio/types@8.40.6(transitive)
+ Added@wdio/utils@8.40.6(transitive)
+ Added@zip.js/zip.js@2.7.53(transitive)
+ Addedagent-base@7.1.1(transitive)
+ Addedast-types@0.13.4(transitive)
+ Addedb4a@1.6.7(transitive)
+ Addedbare-events@2.5.0(transitive)
+ Addedbare-fs@2.3.5(transitive)
+ Addedbare-os@2.4.4(transitive)
+ Addedbare-path@2.1.3(transitive)
+ Addedbare-stream@2.4.0(transitive)
+ Addedbase64-js@1.5.1(transitive)
+ Addedbasic-ftp@5.0.5(transitive)
+ Addedbuffer@5.7.1(transitive)
+ Addedbuffer-crc32@0.2.13(transitive)
+ Addedchalk@4.1.2(transitive)
+ Addedcliui@8.0.1(transitive)
+ Addedcommander@9.5.0(transitive)
+ Addedcsstype@3.1.3(transitive)
+ Addeddata-uri-to-buffer@4.0.16.0.2(transitive)
+ Addeddebug@4.3.4(transitive)
+ Addeddegenerator@5.0.1(transitive)
+ Addededge-paths@3.0.5(transitive)
+ Addededgedriver@5.6.1(transitive)
+ Addedend-of-stream@1.4.4(transitive)
+ Addedescalade@3.2.0(transitive)
+ Addedescodegen@2.1.0(transitive)
+ Addedesprima@4.0.1(transitive)
+ Addedestraverse@5.3.0(transitive)
+ Addedesutils@2.0.3(transitive)
+ Addedextract-zip@2.0.1(transitive)
+ Addedfast-fifo@1.3.2(transitive)
+ Addedfast-xml-parser@4.5.0(transitive)
+ Addedfd-slicer@1.1.0(transitive)
+ Addedfetch-blob@3.2.0(transitive)
+ Addedformdata-polyfill@4.0.10(transitive)
+ Addedfs-extra@11.2.0(transitive)
+ Addedgeckodriver@4.5.1(transitive)
+ Addedget-caller-file@2.0.5(transitive)
+ Addedget-port@7.1.0(transitive)
+ Addedget-stream@5.2.0(transitive)
+ Addedget-uri@6.0.3(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addedhttp-proxy-agent@7.0.2(transitive)
+ Addedhttps-proxy-agent@7.0.5(transitive)
+ Addedieee754@1.2.1(transitive)
+ Addedimport-meta-resolve@4.1.0(transitive)
+ Addedip-address@9.0.5(transitive)
+ Addedisexe@3.1.1(transitive)
+ Addedjsbn@1.1.0(transitive)
+ Addedjsonfile@6.1.0(transitive)
+ Addedlocate-app@2.5.0(transitive)
+ Addedlru-cache@7.18.3(transitive)
+ Addedmkdirp-classic@0.5.3(transitive)
+ Addedms@2.1.2(transitive)
+ Addednetmask@2.0.2(transitive)
+ Addednode-domexception@1.0.0(transitive)
+ Addednode-fetch@3.3.2(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpac-proxy-agent@7.0.2(transitive)
+ Addedpac-resolver@7.0.1(transitive)
+ Addedpend@1.2.0(transitive)
+ Addedprogress@2.0.3(transitive)
+ Addedproxy-agent@6.3.1(transitive)
+ Addedproxy-from-env@1.1.0(transitive)
+ Addedpump@3.0.2(transitive)
+ Addedqueue-tick@1.0.1(transitive)
+ Addedrequire-directory@2.1.1(transitive)
+ Addedsafaridriver@0.1.2(transitive)
+ Addedselenium-webdriver@4.26.0(transitive)
+ Addedsmart-buffer@4.2.0(transitive)
+ Addedsocks@2.8.3(transitive)
+ Addedsocks-proxy-agent@8.0.4(transitive)
+ Addedsource-map@0.6.1(transitive)
+ Addedspacetrim@0.11.59(transitive)
+ Addedsplit2@4.2.0(transitive)
+ Addedsprintf-js@1.1.3(transitive)
+ Addedstreamx@2.20.2(transitive)
+ Addedstrnum@1.0.5(transitive)
+ Addedsupports-color@7.2.0(transitive)
+ Addedtar-fs@3.0.43.0.6(transitive)
+ Addedtar-stream@3.1.7(transitive)
+ Addedtext-decoder@1.2.1(transitive)
+ Addedthrough@2.3.8(transitive)
+ Addedtslib@2.8.1(transitive)
+ Addedtype-fest@4.26.0(transitive)
+ Addedunbzip2-stream@1.4.3(transitive)
+ Addeduniversalify@2.0.1(transitive)
+ Addeduserhome@1.0.1(transitive)
+ Addedwait-port@1.1.0(transitive)
+ Addedweb-streams-polyfill@3.3.3(transitive)
+ Addedwebdriver@8.40.6(transitive)
+ Addedwhich@4.0.0(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedy18n@5.0.8(transitive)
+ Addedyargs@17.7.2(transitive)
+ Addedyargs-parser@21.1.1(transitive)
+ Addedyauzl@2.10.0(transitive)
- Removed@nut-tree/nut-js@^3.1.2
- Removed@babel/code-frame@7.26.2(transitive)
- Removed@babel/helper-validator-identifier@7.25.9(transitive)
- Removed@openfin/automation-helpers@1.1.11(transitive)
- Removed@types/node@16.18.119(transitive)
- Removed@types/normalize-package-data@2.4.4(transitive)
- Removed@wdio/config@8.13.13(transitive)
- Removed@wdio/logger@8.11.0(transitive)
- Removed@wdio/protocols@8.11.0(transitive)
- Removed@wdio/types@8.10.4(transitive)
- Removed@wdio/utils@8.13.13(transitive)
- Removedcsstype@3.1.2(transitive)
- Removederror-ex@1.3.2(transitive)
- Removedfind-up@6.3.0(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedhasown@2.0.2(transitive)
- Removedhosted-git-info@4.1.0(transitive)
- Removedimport-meta-resolve@3.1.1(transitive)
- Removedis-arrayish@0.2.1(transitive)
- Removedis-core-module@2.15.1(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedjson-parse-even-better-errors@2.3.1(transitive)
- Removedlines-and-columns@1.2.4(transitive)
- Removedlocate-path@7.2.0(transitive)
- Removedlru-cache@6.0.0(transitive)
- Removednormalize-package-data@3.0.3(transitive)
- Removedopenfin-adapter@32.76.10(transitive)
- Removedp-limit@4.0.0(transitive)
- Removedp-locate@6.0.0(transitive)
- Removedparse-json@5.2.0(transitive)
- Removedpath-exists@5.0.0(transitive)
- Removedpicocolors@1.1.1(transitive)
- Removedread-pkg@7.1.0(transitive)
- Removedread-pkg-up@9.1.0(transitive)
- Removedselenium-webdriver@4.10.0(transitive)
- Removedsemver@7.6.3(transitive)
- Removedspdx-correct@3.2.0(transitive)
- Removedspdx-exceptions@2.5.0(transitive)
- Removedspdx-expression-parse@3.0.1(transitive)
- Removedspdx-license-ids@3.0.20(transitive)
- Removedtype-fest@2.19.0(transitive)
- Removedvalidate-npm-package-license@3.0.4(transitive)
- Removedwebdriver@8.13.13(transitive)
- Removedyallist@4.0.0(transitive)
- Removedyocto-queue@1.1.1(transitive)