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

@kirillvakalov/nut-tree__libnut

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kirillvakalov/nut-tree__libnut - npm Package Compare versions

Comparing version 4.2.1-0 to 4.2.1-1

268

dist/lib/libnut-keyboard.class.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const import_libnut_1 = require("../import_libnut");
const shared_1 = require("@nut-tree/shared");
const nut_tree__shared_1 = require("@kirillvakalov/nut-tree__shared");
class KeyboardAction {

@@ -90,137 +90,137 @@ static keyLookup(key) {

KeyboardAction.KeyLookupMap = new Map([
[shared_1.Key.A, "a"],
[shared_1.Key.B, "b"],
[shared_1.Key.C, "c"],
[shared_1.Key.D, "d"],
[shared_1.Key.E, "e"],
[shared_1.Key.F, "f"],
[shared_1.Key.G, "g"],
[shared_1.Key.H, "h"],
[shared_1.Key.I, "i"],
[shared_1.Key.J, "j"],
[shared_1.Key.K, "k"],
[shared_1.Key.L, "l"],
[shared_1.Key.M, "m"],
[shared_1.Key.N, "n"],
[shared_1.Key.O, "o"],
[shared_1.Key.P, "p"],
[shared_1.Key.Q, "q"],
[shared_1.Key.R, "r"],
[shared_1.Key.S, "s"],
[shared_1.Key.T, "t"],
[shared_1.Key.U, "u"],
[shared_1.Key.V, "v"],
[shared_1.Key.W, "w"],
[shared_1.Key.X, "x"],
[shared_1.Key.Y, "y"],
[shared_1.Key.Z, "z"],
[shared_1.Key.F1, "f1"],
[shared_1.Key.F2, "f2"],
[shared_1.Key.F3, "f3"],
[shared_1.Key.F4, "f4"],
[shared_1.Key.F5, "f5"],
[shared_1.Key.F6, "f6"],
[shared_1.Key.F7, "f7"],
[shared_1.Key.F8, "f8"],
[shared_1.Key.F9, "f9"],
[shared_1.Key.F10, "f10"],
[shared_1.Key.F11, "f11"],
[shared_1.Key.F12, "f12"],
[shared_1.Key.F13, "f13"],
[shared_1.Key.F14, "f14"],
[shared_1.Key.F15, "f15"],
[shared_1.Key.F16, "f16"],
[shared_1.Key.F17, "f17"],
[shared_1.Key.F18, "f18"],
[shared_1.Key.F19, "f19"],
[shared_1.Key.F20, "f20"],
[shared_1.Key.F21, "f21"],
[shared_1.Key.F22, "f22"],
[shared_1.Key.F23, "f23"],
[shared_1.Key.F24, "f24"],
[shared_1.Key.Num0, "0"],
[shared_1.Key.Num1, "1"],
[shared_1.Key.Num2, "2"],
[shared_1.Key.Num3, "3"],
[shared_1.Key.Num4, "4"],
[shared_1.Key.Num5, "5"],
[shared_1.Key.Num6, "6"],
[shared_1.Key.Num7, "7"],
[shared_1.Key.Num8, "8"],
[shared_1.Key.Num9, "9"],
[shared_1.Key.NumPad0, "numpad_0"],
[shared_1.Key.NumPad1, "numpad_1"],
[shared_1.Key.NumPad2, "numpad_2"],
[shared_1.Key.NumPad3, "numpad_3"],
[shared_1.Key.NumPad4, "numpad_4"],
[shared_1.Key.NumPad5, "numpad_5"],
[shared_1.Key.NumPad6, "numpad_6"],
[shared_1.Key.NumPad7, "numpad_7"],
[shared_1.Key.NumPad8, "numpad_8"],
[shared_1.Key.NumPad9, "numpad_9"],
[shared_1.Key.Decimal, "numpad_decimal"],
[shared_1.Key.Space, "space"],
[shared_1.Key.Escape, "escape"],
[shared_1.Key.Tab, "tab"],
[shared_1.Key.LeftAlt, "alt"],
[shared_1.Key.LeftControl, "control"],
[shared_1.Key.RightAlt, "right_alt"],
[shared_1.Key.RightControl, "right_control"],
[shared_1.Key.LeftWin, "win"],
[shared_1.Key.RightWin, "right_win"],
[shared_1.Key.LeftCmd, "cmd"],
[shared_1.Key.RightCmd, "right_cmd"],
[shared_1.Key.Menu, "menu"],
[shared_1.Key.Fn, "fn"],
[shared_1.Key.LeftShift, "shift"],
[shared_1.Key.LeftSuper, "command"],
[shared_1.Key.RightShift, "right_shift"],
[shared_1.Key.RightSuper, "command"],
[shared_1.Key.Grave, "`"],
[shared_1.Key.Minus, "-"],
[shared_1.Key.Equal, "="],
[shared_1.Key.Backspace, "backspace"],
[shared_1.Key.LeftBracket, "["],
[shared_1.Key.RightBracket, "]"],
[shared_1.Key.Backslash, "\\"],
[shared_1.Key.Semicolon, ";"],
[shared_1.Key.Quote, "'"],
[shared_1.Key.Return, "enter"],
[shared_1.Key.Comma, ","],
[shared_1.Key.Period, "."],
[shared_1.Key.Slash, "/"],
[shared_1.Key.Left, "left"],
[shared_1.Key.Up, "up"],
[shared_1.Key.Right, "right"],
[shared_1.Key.Down, "down"],
[shared_1.Key.Print, "printscreen"],
[shared_1.Key.Pause, null],
[shared_1.Key.Insert, "insert"],
[shared_1.Key.Delete, "delete"],
[shared_1.Key.Home, "home"],
[shared_1.Key.End, "end"],
[shared_1.Key.PageUp, "pageup"],
[shared_1.Key.PageDown, "pagedown"],
[shared_1.Key.Add, "add"],
[shared_1.Key.Subtract, "subtract"],
[shared_1.Key.Multiply, "multiply"],
[shared_1.Key.Divide, "divide"],
[shared_1.Key.Enter, "enter"],
[shared_1.Key.CapsLock, "caps_lock"],
[shared_1.Key.ScrollLock, "scroll_lock"],
[shared_1.Key.NumLock, "num_lock"],
[shared_1.Key.AudioMute, "audio_mute"],
[shared_1.Key.AudioVolDown, "audio_vol_down"],
[shared_1.Key.AudioVolUp, "audio_vol_up"],
[shared_1.Key.AudioPlay, "audio_play"],
[shared_1.Key.AudioStop, "audio_stop"],
[shared_1.Key.AudioPause, "audio_pause"],
[shared_1.Key.AudioPrev, "audio_prev"],
[shared_1.Key.AudioNext, "audio_next"],
[shared_1.Key.AudioRewind, "audio_rewind"],
[shared_1.Key.AudioForward, "audio_forward"],
[shared_1.Key.AudioRepeat, "audio_repeat"],
[shared_1.Key.AudioRandom, "audio_random"]
[nut_tree__shared_1.Key.A, "a"],
[nut_tree__shared_1.Key.B, "b"],
[nut_tree__shared_1.Key.C, "c"],
[nut_tree__shared_1.Key.D, "d"],
[nut_tree__shared_1.Key.E, "e"],
[nut_tree__shared_1.Key.F, "f"],
[nut_tree__shared_1.Key.G, "g"],
[nut_tree__shared_1.Key.H, "h"],
[nut_tree__shared_1.Key.I, "i"],
[nut_tree__shared_1.Key.J, "j"],
[nut_tree__shared_1.Key.K, "k"],
[nut_tree__shared_1.Key.L, "l"],
[nut_tree__shared_1.Key.M, "m"],
[nut_tree__shared_1.Key.N, "n"],
[nut_tree__shared_1.Key.O, "o"],
[nut_tree__shared_1.Key.P, "p"],
[nut_tree__shared_1.Key.Q, "q"],
[nut_tree__shared_1.Key.R, "r"],
[nut_tree__shared_1.Key.S, "s"],
[nut_tree__shared_1.Key.T, "t"],
[nut_tree__shared_1.Key.U, "u"],
[nut_tree__shared_1.Key.V, "v"],
[nut_tree__shared_1.Key.W, "w"],
[nut_tree__shared_1.Key.X, "x"],
[nut_tree__shared_1.Key.Y, "y"],
[nut_tree__shared_1.Key.Z, "z"],
[nut_tree__shared_1.Key.F1, "f1"],
[nut_tree__shared_1.Key.F2, "f2"],
[nut_tree__shared_1.Key.F3, "f3"],
[nut_tree__shared_1.Key.F4, "f4"],
[nut_tree__shared_1.Key.F5, "f5"],
[nut_tree__shared_1.Key.F6, "f6"],
[nut_tree__shared_1.Key.F7, "f7"],
[nut_tree__shared_1.Key.F8, "f8"],
[nut_tree__shared_1.Key.F9, "f9"],
[nut_tree__shared_1.Key.F10, "f10"],
[nut_tree__shared_1.Key.F11, "f11"],
[nut_tree__shared_1.Key.F12, "f12"],
[nut_tree__shared_1.Key.F13, "f13"],
[nut_tree__shared_1.Key.F14, "f14"],
[nut_tree__shared_1.Key.F15, "f15"],
[nut_tree__shared_1.Key.F16, "f16"],
[nut_tree__shared_1.Key.F17, "f17"],
[nut_tree__shared_1.Key.F18, "f18"],
[nut_tree__shared_1.Key.F19, "f19"],
[nut_tree__shared_1.Key.F20, "f20"],
[nut_tree__shared_1.Key.F21, "f21"],
[nut_tree__shared_1.Key.F22, "f22"],
[nut_tree__shared_1.Key.F23, "f23"],
[nut_tree__shared_1.Key.F24, "f24"],
[nut_tree__shared_1.Key.Num0, "0"],
[nut_tree__shared_1.Key.Num1, "1"],
[nut_tree__shared_1.Key.Num2, "2"],
[nut_tree__shared_1.Key.Num3, "3"],
[nut_tree__shared_1.Key.Num4, "4"],
[nut_tree__shared_1.Key.Num5, "5"],
[nut_tree__shared_1.Key.Num6, "6"],
[nut_tree__shared_1.Key.Num7, "7"],
[nut_tree__shared_1.Key.Num8, "8"],
[nut_tree__shared_1.Key.Num9, "9"],
[nut_tree__shared_1.Key.NumPad0, "numpad_0"],
[nut_tree__shared_1.Key.NumPad1, "numpad_1"],
[nut_tree__shared_1.Key.NumPad2, "numpad_2"],
[nut_tree__shared_1.Key.NumPad3, "numpad_3"],
[nut_tree__shared_1.Key.NumPad4, "numpad_4"],
[nut_tree__shared_1.Key.NumPad5, "numpad_5"],
[nut_tree__shared_1.Key.NumPad6, "numpad_6"],
[nut_tree__shared_1.Key.NumPad7, "numpad_7"],
[nut_tree__shared_1.Key.NumPad8, "numpad_8"],
[nut_tree__shared_1.Key.NumPad9, "numpad_9"],
[nut_tree__shared_1.Key.Decimal, "numpad_decimal"],
[nut_tree__shared_1.Key.Space, "space"],
[nut_tree__shared_1.Key.Escape, "escape"],
[nut_tree__shared_1.Key.Tab, "tab"],
[nut_tree__shared_1.Key.LeftAlt, "alt"],
[nut_tree__shared_1.Key.LeftControl, "control"],
[nut_tree__shared_1.Key.RightAlt, "right_alt"],
[nut_tree__shared_1.Key.RightControl, "right_control"],
[nut_tree__shared_1.Key.LeftWin, "win"],
[nut_tree__shared_1.Key.RightWin, "right_win"],
[nut_tree__shared_1.Key.LeftCmd, "cmd"],
[nut_tree__shared_1.Key.RightCmd, "right_cmd"],
[nut_tree__shared_1.Key.Menu, "menu"],
[nut_tree__shared_1.Key.Fn, "fn"],
[nut_tree__shared_1.Key.LeftShift, "shift"],
[nut_tree__shared_1.Key.LeftSuper, "command"],
[nut_tree__shared_1.Key.RightShift, "right_shift"],
[nut_tree__shared_1.Key.RightSuper, "command"],
[nut_tree__shared_1.Key.Grave, "`"],
[nut_tree__shared_1.Key.Minus, "-"],
[nut_tree__shared_1.Key.Equal, "="],
[nut_tree__shared_1.Key.Backspace, "backspace"],
[nut_tree__shared_1.Key.LeftBracket, "["],
[nut_tree__shared_1.Key.RightBracket, "]"],
[nut_tree__shared_1.Key.Backslash, "\\"],
[nut_tree__shared_1.Key.Semicolon, ";"],
[nut_tree__shared_1.Key.Quote, "'"],
[nut_tree__shared_1.Key.Return, "enter"],
[nut_tree__shared_1.Key.Comma, ","],
[nut_tree__shared_1.Key.Period, "."],
[nut_tree__shared_1.Key.Slash, "/"],
[nut_tree__shared_1.Key.Left, "left"],
[nut_tree__shared_1.Key.Up, "up"],
[nut_tree__shared_1.Key.Right, "right"],
[nut_tree__shared_1.Key.Down, "down"],
[nut_tree__shared_1.Key.Print, "printscreen"],
[nut_tree__shared_1.Key.Pause, null],
[nut_tree__shared_1.Key.Insert, "insert"],
[nut_tree__shared_1.Key.Delete, "delete"],
[nut_tree__shared_1.Key.Home, "home"],
[nut_tree__shared_1.Key.End, "end"],
[nut_tree__shared_1.Key.PageUp, "pageup"],
[nut_tree__shared_1.Key.PageDown, "pagedown"],
[nut_tree__shared_1.Key.Add, "add"],
[nut_tree__shared_1.Key.Subtract, "subtract"],
[nut_tree__shared_1.Key.Multiply, "multiply"],
[nut_tree__shared_1.Key.Divide, "divide"],
[nut_tree__shared_1.Key.Enter, "enter"],
[nut_tree__shared_1.Key.CapsLock, "caps_lock"],
[nut_tree__shared_1.Key.ScrollLock, "scroll_lock"],
[nut_tree__shared_1.Key.NumLock, "num_lock"],
[nut_tree__shared_1.Key.AudioMute, "audio_mute"],
[nut_tree__shared_1.Key.AudioVolDown, "audio_vol_down"],
[nut_tree__shared_1.Key.AudioVolUp, "audio_vol_up"],
[nut_tree__shared_1.Key.AudioPlay, "audio_play"],
[nut_tree__shared_1.Key.AudioStop, "audio_stop"],
[nut_tree__shared_1.Key.AudioPause, "audio_pause"],
[nut_tree__shared_1.Key.AudioPrev, "audio_prev"],
[nut_tree__shared_1.Key.AudioNext, "audio_next"],
[nut_tree__shared_1.Key.AudioRewind, "audio_rewind"],
[nut_tree__shared_1.Key.AudioForward, "audio_forward"],
[nut_tree__shared_1.Key.AudioRepeat, "audio_repeat"],
[nut_tree__shared_1.Key.AudioRandom, "audio_random"]
]);
exports.default = KeyboardAction;
//# sourceMappingURL=libnut-keyboard.class.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const import_libnut_1 = require("../import_libnut");
const shared_1 = require("@nut-tree/shared");
const nut_tree__shared_1 = require("@kirillvakalov/nut-tree__shared");
class MouseAction {

@@ -29,3 +29,3 @@ static buttonLookup(btn) {

const position = import_libnut_1.libnut.getMousePos();
resolve(new shared_1.Point(position.x, position.y));
resolve(new nut_tree__shared_1.Point(position.x, position.y));
}

@@ -60,9 +60,9 @@ catch (e) {

leftClick() {
return this.click(shared_1.Button.LEFT);
return this.click(nut_tree__shared_1.Button.LEFT);
}
rightClick() {
return this.click(shared_1.Button.RIGHT);
return this.click(nut_tree__shared_1.Button.RIGHT);
}
middleClick() {
return this.click(shared_1.Button.MIDDLE);
return this.click(nut_tree__shared_1.Button.MIDDLE);
}

@@ -137,7 +137,7 @@ pressButton(btn) {

MouseAction.ButtonLookupMap = new Map([
[shared_1.Button.LEFT, "left"],
[shared_1.Button.MIDDLE, "middle"],
[shared_1.Button.RIGHT, "right"]
[nut_tree__shared_1.Button.LEFT, "left"],
[nut_tree__shared_1.Button.MIDDLE, "middle"],
[nut_tree__shared_1.Button.RIGHT, "right"]
]);
exports.default = MouseAction;
//# sourceMappingURL=libnut-mouse.class.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const import_libnut_1 = require("../import_libnut");
const shared_1 = require("@nut-tree/shared");
const nut_tree__shared_1 = require("@kirillvakalov/nut-tree__shared");
class ScreenAction {

@@ -19,4 +19,4 @@ static determinePixelDensity(screen, screenShot) {

const screenSize = import_libnut_1.libnut.getScreenSize();
const pixelScaling = ScreenAction.determinePixelDensity(new shared_1.Region(0, 0, screenSize.width, screenSize.height), screenShot);
resolve(new shared_1.Image(screenShot.width, screenShot.height, screenShot.image, 4, "grabScreenResult", screenShot.bitsPerPixel, screenShot.byteWidth, shared_1.ColorMode.BGR, pixelScaling));
const pixelScaling = ScreenAction.determinePixelDensity(new nut_tree__shared_1.Region(0, 0, screenSize.width, screenSize.height), screenShot);
resolve(new nut_tree__shared_1.Image(screenShot.width, screenShot.height, screenShot.image, 4, "grabScreenResult", screenShot.bitsPerPixel, screenShot.byteWidth, nut_tree__shared_1.ColorMode.BGR, pixelScaling));
}

@@ -33,3 +33,3 @@ else {

const pixelScaling = ScreenAction.determinePixelDensity(region, screenShot);
resolve(new shared_1.Image(screenShot.width, screenShot.height, screenShot.image, 4, "grabScreenRegionResult", screenShot.bitsPerPixel, screenShot.byteWidth, shared_1.ColorMode.BGR, pixelScaling));
resolve(new nut_tree__shared_1.Image(screenShot.width, screenShot.height, screenShot.image, 4, "grabScreenRegionResult", screenShot.bitsPerPixel, screenShot.byteWidth, nut_tree__shared_1.ColorMode.BGR, pixelScaling));
}

@@ -73,3 +73,3 @@ else {

const screenSize = import_libnut_1.libnut.getScreenSize();
resolve(new shared_1.Region(0, 0, screenSize.width, screenSize.height));
resolve(new nut_tree__shared_1.Region(0, 0, screenSize.width, screenSize.height));
}

@@ -76,0 +76,0 @@ catch (e) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const import_libnut_1 = require("../import_libnut");
const shared_1 = require("@nut-tree/shared");
const nut_tree__shared_1 = require("@kirillvakalov/nut-tree__shared");
class WindowAction {

@@ -30,3 +30,3 @@ getWindows() {

const windowRect = import_libnut_1.libnut.getWindowRect(windowHandle);
resolve(new shared_1.Region(windowRect.x, windowRect.y, windowRect.width, windowRect.height));
resolve(new nut_tree__shared_1.Region(windowRect.x, windowRect.y, windowRect.width, windowRect.height));
}

@@ -33,0 +33,0 @@ catch (e) {

{
"name": "@kirillvakalov/nut-tree__libnut",
"version": "4.2.1-0",
"version": "4.2.1-1",
"description": "libnut is an N-API module for desktop automation with node",

@@ -38,8 +38,8 @@ "main": "dist/index",

"devDependencies": {
"@kirillvakalov/nut-tree__provider-interfaces": "4.2.1-0",
"@kirillvakalov/nut-tree__shared": "4.2.1-0",
"@kirillvakalov/nut-tree__provider-interfaces": "4.2.1-1",
"@kirillvakalov/nut-tree__shared": "4.2.1-1",
"@nut-tree/configs": "4.2.0"
},
"peerDependencies": {
"@kirillvakalov/nut-tree__nut-js": "4.2.1-0"
"@kirillvakalov/nut-tree__nut-js": "4.2.1-1"
},

@@ -46,0 +46,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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