n8n-nodes-nvk-browser 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +22 -0
- package/README.md +76 -0
- package/dist/nodes/PageInteraction/MoveAndClick/MoveAndClick.description.d.ts +2 -0
- package/dist/nodes/PageInteraction/MoveAndClick/MoveAndClick.description.js +132 -0
- package/dist/nodes/PageInteraction/MoveAndClick/MoveAndClick.node.d.ts +5 -0
- package/dist/nodes/PageInteraction/MoveAndClick/MoveAndClick.node.js +176 -0
- package/dist/nodes/PageInteraction/MoveAndClick/click.svg +5 -0
- package/dist/nodes/PageInteraction/MoveAndClick/code.svg +5 -0
- package/dist/nodes/PageInteraction/MoveAndClick/profile.svg +5 -0
- package/dist/nodes/PageInteraction/RunJavaScript/RunJavaScript.description.d.ts +2 -0
- package/dist/nodes/PageInteraction/RunJavaScript/RunJavaScript.description.js +62 -0
- package/dist/nodes/PageInteraction/RunJavaScript/RunJavaScript.node.d.ts +5 -0
- package/dist/nodes/PageInteraction/RunJavaScript/RunJavaScript.node.js +126 -0
- package/dist/nodes/PageInteraction/RunJavaScript/click.svg +5 -0
- package/dist/nodes/PageInteraction/RunJavaScript/code.svg +5 -0
- package/dist/nodes/PageInteraction/RunJavaScript/profile.svg +5 -0
- package/dist/nodes/ProfileManagement/CreateProfile/CreateProfile.description.d.ts +2 -0
- package/dist/nodes/ProfileManagement/CreateProfile/CreateProfile.description.js +61 -0
- package/dist/nodes/ProfileManagement/CreateProfile/CreateProfile.node.d.ts +5 -0
- package/dist/nodes/ProfileManagement/CreateProfile/CreateProfile.node.js +124 -0
- package/dist/nodes/ProfileManagement/CreateProfile/click.svg +5 -0
- package/dist/nodes/ProfileManagement/CreateProfile/code.svg +5 -0
- package/dist/nodes/ProfileManagement/CreateProfile/profile.svg +5 -0
- package/dist/nodes/ProfileManagement/DeleteProfile/DeleteProfile.description.d.ts +2 -0
- package/dist/nodes/ProfileManagement/DeleteProfile/DeleteProfile.description.js +19 -0
- package/dist/nodes/ProfileManagement/DeleteProfile/DeleteProfile.node.d.ts +5 -0
- package/dist/nodes/ProfileManagement/DeleteProfile/DeleteProfile.node.js +123 -0
- package/dist/nodes/ProfileManagement/DeleteProfile/click.svg +5 -0
- package/dist/nodes/ProfileManagement/DeleteProfile/code.svg +5 -0
- package/dist/nodes/ProfileManagement/DeleteProfile/profile.svg +5 -0
- package/dist/nodes/ProfileManagement/StartProfile/StartProfile.description.d.ts +2 -0
- package/dist/nodes/ProfileManagement/StartProfile/StartProfile.description.js +122 -0
- package/dist/nodes/ProfileManagement/StartProfile/StartProfile.node.d.ts +5 -0
- package/dist/nodes/ProfileManagement/StartProfile/StartProfile.node.js +140 -0
- package/dist/nodes/ProfileManagement/StartProfile/click.svg +5 -0
- package/dist/nodes/ProfileManagement/StartProfile/code.svg +5 -0
- package/dist/nodes/ProfileManagement/StartProfile/profile.svg +5 -0
- package/dist/nodes/ProfileManagement/StopProfile/StopProfile.description.d.ts +2 -0
- package/dist/nodes/ProfileManagement/StopProfile/StopProfile.description.js +19 -0
- package/dist/nodes/ProfileManagement/StopProfile/StopProfile.node.d.ts +5 -0
- package/dist/nodes/ProfileManagement/StopProfile/StopProfile.node.js +115 -0
- package/dist/nodes/ProfileManagement/StopProfile/click.svg +5 -0
- package/dist/nodes/ProfileManagement/StopProfile/code.svg +5 -0
- package/dist/nodes/ProfileManagement/StopProfile/profile.svg +5 -0
- package/dist/utils/BrowserManager.d.ts +18 -0
- package/dist/utils/BrowserManager.js +174 -0
- package/dist/utils/ExtensionHandler.d.ts +9 -0
- package/dist/utils/ExtensionHandler.js +86 -0
- package/dist/utils/ProfileManager.d.ts +14 -0
- package/dist/utils/ProfileManager.js +128 -0
- package/dist/utils/ProxyHandler.d.ts +5 -0
- package/dist/utils/ProxyHandler.js +50 -0
- package/dist/utils/types.d.ts +47 -0
- package/dist/utils/types.js +2 -0
- package/package.json +66 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export interface ProfileData {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
proxy?: string;
|
|
5
|
+
note?: string;
|
|
6
|
+
extensions?: string[];
|
|
7
|
+
createdAt: string;
|
|
8
|
+
updatedAt: string;
|
|
9
|
+
}
|
|
10
|
+
export interface BrowserInstance {
|
|
11
|
+
profileId: string;
|
|
12
|
+
process: any;
|
|
13
|
+
browser: any;
|
|
14
|
+
pages: Map<number, any>;
|
|
15
|
+
debugPort?: number;
|
|
16
|
+
}
|
|
17
|
+
export interface ProxyConfig {
|
|
18
|
+
type: 'http' | 'socks5';
|
|
19
|
+
host: string;
|
|
20
|
+
port: number;
|
|
21
|
+
username?: string;
|
|
22
|
+
password?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface WindowConfig {
|
|
25
|
+
scale?: number;
|
|
26
|
+
position?: {
|
|
27
|
+
x: number;
|
|
28
|
+
y: number;
|
|
29
|
+
};
|
|
30
|
+
size?: {
|
|
31
|
+
width: number;
|
|
32
|
+
height: number;
|
|
33
|
+
};
|
|
34
|
+
headless?: boolean;
|
|
35
|
+
}
|
|
36
|
+
export interface ClickOptions {
|
|
37
|
+
selector: string;
|
|
38
|
+
method: 'ghostcursor' | 'puppeteer' | 'javascript';
|
|
39
|
+
waitForClick?: number;
|
|
40
|
+
button?: 'left' | 'right' | 'middle';
|
|
41
|
+
clickCount?: number;
|
|
42
|
+
}
|
|
43
|
+
export interface JavaScriptOptions {
|
|
44
|
+
debugPort?: number;
|
|
45
|
+
tabIndex?: number;
|
|
46
|
+
code: string;
|
|
47
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "n8n-nodes-nvk-browser",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "n8n nodes for managing Chrome browser profiles and page interactions",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"n8n-community-node-package",
|
|
7
|
+
"n8n",
|
|
8
|
+
"chrome",
|
|
9
|
+
"browser",
|
|
10
|
+
"automation",
|
|
11
|
+
"puppeteer"
|
|
12
|
+
],
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"homepage": "",
|
|
15
|
+
"author": {
|
|
16
|
+
"name": "",
|
|
17
|
+
"email": ""
|
|
18
|
+
},
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": ""
|
|
22
|
+
},
|
|
23
|
+
"main": "index.js",
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "tsc && gulp build:icons",
|
|
26
|
+
"dev": "tsc --watch",
|
|
27
|
+
"format": "prettier nodes credentials --write",
|
|
28
|
+
"lint": "eslint nodes package.json",
|
|
29
|
+
"prepublishOnly": "npm run build && npm run lint -s"
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"dist"
|
|
33
|
+
],
|
|
34
|
+
"n8n": {
|
|
35
|
+
"n8nNodesApiVersion": 1,
|
|
36
|
+
"nodes": [
|
|
37
|
+
"dist/nodes/ProfileManagement/CreateProfile/CreateProfile.node.js",
|
|
38
|
+
"dist/nodes/ProfileManagement/DeleteProfile/DeleteProfile.node.js",
|
|
39
|
+
"dist/nodes/ProfileManagement/StartProfile/StartProfile.node.js",
|
|
40
|
+
"dist/nodes/ProfileManagement/StopProfile/StopProfile.node.js",
|
|
41
|
+
"dist/nodes/PageInteraction/MoveAndClick/MoveAndClick.node.js",
|
|
42
|
+
"dist/nodes/PageInteraction/RunJavaScript/RunJavaScript.node.js"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@types/node": "^18.15.0",
|
|
47
|
+
"@types/uuid": "^9.0.0",
|
|
48
|
+
"@typescript-eslint/eslint-plugin": "^5.57.0",
|
|
49
|
+
"@typescript-eslint/parser": "^5.57.0",
|
|
50
|
+
"eslint": "^8.57.0",
|
|
51
|
+
"eslint-plugin-n8n-nodes-base": "^1.11.0",
|
|
52
|
+
"gulp": "^4.0.2",
|
|
53
|
+
"n8n-workflow": "*",
|
|
54
|
+
"prettier": "^2.7.1",
|
|
55
|
+
"typescript": "~5.0.0"
|
|
56
|
+
},
|
|
57
|
+
"dependencies": {
|
|
58
|
+
"n8n-workflow": "*",
|
|
59
|
+
"puppeteer-core": "^21.0.0",
|
|
60
|
+
"uuid": "^9.0.0"
|
|
61
|
+
},
|
|
62
|
+
"peerDependencies": {
|
|
63
|
+
"n8n-workflow": "*"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|