New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@openfin/automation-native

Package Overview
Dependencies
Maintainers
52
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.0.8 to 1.0.9

4

CHANGELOG.md
# Changelog
## 1.0.9
* Version alignment
## 1.0.8

@@ -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};exports.NativeDriver=class{static async actions(s){const o=[e.Button.LEFT,e.Button.MIDDLE,e.Button.RIGHT];for(const u of s)if("mouseDown"===u.type)await e.mouse.pressButton(o[u.button??t.MouseButton.Left]);else if("mouseUp"===u.type)await e.mouse.releaseButton(o[u.button??t.MouseButton.Left]);else if("mouseClick"===u.type)await e.mouse.pressButton(o[u.button??t.MouseButton.Left]),await e.mouse.releaseButton(o[u.button??t.MouseButton.Left]);else if("mouseMove"===u.type)await e.mouse.move([{x:u.x??0,y:u.y??0}]);else if("keyDown"===u.type)await e.keyboard.pressKey(u.key);else if("keyUp"===u.type)await e.keyboard.releaseKey(u.key);else if("keyPress"===u.type){let t;t=Array.isArray(u.key)?u.key:(u.key,[u.key]),await e.keyboard.type(...t)}else"pause"===u.type&&u.duration>0&&await new Promise((e=>setTimeout(e,u.duration)))}static async sleep(e){return new Promise((t=>setTimeout(t,e)))}},exports.NativeDriverKeys=s;
"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;
{
"name": "@openfin/automation-native",
"version": "1.0.8",
"version": "1.0.9",
"description": "Helper methods for native testing in the OpenFin ecosystem",

@@ -29,3 +29,3 @@ "author": "martyn.janes@openfin.co",

"@nut-tree/nut-js": "^3.1.1",
"@openfin/automation-helpers": "1.0.8"
"@openfin/automation-helpers": "1.0.9"
},

@@ -32,0 +32,0 @@ "devDependencies": {

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