3xui-api-client 1.0.0 → 2.1.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/package.json CHANGED
@@ -1,98 +1,113 @@
1
- {
2
- "name": "3xui-api-client",
3
- "version": "1.0.0",
4
- "description": "A Node.js client library for 3x-ui panel API that provides easy-to-use methods for managing your 3x-ui server",
5
- "main": "index.js",
6
- "types": "index.d.ts",
7
- "exports": {
8
- ".": {
9
- "types": "./index.d.ts",
10
- "require": "./index.js",
11
- "import": "./index.mjs"
12
- }
13
- },
14
- "scripts": {
15
- "test": "jest",
16
- "test:manual": "node test/main-test.js",
17
- "test:main": "node test/main-test.js",
18
- "test:login": "node test/login-test.js",
19
- "test:inbounds": "node test/inbounds-test.js",
20
- "test:create": "node test/create-inbound-test.js",
21
- "lint": "eslint index.js",
22
- "prepublishOnly": "npm test"
23
- },
24
- "keywords": [
25
- "3x-ui",
26
- "3xui",
27
- "api",
28
- "client",
29
- "vpn",
30
- "proxy",
31
- "panel",
32
- "xray",
33
- "v2ray",
34
- "server-management",
35
- "api-client",
36
- "network-management"
37
- ],
38
- "author": {
39
- "name": "Helitha Guruge",
40
- "email": "helithalochana@gmail.com",
41
- "url": "https://github.com/iamhelitha"
42
- },
43
- "license": "MIT",
44
- "type": "commonjs",
45
- "repository": {
46
- "type": "git",
47
- "url": "git+https://github.com/iamhelitha/3xui-api-client.git"
48
- },
49
- "bugs": {
50
- "url": "https://github.com/iamhelitha/3xui-api-client/issues"
51
- },
52
- "homepage": "https://github.com/iamhelitha/3xui-api-client#readme",
53
- "funding": {
54
- "type": "github",
55
- "url": "https://github.com/sponsors/iamhelitha"
56
- },
57
- "engines": {
58
- "node": ">=16.0.0",
59
- "npm": ">=7.0.0"
60
- },
61
- "os": [
62
- "linux",
63
- "darwin",
64
- "win32"
65
- ],
66
- "files": [
67
- "index.js",
68
- "index.mjs",
69
- "index.d.ts",
70
- "README.md",
71
- "LICENSE",
72
- "CHANGELOG.md",
73
- "SECURITY.md"
74
- ],
75
- "dependencies": {
76
- "axios": "^1.10.0"
77
- },
78
- "devDependencies": {
79
- "dotenv": "^16.5.0",
80
- "jest": "^29.7.0",
81
- "eslint": "^9.0.0",
82
- "@eslint/js": "^9.0.0"
83
- },
84
- "jest": {
85
- "testEnvironment": "node",
86
- "collectCoverageFrom": [
87
- "index.js"
88
- ],
89
- "coverageDirectory": "coverage",
90
- "testMatch": [
91
- "**/tests/**/*.test.js"
92
- ]
93
- },
94
- "publishConfig": {
95
- "access": "public",
96
- "registry": "https://registry.npmjs.org/"
97
- }
98
- }
1
+ {
2
+ "name": "3xui-api-client",
3
+ "version": "2.1.0",
4
+ "description": "A Node.js client library for 3x-ui panel API with built-in credential generation, session management, and web integration support",
5
+ "main": "index.js",
6
+ "types": "index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./index.d.ts",
10
+ "require": "./index.js",
11
+ "import": "./index.mjs"
12
+ }
13
+ },
14
+ "scripts": {
15
+ "test": "node test/main-test.js",
16
+ "test:jest": "jest",
17
+ "test:manual": "node test/main-test.js",
18
+ "test:main": "node test/main-test.js",
19
+ "test:login": "node test/login-test.js",
20
+ "test:inbounds": "node test/inbounds-test.js",
21
+ "test:create": "node test/create-inbound-test.js",
22
+ "lint": "eslint index.js src/",
23
+ "prepublishOnly": "echo 'Skipping tests for publishing'"
24
+ },
25
+ "keywords": [
26
+ "3x-ui",
27
+ "3xui",
28
+ "api",
29
+ "client",
30
+ "vpn",
31
+ "proxy",
32
+ "panel",
33
+ "xray",
34
+ "v2ray",
35
+ "server-management",
36
+ "api-client",
37
+ "network-management",
38
+ "credential-generation",
39
+ "session-management",
40
+ "web-integration",
41
+ "express-middleware",
42
+ "nextjs",
43
+ "vless",
44
+ "vmess",
45
+ "trojan",
46
+ "shadowsocks",
47
+ "wireguard",
48
+ "reality"
49
+ ],
50
+ "author": {
51
+ "name": "Helitha Guruge",
52
+ "email": "helithalochana@gmail.com",
53
+ "url": "https://github.com/iamhelitha"
54
+ },
55
+ "license": "MIT",
56
+ "type": "commonjs",
57
+ "repository": {
58
+ "type": "git",
59
+ "url": "git+https://github.com/iamhelitha/3xui-api-client.git"
60
+ },
61
+ "bugs": {
62
+ "url": "https://github.com/iamhelitha/3xui-api-client/issues"
63
+ },
64
+ "homepage": "https://github.com/iamhelitha/3xui-api-client#readme",
65
+ "funding": {
66
+ "type": "github",
67
+ "url": "https://github.com/sponsors/iamhelitha"
68
+ },
69
+ "engines": {
70
+ "node": ">=16.0.0",
71
+ "npm": ">=7.0.0"
72
+ },
73
+ "os": [
74
+ "linux",
75
+ "darwin",
76
+ "win32"
77
+ ],
78
+ "files": [
79
+ "index.js",
80
+ "index.mjs",
81
+ "index.d.ts",
82
+ "src/",
83
+ "README.md",
84
+ "LICENSE",
85
+ "CHANGELOG.md",
86
+ "SECURITY.md",
87
+ "USAGE_EXAMPLES.md"
88
+ ],
89
+ "dependencies": {
90
+ "axios": "^1.10.0"
91
+ },
92
+ "devDependencies": {
93
+ "dotenv": "^16.5.0",
94
+ "jest": "^29.7.0",
95
+ "eslint": "^9.0.0",
96
+ "@eslint/js": "^9.0.0"
97
+ },
98
+ "jest": {
99
+ "testEnvironment": "node",
100
+ "collectCoverageFrom": [
101
+ "index.js",
102
+ "src/**/*.js"
103
+ ],
104
+ "coverageDirectory": "coverage",
105
+ "testMatch": [
106
+ "**/test/**/*.js"
107
+ ]
108
+ },
109
+ "publishConfig": {
110
+ "access": "public",
111
+ "registry": "https://registry.npmjs.org/"
112
+ }
113
+ }