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

bunbot

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bunbot - npm Package Compare versions

Comparing version

to
0.0.6

@@ -11,3 +11,3 @@ // Generated by dts-bundle-generator v8.0.1

getRobotGoVersion(): string;
getMousePositionColor(): string;
getPixelColor(x: number, y: number): string;
getScreenSize(): Coords;

@@ -21,2 +21,3 @@ getScaleSize(): Coords;

moveMouse(x: number, y: number): void;
dragMouse(x: number, y: number): void;
moveMouseSmooth(x: number, y: number, low?: number, high?: number): void;

@@ -38,2 +39,3 @@ getMousePosition(): Coords;

tap(key: string, ...modifiers: string[]): void;
getText(imagePath: string): string;
}

@@ -40,0 +42,0 @@

@@ -19,4 +19,4 @@ // src/index.ts

},
GetMouseColor: {
args: [],
GetPixelColor: {
args: [FFIType.int, FFIType.int],
returns: FFIType.ptr

@@ -44,2 +44,6 @@ },

},
Drag: {
args: [FFIType.int, FFIType.int],
returns: FFIType.void
},
MoveSmooth: {

@@ -65,2 +69,6 @@ args: [FFIType.int, FFIType.int, FFIType.f64, FFIType.f64],

},
GetText: {
args: [FFIType.ptr],
returns: FFIType.ptr
},
FreeString: {

@@ -95,4 +103,4 @@ args: [FFIType.ptr],

}
getMousePositionColor() {
const ptr = symbols.GetMouseColor();
getPixelColor(x, y) {
const ptr = symbols.GetPixelColor(x, y);
return toString(ptr);

@@ -117,2 +125,5 @@ }

}
dragMouse(x, y) {
symbols.Drag(x, y);
}
moveMouseSmooth(x, y, low = 0, high = 0) {

@@ -136,2 +147,10 @@ symbols.MoveSmooth(x, y, high, low);

}
getText(imagePath) {
const ptr = symbols.GetText(toPtr(encode(imagePath)));
const { result, error } = JSON.parse(toString(ptr));
if (error !== "") {
throw new Error(error);
}
return result;
}
}

@@ -138,0 +157,0 @@ var src_default = Bunbot;

{
"name": "bunbot",
"version": "0.0.5",
"version": "0.0.6",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "types": "dist/index.d.ts",

@@ -60,4 +60,2 @@ # bunbot

const screenSize = bb.getScreenSize()
// Get mouse pos's color
const color = bb.getMousePositionColor()
// Get scale size

@@ -64,0 +62,0 @@ const scaleSize = bb.getScaleSize()

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