Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@openfin/automation-native

Package Overview
Dependencies
Maintainers
55
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openfin/automation-native - npm Package Compare versions

Comparing version 1.1.11 to 1.2.0

4

CHANGELOG.md
# Changelog
## 1.2.0
* Update dependencies
## 1.1.11

@@ -4,0 +8,0 @@

2

dist/cjs/index.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc