Compare commits

...

247 Commits
ts ... main

Author SHA1 Message Date
d5f4abeeb0
Add list profiles 2023-07-27 09:13:44 +07:00
Sambo Chea
7d17ee38a4
Merge pull request #146 from CUBETIQ/dependabot/npm_and_yarn/types/node-20.4.5
Bump @types/node from 20.4.4 to 20.4.5
2023-07-26 08:33:01 +07:00
dependabot[bot]
d500dac31c
Bump @types/node from 20.4.4 to 20.4.5
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.4.4 to 20.4.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-25 20:53:00 +00:00
Sambo Chea
fbda263da2
Merge pull request #145 from CUBETIQ/dependabot/npm_and_yarn/types/node-20.4.4
Bump @types/node from 20.4.1 to 20.4.4
2023-07-25 21:25:46 +07:00
dependabot[bot]
3d94eae00b
Bump @types/node from 20.4.1 to 20.4.4
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.4.1 to 20.4.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-24 20:49:54 +00:00
56c278d84e
Updated 2023-07-14 08:32:27 +07:00
20932e3b12
Merge branch 'main' of https://github.com/CUBETIQ/http-tunnel-client 2023-07-14 08:31:29 +07:00
62db7f8145
Fixed the start port 2023-07-14 08:31:10 +07:00
Sambo Chea
10ce27ecac
Merge pull request #141 from CUBETIQ/dependabot/npm_and_yarn/types/express-4.17.17
Bump @types/express from 4.17.15 to 4.17.17
2023-07-12 18:20:29 +07:00
Sambo Chea
43c383c84b
Merge pull request #142 from CUBETIQ/dependabot/npm_and_yarn/axios-1.4.0
Bump axios from 1.2.2 to 1.4.0
2023-07-12 18:20:21 +07:00
Sambo Chea
d5724f5c46
Merge pull request #143 from CUBETIQ/dependabot/npm_and_yarn/socket.io-client-4.7.1
Bump socket.io-client from 4.5.4 to 4.7.1
2023-07-12 18:20:14 +07:00
dependabot[bot]
0a48c548db
Bump socket.io-client from 4.5.4 to 4.7.1
Bumps [socket.io-client](https://github.com/socketio/socket.io-client) from 4.5.4 to 4.7.1.
- [Release notes](https://github.com/socketio/socket.io-client/releases)
- [Changelog](https://github.com/socketio/socket.io-client/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/socket.io-client/compare/4.5.4...4.7.1)

---
updated-dependencies:
- dependency-name: socket.io-client
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-11 20:53:57 +00:00
dependabot[bot]
07b75a0298
Bump axios from 1.2.2 to 1.4.0
Bumps [axios](https://github.com/axios/axios) from 1.2.2 to 1.4.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/1.2.2...v1.4.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-11 20:53:49 +00:00
dependabot[bot]
d60c6fe57f
Bump @types/express from 4.17.15 to 4.17.17
Bumps [@types/express](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/express) from 4.17.15 to 4.17.17.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/express)

---
updated-dependencies:
- dependency-name: "@types/express"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-11 20:53:43 +00:00
775c5da038
Add support for host and port within address 2023-07-11 18:57:49 +07:00
87339a97d5
Add support for proxy with hlt client 2023-07-11 15:04:48 +07:00
0f115da19b
Removed 12 and add 18 and 20 2023-07-11 12:43:51 +07:00
656c8e0ef7
Fixed npm install before ci 2023-07-11 12:42:27 +07:00
98929a1e0f
Updated 2023-07-11 12:27:49 +07:00
967d06ed1e
Fixed import axios 2023-07-11 12:26:38 +07:00
a30c05e942
Updated the package 2023-07-11 12:24:20 +07:00
92312f465f
Updated packages 2023-07-11 12:23:23 +07:00
74fded00f2
Merge branch 'main' of https://github.com/CUBETIQ/http-tunnel-client 2023-07-11 12:22:32 +07:00
a1d7e01a7c
Updated code 2023-07-11 12:20:33 +07:00
9f61c8aebf
Add support client API and support proxy http/https and tcp 2023-07-11 12:20:03 +07:00
Sambo Chea
1cce221630
Merge pull request #139 from CUBETIQ/dependabot/npm_and_yarn/https-proxy-agent-7.0.1
Bump https-proxy-agent from 7.0.0 to 7.0.1
2023-07-11 09:07:44 +07:00
Sambo Chea
db3b669882
Merge pull request #140 from CUBETIQ/dependabot/npm_and_yarn/types/node-20.4.1
Bump @types/node from 20.4.0 to 20.4.1
2023-07-11 09:07:28 +07:00
dependabot[bot]
c07dd4d48a
Bump @types/node from 20.4.0 to 20.4.1
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.4.0 to 20.4.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-10 20:43:53 +00:00
dependabot[bot]
1aa300e92c
Bump https-proxy-agent from 7.0.0 to 7.0.1
Bumps [https-proxy-agent](https://github.com/TooTallNate/proxy-agents/tree/HEAD/packages/https-proxy-agent) from 7.0.0 to 7.0.1.
- [Release notes](https://github.com/TooTallNate/proxy-agents/releases)
- [Changelog](https://github.com/TooTallNate/proxy-agents/blob/main/packages/https-proxy-agent/CHANGELOG.md)
- [Commits](https://github.com/TooTallNate/proxy-agents/commits/https-proxy-agent@7.0.1/packages/https-proxy-agent)

---
updated-dependencies:
- dependency-name: https-proxy-agent
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-10 20:43:45 +00:00
Sambo Chea
c39997f583
Merge pull request #138 from CUBETIQ/dependabot/npm_and_yarn/types/node-20.4.0
Bump @types/node from 20.3.3 to 20.4.0
2023-07-09 17:02:51 +07:00
dependabot[bot]
cb8f18c9a5
Bump @types/node from 20.3.3 to 20.4.0
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.3.3 to 20.4.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-06 20:23:09 +00:00
Sambo Chea
825cc3e5ff
Merge pull request #137 from CUBETIQ/dependabot/npm_and_yarn/types/node-20.3.3
Bump @types/node from 20.3.2 to 20.3.3
2023-07-04 15:58:07 +07:00
dependabot[bot]
7c86f58c88
Bump @types/node from 20.3.2 to 20.3.3
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.3.2 to 20.3.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-03 20:11:47 +00:00
Sambo Chea
9a9f6d4e16
Merge pull request #134 from CUBETIQ/dependabot/npm_and_yarn/socket.io-client-4.7.1
Bump socket.io-client from 4.7.0 to 4.7.1
2023-06-30 08:39:12 +07:00
Sambo Chea
0644f565fc
Merge pull request #136 from CUBETIQ/dependabot/npm_and_yarn/typescript-5.1.6
Bump typescript from 5.1.3 to 5.1.6
2023-06-30 08:38:53 +07:00
dependabot[bot]
265e778663
Bump typescript from 5.1.3 to 5.1.6
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.1.3 to 5.1.6.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/commits)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-29 20:48:07 +00:00
dependabot[bot]
d03216ce63
Bump socket.io-client from 4.7.0 to 4.7.1
Bumps [socket.io-client](https://github.com/socketio/socket.io-client) from 4.7.0 to 4.7.1.
- [Release notes](https://github.com/socketio/socket.io-client/releases)
- [Changelog](https://github.com/socketio/socket.io-client/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/socket.io-client/compare/4.7.0...4.7.1)

---
updated-dependencies:
- dependency-name: socket.io-client
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-28 21:03:02 +00:00
Sambo Chea
3fd3048de1
Merge pull request #133 from CUBETIQ/dependabot/npm_and_yarn/types/node-20.3.2
Bump @types/node from 20.3.1 to 20.3.2
2023-06-27 14:16:22 +07:00
dependabot[bot]
1e86d7a57e
Bump @types/node from 20.3.1 to 20.3.2
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.3.1 to 20.3.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-26 20:09:51 +00:00
Sambo Chea
a5ff011d28
Merge pull request #132 from CUBETIQ/dependabot/npm_and_yarn/socket.io-client-4.7.0
Bump socket.io-client from 4.6.2 to 4.7.0
2023-06-23 19:55:20 +07:00
dependabot[bot]
07e11b67f2
Bump socket.io-client from 4.6.2 to 4.7.0
Bumps [socket.io-client](https://github.com/socketio/socket.io-client) from 4.6.2 to 4.7.0.
- [Release notes](https://github.com/socketio/socket.io-client/releases)
- [Changelog](https://github.com/socketio/socket.io-client/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/socket.io-client/compare/4.6.2...4.7.0)

---
updated-dependencies:
- dependency-name: socket.io-client
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-22 21:00:15 +00:00
Sambo Chea
19dea09433
Merge pull request #131 from CUBETIQ/dependabot/npm_and_yarn/commander-11.0.0
Bump commander from 10.0.1 to 11.0.0
2023-06-17 12:43:24 +07:00
dependabot[bot]
488b48a086
Bump commander from 10.0.1 to 11.0.0
Bumps [commander](https://github.com/tj/commander.js) from 10.0.1 to 11.0.0.
- [Release notes](https://github.com/tj/commander.js/releases)
- [Changelog](https://github.com/tj/commander.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tj/commander.js/compare/v10.0.1...v11.0.0)

---
updated-dependencies:
- dependency-name: commander
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-16 21:01:13 +00:00
Sambo Chea
303dac4ead
Merge pull request #130 from CUBETIQ/dependabot/npm_and_yarn/types/node-20.3.1
Bump @types/node from 20.2.5 to 20.3.1
2023-06-14 19:26:58 +07:00
dependabot[bot]
5a3e66b089
Bump @types/node from 20.2.5 to 20.3.1
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.2.5 to 20.3.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-13 21:00:47 +00:00
Sambo Chea
05889acf5d
Merge pull request #128 from CUBETIQ/dependabot/npm_and_yarn/typescript-5.1.3
Bump typescript from 5.0.4 to 5.1.3
2023-06-02 09:38:46 +07:00
dependabot[bot]
858c21ccdb
Bump typescript from 5.0.4 to 5.1.3
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.0.4 to 5.1.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v5.0.4...v5.1.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-01 21:03:15 +00:00
Sambo Chea
43c05a14f5
Merge pull request #127 from CUBETIQ/dependabot/npm_and_yarn/socket.io-client-4.6.2
Bump socket.io-client from 4.6.1 to 4.6.2
2023-06-01 08:08:11 +07:00
dependabot[bot]
e46ac94fcc
Bump socket.io-client from 4.6.1 to 4.6.2
Bumps [socket.io-client](https://github.com/socketio/socket.io-client) from 4.6.1 to 4.6.2.
- [Release notes](https://github.com/socketio/socket.io-client/releases)
- [Changelog](https://github.com/socketio/socket.io-client/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/socket.io-client/compare/4.6.1...4.6.2)

---
updated-dependencies:
- dependency-name: socket.io-client
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-31 21:00:36 +00:00
Sambo Chea
f65f6c2c23
Merge pull request #124 from CUBETIQ/dependabot/npm_and_yarn/https-proxy-agent-7.0.0
Bump https-proxy-agent from 6.2.0 to 7.0.0
2023-05-29 16:47:18 +07:00
Sambo Chea
10e5d62a63
Merge pull request #126 from CUBETIQ/dependabot/npm_and_yarn/types/node-20.2.5
Bump @types/node from 20.2.3 to 20.2.5
2023-05-29 16:47:08 +07:00
dependabot[bot]
566c768cdc
Bump @types/node from 20.2.3 to 20.2.5
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.2.3 to 20.2.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-26 21:01:21 +00:00
dependabot[bot]
4080c8c3f0
Bump https-proxy-agent from 6.2.0 to 7.0.0
Bumps [https-proxy-agent](https://github.com/TooTallNate/proxy-agents/tree/HEAD/packages/https-proxy-agent) from 6.2.0 to 7.0.0.
- [Release notes](https://github.com/TooTallNate/proxy-agents/releases)
- [Changelog](https://github.com/TooTallNate/proxy-agents/blob/main/packages/https-proxy-agent/CHANGELOG.md)
- [Commits](https://github.com/TooTallNate/proxy-agents/commits/https-proxy-agent@7.0.0/packages/https-proxy-agent)

---
updated-dependencies:
- dependency-name: https-proxy-agent
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-25 20:07:05 +00:00
Sambo Chea
f0780a408c
Merge pull request #122 from CUBETIQ/dependabot/npm_and_yarn/types/node-20.2.3
Bump @types/node from 20.2.1 to 20.2.3
2023-05-23 11:02:08 +07:00
dependabot[bot]
4570c20d1d
Bump @types/node from 20.2.1 to 20.2.3
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.2.1 to 20.2.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-22 21:04:44 +00:00
Sambo Chea
b08259b047
Merge pull request #121 from CUBETIQ/dependabot/npm_and_yarn/types/node-20.2.1
Bump @types/node from 20.1.7 to 20.2.1
2023-05-20 16:04:57 +07:00
Sambo Chea
4621840c38
Merge pull request #120 from CUBETIQ/dependabot/npm_and_yarn/https-proxy-agent-6.2.0
Bump https-proxy-agent from 6.1.0 to 6.2.0
2023-05-20 16:04:48 +07:00
dependabot[bot]
c9ef13bb7f
Bump @types/node from 20.1.7 to 20.2.1
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.1.7 to 20.2.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-18 21:01:23 +00:00
dependabot[bot]
eb7bcc7eaf
Bump https-proxy-agent from 6.1.0 to 6.2.0
Bumps [https-proxy-agent](https://github.com/TooTallNate/proxy-agents/tree/HEAD/packages/https-proxy-agent) from 6.1.0 to 6.2.0.
- [Release notes](https://github.com/TooTallNate/proxy-agents/releases)
- [Changelog](https://github.com/TooTallNate/proxy-agents/blob/main/packages/https-proxy-agent/CHANGELOG.md)
- [Commits](https://github.com/TooTallNate/proxy-agents/commits/https-proxy-agent@6.2.0/packages/https-proxy-agent)

---
updated-dependencies:
- dependency-name: https-proxy-agent
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-18 21:01:04 +00:00
Sambo Chea
746ac54e13
Merge pull request #119 from CUBETIQ/dependabot/npm_and_yarn/types/node-20.1.7
Bump @types/node from 20.1.4 to 20.1.7
2023-05-17 08:33:37 +07:00
dependabot[bot]
378e2e1673
Bump @types/node from 20.1.4 to 20.1.7
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.1.4 to 20.1.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-16 21:01:13 +00:00
Sambo Chea
2fadb7fa87
Merge pull request #118 from CUBETIQ/dependabot/npm_and_yarn/types/node-20.1.4
Bump @types/node from 20.1.3 to 20.1.4
2023-05-16 23:17:07 +07:00
dependabot[bot]
260150e380
Bump @types/node from 20.1.3 to 20.1.4
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.1.3 to 20.1.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-15 21:04:39 +00:00
Sambo Chea
c589591fff
Merge pull request #117 from CUBETIQ/dependabot/npm_and_yarn/types/node-20.1.3
Bump @types/node from 20.1.1 to 20.1.3
2023-05-14 17:26:12 +07:00
dependabot[bot]
4712b7067b
Bump @types/node from 20.1.1 to 20.1.3
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.1.1 to 20.1.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-11 21:01:30 +00:00
Sambo Chea
b7f9ac1c43
Merge pull request #114 from CUBETIQ/dependabot/npm_and_yarn/https-proxy-agent-6.1.0
Bump https-proxy-agent from 6.0.0 to 6.1.0
2023-05-09 20:07:34 +07:00
Sambo Chea
9a53420382
Merge pull request #115 from CUBETIQ/dependabot/npm_and_yarn/types/node-20.1.1
Bump @types/node from 20.0.0 to 20.1.1
2023-05-09 20:07:22 +07:00
dependabot[bot]
791a19121e
Bump @types/node from 20.0.0 to 20.1.1
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.0.0 to 20.1.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-08 21:04:00 +00:00
dependabot[bot]
0befacfc6e
Bump https-proxy-agent from 6.0.0 to 6.1.0
Bumps [https-proxy-agent](https://github.com/TooTallNate/proxy-agents/tree/HEAD/packages/https-proxy-agent) from 6.0.0 to 6.1.0.
- [Release notes](https://github.com/TooTallNate/proxy-agents/releases)
- [Changelog](https://github.com/TooTallNate/proxy-agents/blob/main/packages/https-proxy-agent/CHANGELOG.md)
- [Commits](https://github.com/TooTallNate/proxy-agents/commits/https-proxy-agent@6.1.0/packages/https-proxy-agent)

---
updated-dependencies:
- dependency-name: https-proxy-agent
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-08 21:03:46 +00:00
Sambo Chea
c60e5aaec6
Merge pull request #113 from CUBETIQ/dependabot/npm_and_yarn/types/node-20.0.0
Bump @types/node from 18.16.3 to 20.0.0
2023-05-06 20:47:32 +07:00
dependabot[bot]
4e4eda3e7d
Bump @types/node from 18.16.3 to 20.0.0
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.16.3 to 20.0.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-05 21:00:47 +00:00
Sambo Chea
dc26f0e8fb
Merge pull request #112 from CUBETIQ/dependabot/npm_and_yarn/https-proxy-agent-6.0.0
Bump https-proxy-agent from 5.0.1 to 6.0.0
2023-05-05 16:13:36 +07:00
dependabot[bot]
40bd8e11b7
Bump https-proxy-agent from 5.0.1 to 6.0.0
Bumps [https-proxy-agent](https://github.com/TooTallNate/proxy-agents/tree/HEAD/packages/https-proxy-agent) from 5.0.1 to 6.0.0.
- [Release notes](https://github.com/TooTallNate/proxy-agents/releases)
- [Changelog](https://github.com/TooTallNate/proxy-agents/blob/main/packages/https-proxy-agent/CHANGELOG.md)
- [Commits](https://github.com/TooTallNate/proxy-agents/commits/HEAD/packages/https-proxy-agent)

---
updated-dependencies:
- dependency-name: https-proxy-agent
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-04 21:00:48 +00:00
Sambo Chea
7fb294dba6
Merge pull request #111 from CUBETIQ/dependabot/npm_and_yarn/types/node-18.16.3
Bump @types/node from 18.16.2 to 18.16.3
2023-05-02 08:53:16 +07:00
dependabot[bot]
7a764ecbb9
Bump @types/node from 18.16.2 to 18.16.3
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.16.2 to 18.16.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-01 21:06:33 +00:00
Sambo Chea
528e4ed678
Merge pull request #110 from CUBETIQ/dependabot/npm_and_yarn/types/node-18.16.2
Bump @types/node from 18.16.0 to 18.16.2
2023-04-29 09:05:34 +07:00
Sambo Chea
19f98343e5
Merge pull request #109 from CUBETIQ/dependabot/npm_and_yarn/axios-1.4.0
Bump axios from 1.3.6 to 1.4.0
2023-04-29 09:05:25 +07:00
dependabot[bot]
987c7c4ac3
Bump @types/node from 18.16.0 to 18.16.2
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.16.0 to 18.16.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-28 21:01:07 +00:00
dependabot[bot]
ec27f032a8
Bump axios from 1.3.6 to 1.4.0
Bumps [axios](https://github.com/axios/axios) from 1.3.6 to 1.4.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.3.6...v1.4.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-28 21:00:50 +00:00
Sambo Chea
ee8a5ef1d1
Merge pull request #98 from CUBETIQ/renovate/typescript-5.x-lockfile
Update dependency typescript to v5.0.4
2023-04-26 08:59:09 +07:00
Sambo Chea
d0233ef8fa
Merge pull request #100 from CUBETIQ/renovate/commander-10.x-lockfile
Update dependency commander to v10.0.1
2023-04-26 08:58:49 +07:00
Sambo Chea
1c03199973
Merge pull request #103 from CUBETIQ/renovate/axios-1.x-lockfile
Update dependency axios to v1.3.6
2023-04-26 08:58:31 +07:00
Sambo Chea
b5a0bb6344
Merge pull request #107 from CUBETIQ/dependabot/npm_and_yarn/types/node-18.16.0
Bump @types/node from 18.15.11 to 18.16.0
2023-04-26 08:58:05 +07:00
dependabot[bot]
b628a6f812
Bump @types/node from 18.15.11 to 18.16.0
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.15.11 to 18.16.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-25 21:00:54 +00:00
renovate[bot]
28d998e361
Update dependency axios to v1.3.6 2023-04-19 21:16:45 +00:00
renovate[bot]
14042edb7f
Update dependency commander to v10.0.1 2023-04-15 05:55:30 +00:00
renovate[bot]
c85b388cb7
Update dependency typescript to v5.0.4 2023-04-07 18:36:43 +00:00
Sambo Chea
96da8ae1b7
Merge pull request #97 from CUBETIQ/dependabot/npm_and_yarn/axios-1.3.5
Bump axios from 1.3.4 to 1.3.5
2023-04-06 14:39:39 +07:00
Sambo Chea
5d28e1c949
Merge pull request #96 from CUBETIQ/renovate/axios-1.x-lockfile
Update dependency axios to v1.3.5
2023-04-06 14:39:32 +07:00
dependabot[bot]
53a6095cad
Bump axios from 1.3.4 to 1.3.5
Bumps [axios](https://github.com/axios/axios) from 1.3.4 to 1.3.5.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.3.4...v1.3.5)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-05 21:02:11 +00:00
renovate[bot]
44e9e01180
Update dependency axios to v1.3.5 2023-04-05 20:01:58 +00:00
Sambo Chea
6fc25fd080
Merge pull request #94 from CUBETIQ/dependabot/npm_and_yarn/typescript-5.0.3
Bump typescript from 5.0.2 to 5.0.3
2023-03-31 08:56:40 +07:00
Sambo Chea
e27db703a6
Merge pull request #95 from CUBETIQ/renovate/typescript-5.x-lockfile
Update dependency typescript to v5.0.3
2023-03-31 08:56:33 +07:00
renovate[bot]
eef52f4e58
Update dependency typescript to v5.0.3 2023-03-30 22:57:21 +00:00
dependabot[bot]
8968992b43
Bump typescript from 5.0.2 to 5.0.3
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.0.2 to 5.0.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/commits)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-30 21:01:14 +00:00
Sambo Chea
80c6800253
Merge pull request #93 from CUBETIQ/renovate/node-18.x-lockfile
Update dependency @types/node to v18.15.11
2023-03-29 09:29:59 +07:00
renovate[bot]
243824564a
Update dependency @types/node to v18.15.11 2023-03-29 01:53:23 +00:00
Sambo Chea
f714c0e0d2
Merge pull request #92 from CUBETIQ/renovate/node-18.x-lockfile
Update dependency @types/node to v18.15.10
2023-03-26 13:03:42 +07:00
renovate[bot]
962976a194
Update dependency @types/node to v18.15.10 2023-03-26 01:23:27 +00:00
Sambo Chea
629928c926
Merge pull request #91 from CUBETIQ/renovate/node-18.x-lockfile
Update dependency @types/node to v18.15.8
2023-03-25 09:07:40 +07:00
renovate[bot]
1850bf870d
Update dependency @types/node to v18.15.8 2023-03-25 00:54:42 +00:00
Sambo Chea
fb053bde16
Merge pull request #90 from CUBETIQ/renovate/node-18.x-lockfile
Update dependency @types/node to v18.15.7
2023-03-24 20:10:03 +07:00
renovate[bot]
8df565c222
Update dependency @types/node to v18.15.7 2023-03-24 10:09:38 +00:00
Sambo Chea
50965ee594
Merge pull request #89 from CUBETIQ/renovate/node-18.x-lockfile
Update dependency @types/node to v18.15.6
2023-03-24 08:06:04 +07:00
renovate[bot]
eedbcce77a
Update dependency @types/node to v18.15.6 2023-03-24 00:26:43 +00:00
Sambo Chea
814d94f8f6
Merge pull request #88 from CUBETIQ/dependabot/npm_and_yarn/types/node-18.15.5
Bump @types/node from 18.15.3 to 18.15.5
2023-03-22 10:14:59 +07:00
Sambo Chea
ffb004f7cb
Merge pull request #87 from CUBETIQ/renovate/node-18.x-lockfile
Update dependency @types/node to v18.15.5
2023-03-22 10:14:44 +07:00
dependabot[bot]
fc369fbd94
Bump @types/node from 18.15.3 to 18.15.5
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.15.3 to 18.15.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-21 21:03:29 +00:00
renovate[bot]
882859b2c5
Update dependency @types/node to v18.15.5 2023-03-21 00:24:11 +00:00
Sambo Chea
ac55743129
Merge pull request #85 from CUBETIQ/renovate/typescript-5.x
Update dependency typescript to v5
2023-03-17 00:16:57 +07:00
renovate[bot]
bab60efd10
Update dependency typescript to v5 2023-03-16 17:10:43 +00:00
Sambo Chea
b191f9fd96
Merge pull request #84 from CUBETIQ/dependabot/npm_and_yarn/types/node-18.15.3
Bump @types/node from 18.15.2 to 18.15.3
2023-03-15 09:02:31 +07:00
dependabot[bot]
4daaebb71f
Bump @types/node from 18.15.2 to 18.15.3
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.15.2 to 18.15.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-14 21:02:36 +00:00
Sambo Chea
db673b20f0
Merge pull request #83 from CUBETIQ/dependabot/npm_and_yarn/types/node-18.15.2
Bump @types/node from 18.15.0 to 18.15.2
2023-03-14 09:22:28 +07:00
dependabot[bot]
96f72024ff
Bump @types/node from 18.15.0 to 18.15.2
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.15.0 to 18.15.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-13 21:24:26 +00:00
Sambo Chea
d79386fd3b
Merge pull request #82 from CUBETIQ/dependabot/npm_and_yarn/types/node-18.15.0
Bump @types/node from 18.14.6 to 18.15.0
2023-03-10 20:28:01 +07:00
dependabot[bot]
418c1b8149
Bump @types/node from 18.14.6 to 18.15.0
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.14.6 to 18.15.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-09 20:28:45 +00:00
Sambo Chea
1585f920b3
Merge pull request #81 from CUBETIQ/dependabot/npm_and_yarn/types/node-18.14.6
Bump @types/node from 18.14.4 to 18.14.6
2023-03-04 08:23:53 +07:00
dependabot[bot]
74c1b461a1
Bump @types/node from 18.14.4 to 18.14.6
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.14.4 to 18.14.6.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-03 21:09:34 +00:00
Sambo Chea
3e3840a6f5
Merge pull request #80 from CUBETIQ/dependabot/npm_and_yarn/types/node-18.14.4
Bump @types/node from 18.14.2 to 18.14.4
2023-03-03 08:54:57 +07:00
dependabot[bot]
f42397c0a6
Bump @types/node from 18.14.2 to 18.14.4
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.14.2 to 18.14.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-02 21:03:46 +00:00
Sambo Chea
1fa82cbb05
Merge pull request #79 from CUBETIQ/dependabot/npm_and_yarn/types/node-18.14.2
Bump @types/node from 18.14.1 to 18.14.2
2023-02-28 11:36:34 +07:00
dependabot[bot]
f2bf0b64e8
Bump @types/node from 18.14.1 to 18.14.2
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.14.1 to 18.14.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-27 20:50:30 +00:00
Sambo Chea
31e137db6c
Merge pull request #77 from CUBETIQ/dependabot/npm_and_yarn/axios-1.3.4
Bump axios from 1.3.3 to 1.3.4
2023-02-24 08:53:52 +07:00
Sambo Chea
83b408d233
Merge pull request #78 from CUBETIQ/dependabot/npm_and_yarn/types/node-18.14.1
Bump @types/node from 18.14.0 to 18.14.1
2023-02-24 08:53:37 +07:00
dependabot[bot]
d2e9ec5e21
Bump @types/node from 18.14.0 to 18.14.1
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.14.0 to 18.14.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-23 21:04:03 +00:00
dependabot[bot]
1d6bc41d62
Bump axios from 1.3.3 to 1.3.4
Bumps [axios](https://github.com/axios/axios) from 1.3.3 to 1.3.4.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.3.3...v1.3.4)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-23 21:03:39 +00:00
Sambo Chea
6b32c06dcf
Merge pull request #75 from CUBETIQ/dependabot/npm_and_yarn/socket.io-client-4.6.1
Bump socket.io-client from 4.6.0 to 4.6.1
2023-02-21 09:16:34 +07:00
dependabot[bot]
91e144bcc0
Bump socket.io-client from 4.6.0 to 4.6.1
Bumps [socket.io-client](https://github.com/socketio/socket.io-client) from 4.6.0 to 4.6.1.
- [Release notes](https://github.com/socketio/socket.io-client/releases)
- [Changelog](https://github.com/socketio/socket.io-client/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/socket.io-client/compare/4.6.0...4.6.1)

---
updated-dependencies:
- dependency-name: socket.io-client
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-20 21:11:37 +00:00
Sambo Chea
200ec2477e
Merge pull request #74 from CUBETIQ/dependabot/npm_and_yarn/types/node-18.14.0
Bump @types/node from 18.13.0 to 18.14.0
2023-02-18 09:48:28 +07:00
dependabot[bot]
36954101c0
Bump @types/node from 18.13.0 to 18.14.0
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.13.0 to 18.14.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-17 21:06:17 +00:00
Sambo Chea
d043ebdeff
Merge pull request #73 from CUBETIQ/dependabot/npm_and_yarn/axios-1.3.3
Bump axios from 1.3.2 to 1.3.3
2023-02-14 10:23:44 +07:00
dependabot[bot]
50dbe48149
Bump axios from 1.3.2 to 1.3.3
Bumps [axios](https://github.com/axios/axios) from 1.3.2 to 1.3.3.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.3.2...v1.3.3)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-13 21:10:47 +00:00
Sambo Chea
d8ab247d2c
Merge pull request #71 from CUBETIQ/dependabot/npm_and_yarn/socket.io-client-4.6.0
Bump socket.io-client from 4.5.4 to 4.6.0
2023-02-08 20:32:14 +07:00
Sambo Chea
1ff1d13f2a
Merge pull request #72 from CUBETIQ/dependabot/npm_and_yarn/types/node-18.13.0
Bump @types/node from 18.11.19 to 18.13.0
2023-02-08 20:32:07 +07:00
dependabot[bot]
189874d9f5
Bump @types/node from 18.11.19 to 18.13.0
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.11.19 to 18.13.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-07 20:09:05 +00:00
dependabot[bot]
d23557f71b
Bump socket.io-client from 4.5.4 to 4.6.0
Bumps [socket.io-client](https://github.com/socketio/socket.io-client) from 4.5.4 to 4.6.0.
- [Release notes](https://github.com/socketio/socket.io-client/releases)
- [Changelog](https://github.com/socketio/socket.io-client/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/socket.io-client/compare/4.5.4...4.6.0)

---
updated-dependencies:
- dependency-name: socket.io-client
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-07 20:08:44 +00:00
Sambo Chea
801213c5ae
Merge pull request #70 from CUBETIQ/dependabot/npm_and_yarn/types/node-18.11.19
Bump @types/node from 18.11.18 to 18.11.19
2023-02-07 09:01:36 +07:00
dependabot[bot]
b663d979f5
Bump @types/node from 18.11.18 to 18.11.19
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.11.18 to 18.11.19.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-06 20:17:08 +00:00
Sambo Chea
5ee8c71afb
Merge pull request #69 from CUBETIQ/dependabot/npm_and_yarn/axios-1.3.2
Bump axios from 1.3.0 to 1.3.2
2023-02-04 09:28:31 +07:00
dependabot[bot]
b220899d42
Bump axios from 1.3.0 to 1.3.2
Bumps [axios](https://github.com/axios/axios) from 1.3.0 to 1.3.2.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.3.0...v1.3.2)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-03 20:08:26 +00:00
Sambo Chea
9db8de64df
Merge pull request #66 from CUBETIQ/dependabot/npm_and_yarn/typescript-4.9.5
Bump typescript from 4.9.4 to 4.9.5
2023-02-01 10:54:48 +07:00
Sambo Chea
30a61a8069
Merge pull request #67 from CUBETIQ/dependabot/npm_and_yarn/axios-1.3.0
Bump axios from 1.2.6 to 1.3.0
2023-02-01 10:54:40 +07:00
dependabot[bot]
5be16bb4ca
Bump axios from 1.2.6 to 1.3.0
Bumps [axios](https://github.com/axios/axios) from 1.2.6 to 1.3.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.2.6...v1.3.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-31 20:08:37 +00:00
dependabot[bot]
3cd4f12e4e
Bump typescript from 4.9.4 to 4.9.5
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.9.4 to 4.9.5.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.9.4...v4.9.5)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-31 20:08:22 +00:00
Sambo Chea
0793ae7d27
Merge pull request #65 from CUBETIQ/dependabot/npm_and_yarn/axios-1.2.6
Bump axios from 1.2.5 to 1.2.6
2023-01-31 16:49:46 +07:00
dependabot[bot]
cec0ec844f
Bump axios from 1.2.5 to 1.2.6
Bumps [axios](https://github.com/axios/axios) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.2.5...v1.2.6)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-30 20:16:48 +00:00
Sambo Chea
f7cab88087
Merge pull request #64 from CUBETIQ/dependabot/npm_and_yarn/axios-1.2.5
Bump axios from 1.2.4 to 1.2.5
2023-01-27 07:01:39 +07:00
dependabot[bot]
0e619a172e
Bump axios from 1.2.4 to 1.2.5
Bumps [axios](https://github.com/axios/axios) from 1.2.4 to 1.2.5.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.2.4...v1.2.5)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-26 20:11:28 +00:00
Sambo Chea
f9d0e706ee
Merge pull request #63 from CUBETIQ/dependabot/npm_and_yarn/axios-1.2.4
Bump axios from 1.2.3 to 1.2.4
2023-01-25 09:59:35 +07:00
dependabot[bot]
d89e754d7c
Bump axios from 1.2.3 to 1.2.4
Bumps [axios](https://github.com/axios/axios) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.2.3...v1.2.4)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-24 20:09:10 +00:00
Sambo Chea
542d5a54aa
Merge pull request #62 from CUBETIQ/dependabot/npm_and_yarn/axios-1.2.3
Bump axios from 1.2.2 to 1.2.3
2023-01-19 15:41:41 +07:00
dependabot[bot]
cbcc925818
Bump axios from 1.2.2 to 1.2.3
Bumps [axios](https://github.com/axios/axios) from 1.2.2 to 1.2.3.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/1.2.2...v1.2.3)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-18 20:09:05 +00:00
Sambo Chea
a636069a3f
Merge pull request #54 from CUBETIQ/renovate/configure
Configure Renovate
2023-01-17 09:29:15 +07:00
Sambo Chea
c053c5d88a
Merge pull request #56 from CUBETIQ/dependabot/npm_and_yarn/commander-10.0.0
Bump commander from 9.4.1 to 10.0.0
2023-01-17 09:28:59 +07:00
dependabot[bot]
ae14c7c5e7
Bump commander from 9.4.1 to 10.0.0
Bumps [commander](https://github.com/tj/commander.js) from 9.4.1 to 10.0.0.
- [Release notes](https://github.com/tj/commander.js/releases)
- [Changelog](https://github.com/tj/commander.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tj/commander.js/compare/v9.4.1...v10.0.0)

---
updated-dependencies:
- dependency-name: commander
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-16 20:14:09 +00:00
renovate[bot]
7c22abc048
Add renovate.json 2023-01-05 16:55:23 +00:00
afbf3097f1
Add api 2023-01-04 11:52:20 +07:00
Sambo Chea
5198ab8bd4
Merge pull request #52 from CUBETIQ/dependabot/npm_and_yarn/axios-1.2.2
Bump axios from 1.2.1 to 1.2.2
2022-12-30 09:53:02 +07:00
dependabot[bot]
78c21fc78d
Bump axios from 1.2.1 to 1.2.2
Bumps [axios](https://github.com/axios/axios) from 1.2.1 to 1.2.2.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.2.1...1.2.2)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-29 20:10:22 +00:00
Sambo Chea
8b85f9e03d
Merge pull request #51 from CUBETIQ/dependabot/npm_and_yarn/types/node-18.11.18
Bump @types/node from 18.11.17 to 18.11.18
2022-12-27 08:51:31 +07:00
dependabot[bot]
88fb4b58d2
Bump @types/node from 18.11.17 to 18.11.18
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.11.17 to 18.11.18.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-26 20:10:27 +00:00
fe38f051ff
Merge branch 'main' of https://git.cubetiqs.com/cubetiq/http-tunnel-client 2022-12-22 15:25:51 +07:00
Sambo Chea
3d8f95676c
Merge pull request #50 from CUBETIQ/dependabot/npm_and_yarn/types/node-18.11.17
Bump @types/node from 18.11.15 to 18.11.17
2022-12-22 11:33:28 +07:00
dependabot[bot]
3ebaf8a37a
Bump @types/node from 18.11.15 to 18.11.17
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.11.15 to 18.11.17.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-19 20:13:37 +00:00
97c94ad816 Update 'src/lib.ts' 2022-12-19 10:56:51 +07:00
Sambo Chea
bfe93f2fa4
Merge pull request #49 from CUBETIQ/dependabot/npm_and_yarn/types/node-18.11.15
Bump @types/node from 18.11.14 to 18.11.15
2022-12-15 08:37:38 +07:00
dependabot[bot]
badc201e74
Bump @types/node from 18.11.14 to 18.11.15
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.11.14 to 18.11.15.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-14 20:10:06 +00:00
Sambo Chea
13f60b0f40
Merge pull request #48 from CUBETIQ/dependabot/npm_and_yarn/types/node-18.11.14
Bump @types/node from 18.11.12 to 18.11.14
2022-12-14 13:44:55 +07:00
dependabot[bot]
e8eea4aaa6
Bump @types/node from 18.11.12 to 18.11.14
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.11.12 to 18.11.14.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-13 20:08:05 +00:00
Sambo Chea
2a8b7a2bba
Merge pull request #45 from CUBETIQ/dependabot/npm_and_yarn/typescript-4.9.4
Bump typescript from 4.9.3 to 4.9.4
2022-12-09 09:47:55 +07:00
Sambo Chea
2f35f428cf
Merge pull request #46 from CUBETIQ/dependabot/npm_and_yarn/types/node-18.11.12
Bump @types/node from 18.11.11 to 18.11.12
2022-12-09 09:47:42 +07:00
dependabot[bot]
6140301f3e
Bump @types/node from 18.11.11 to 18.11.12
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.11.11 to 18.11.12.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-08 20:29:42 +00:00
dependabot[bot]
1468c97f38
Bump typescript from 4.9.3 to 4.9.4
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.9.3 to 4.9.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.9.3...v4.9.4)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-08 20:29:22 +00:00
Sambo Chea
34b0f96ecb
Merge pull request #43 from CUBETIQ/dependabot/npm_and_yarn/axios-1.2.1
Bump axios from 1.2.0 to 1.2.1
2022-12-06 08:38:10 +07:00
Sambo Chea
8df3a8076d
Merge pull request #44 from CUBETIQ/dependabot/npm_and_yarn/types/node-18.11.11
Bump @types/node from 18.11.10 to 18.11.11
2022-12-06 08:32:14 +07:00
dependabot[bot]
b3a3edaaec
Bump @types/node from 18.11.10 to 18.11.11
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.11.10 to 18.11.11.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-05 20:13:50 +00:00
dependabot[bot]
a6ad917ef5
Bump axios from 1.2.0 to 1.2.1
Bumps [axios](https://github.com/axios/axios) from 1.2.0 to 1.2.1.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.2.0...v1.2.1)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-05 20:13:39 +00:00
Sambo Chea
a80bc3d234
Merge pull request #42 from CUBETIQ/dependabot/npm_and_yarn/types/node-18.11.10
Bump @types/node from 18.11.9 to 18.11.10
2022-12-02 10:45:15 +07:00
dependabot[bot]
8993c83b67
Bump @types/node from 18.11.9 to 18.11.10
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.11.9 to 18.11.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-01 20:12:11 +00:00
5b1a7a68c5
Updated changelog 2022-11-30 12:19:05 +07:00
bb20b3b90a
Fixed response data in axios request with accept-encoding to identity 2022-11-30 12:17:30 +07:00
65e3cb9797
Add force server url override 2022-11-30 11:50:48 +07:00
d54b69ce80
Update generate failed and set status code 2022-11-30 11:12:40 +07:00
Sambo Chea
2996a6056e
Merge pull request #39 from CUBETIQ/dependabot/npm_and_yarn/axios-1.2.0
Bump axios from 1.1.3 to 1.2.0
2022-11-27 19:52:52 +07:00
Sambo Chea
c8508a4030
Merge pull request #40 from CUBETIQ/dependabot/npm_and_yarn/socket.io-client-4.5.4
Bump socket.io-client from 4.5.3 to 4.5.4
2022-11-27 19:52:42 +07:00
dependabot[bot]
68a753383d
Bump socket.io-client from 4.5.3 to 4.5.4
Bumps [socket.io-client](https://github.com/socketio/socket.io-client) from 4.5.3 to 4.5.4.
- [Release notes](https://github.com/socketio/socket.io-client/releases)
- [Changelog](https://github.com/socketio/socket.io-client/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/socket.io-client/compare/4.5.3...4.5.4)

---
updated-dependencies:
- dependency-name: socket.io-client
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-23 20:22:58 +00:00
dependabot[bot]
eb111712ba
Bump axios from 1.1.3 to 1.2.0
Bumps [axios](https://github.com/axios/axios) from 1.1.3 to 1.2.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.1.3...v1.2.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-23 20:22:53 +00:00
Sambo Chea
30d309d1f3
Merge pull request #38 from CUBETIQ/dependabot/npm_and_yarn/typescript-4.9.3
Bump typescript from 4.8.4 to 4.9.3
2022-11-16 16:10:22 +07:00
dependabot[bot]
26a1dacf28
Bump typescript from 4.8.4 to 4.9.3
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.8.4 to 4.9.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/commits)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-15 20:08:06 +00:00
71432d7194
Add log type when error and warn 2022-11-15 18:59:04 +07:00
775b7b287b
Add force regenerate token 2022-11-11 09:29:20 +07:00
cdfe4c4fc8
Merge branch 'main' of https://github.com/CUBETIQ/http-tunnel-client into main 2022-11-11 09:26:30 +07:00
6d1a2fdc39
Fixed axios and generate token 2022-11-11 09:25:29 +07:00
Sambo Chea
0aa31874f2
Merge pull request #37 from CUBETIQ/dependabot/npm_and_yarn/types/node-18.11.9
Bump @types/node from 18.11.5 to 18.11.9
2022-11-03 18:22:49 +07:00
dependabot[bot]
c8b8717d7a
Bump @types/node from 18.11.5 to 18.11.9
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.11.5 to 18.11.9.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-01 20:52:57 +00:00
Sambo Chea
81a414e503
Merge pull request #34 from CUBETIQ/dependabot/npm_and_yarn/types/node-18.11.5
Bump @types/node from 18.11.2 to 18.11.5
2022-10-26 20:55:51 +07:00
dependabot[bot]
21e33bc179
Bump @types/node from 18.11.2 to 18.11.5
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.11.2 to 18.11.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-25 20:52:22 +00:00
42928444aa
Fixed some bugs and updated docs 2022-10-20 10:18:08 +07:00
Sambo Chea
e787b70da9
Merge pull request #29 from CUBETIQ/dependabot/npm_and_yarn/axios-1.1.3
Bump axios from 1.1.2 to 1.1.3
2022-10-20 09:09:34 +07:00
Sambo Chea
f64128dc6a
Merge pull request #30 from CUBETIQ/dependabot/npm_and_yarn/socket.io-client-4.5.3
Bump socket.io-client from 4.5.2 to 4.5.3
2022-10-20 09:09:19 +07:00
Sambo Chea
767153d599
Merge pull request #31 from CUBETIQ/dependabot/npm_and_yarn/types/node-18.11.2
Bump @types/node from 18.11.0 to 18.11.2
2022-10-20 09:09:07 +07:00
dependabot[bot]
962c5f117b
Bump @types/node from 18.11.0 to 18.11.2
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.11.0 to 18.11.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-19 20:59:58 +00:00
dependabot[bot]
c30e9926ba
Bump socket.io-client from 4.5.2 to 4.5.3
Bumps [socket.io-client](https://github.com/socketio/socket.io-client) from 4.5.2 to 4.5.3.
- [Release notes](https://github.com/socketio/socket.io-client/releases)
- [Changelog](https://github.com/socketio/socket.io-client/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/socket.io-client/compare/4.5.2...4.5.3)

---
updated-dependencies:
- dependency-name: socket.io-client
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-18 20:39:46 +00:00
dependabot[bot]
df2aa05266
Bump axios from 1.1.2 to 1.1.3
Bumps [axios](https://github.com/axios/axios) from 1.1.2 to 1.1.3.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.1.2...v1.1.3)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-18 20:39:33 +00:00
Sambo Chea
5291076424
Merge pull request #28 from CUBETIQ/dependabot/npm_and_yarn/types/node-18.11.0
Bump @types/node from 18.8.4 to 18.11.0
2022-10-15 16:16:06 +07:00
dependabot[bot]
1b0e09faa8
Bump @types/node from 18.8.4 to 18.11.0
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.8.4 to 18.11.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-14 20:34:06 +00:00
Sambo Chea
981bb34cbb
Merge pull request #26 from CUBETIQ/dependabot/npm_and_yarn/types/node-18.8.4
Bump @types/node from 18.8.3 to 18.8.4
2022-10-12 19:57:32 +07:00
dependabot[bot]
a776bfa53e
Bump @types/node from 18.8.3 to 18.8.4
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.8.3 to 18.8.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-11 20:39:03 +00:00
Sambo Chea
28e1b9c408
Merge pull request #23 from CUBETIQ/dependabot/npm_and_yarn/types/node-18.8.3
Bump @types/node from 18.8.2 to 18.8.3
2022-10-08 23:18:58 +07:00
Sambo Chea
c7b47a66ca
Merge pull request #25 from CUBETIQ/dependabot/npm_and_yarn/axios-1.1.2
Bump axios from 1.0.0 to 1.1.2
2022-10-08 23:18:49 +07:00
dependabot[bot]
127d179f5c
Bump axios from 1.0.0 to 1.1.2
Bumps [axios](https://github.com/axios/axios) from 1.0.0 to 1.1.2.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.0.0...v1.1.2)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-07 20:39:19 +00:00
dependabot[bot]
2c06e60f59
Bump @types/node from 18.8.2 to 18.8.3
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.8.2 to 18.8.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-06 21:01:04 +00:00
Sambo Chea
d58a803976
Merge pull request #21 from CUBETIQ/dependabot/npm_and_yarn/types/node-18.8.2
Bump @types/node from 18.7.23 to 18.8.2
2022-10-06 09:45:19 +07:00
Sambo Chea
767c6d6ef4
Merge pull request #22 from CUBETIQ/dependabot/npm_and_yarn/axios-1.0.0
Bump axios from 0.27.2 to 1.0.0
2022-10-06 09:45:10 +07:00
dependabot[bot]
3085d1c4f2
Bump axios from 0.27.2 to 1.0.0
Bumps [axios](https://github.com/axios/axios) from 0.27.2 to 1.0.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.27.2...v1.0.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-04 20:46:45 +00:00
dependabot[bot]
4a1605f0e2
Bump @types/node from 18.7.23 to 18.8.2
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.7.23 to 18.8.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-04 20:46:39 +00:00
Sambo Chea
65ee3a08d0
Merge pull request #19 from CUBETIQ/dependabot/npm_and_yarn/commander-9.4.1
Bump commander from 9.4.0 to 9.4.1
2022-10-01 11:05:40 +07:00
dependabot[bot]
e9c6531633
Bump commander from 9.4.0 to 9.4.1
Bumps [commander](https://github.com/tj/commander.js) from 9.4.0 to 9.4.1.
- [Release notes](https://github.com/tj/commander.js/releases)
- [Changelog](https://github.com/tj/commander.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tj/commander.js/compare/v9.4.0...v9.4.1)

---
updated-dependencies:
- dependency-name: commander
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-30 21:36:14 +00:00
Sambo Chea
787d054030
Merge pull request #18 from CUBETIQ/dependabot/npm_and_yarn/typescript-4.8.4
Bump typescript from 4.8.3 to 4.8.4
2022-09-28 19:32:57 +07:00
Sambo Chea
045cb9d644
Merge pull request #17 from CUBETIQ/dependabot/npm_and_yarn/types/node-18.7.23
Bump @types/node from 18.7.18 to 18.7.23
2022-09-28 15:09:50 +07:00
dependabot[bot]
e6b7154ae9
Bump typescript from 4.8.3 to 4.8.4
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.8.3 to 4.8.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/commits)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-27 21:17:03 +00:00
dependabot[bot]
263aca4379
Bump @types/node from 18.7.18 to 18.7.23
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.7.18 to 18.7.23.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-27 21:16:51 +00:00
Sambo Chea
5a3a8ad93d
Merge pull request #15 from CUBETIQ/dependabot/npm_and_yarn/types/node-18.7.18
Bump @types/node from 18.7.16 to 18.7.18
2022-09-15 19:22:32 +07:00
dependabot[bot]
9bc0f27a78
Bump @types/node from 18.7.16 to 18.7.18
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.7.16 to 18.7.18.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-14 20:35:27 +00:00
Sambo Chea
d401d868ca
Create node.js.yml 2022-09-09 08:30:23 +07:00
Sambo Chea
a3ba7c74fa
Merge pull request #13 from CUBETIQ/dependabot/npm_and_yarn/typescript-4.8.3
Bump typescript from 4.8.2 to 4.8.3
2022-09-09 08:21:16 +07:00
dependabot[bot]
2253bdcbd2
Bump typescript from 4.8.2 to 4.8.3
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.8.2 to 4.8.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.8.2...v4.8.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-08 20:43:36 +00:00
Sambo Chea
412b4783c9
Merge pull request #10 from CUBETIQ/dependabot/npm_and_yarn/socket.io-client-4.5.2
Bump socket.io-client from 4.5.1 to 4.5.2
2022-09-08 22:27:39 +07:00
Sambo Chea
ce840e35ff
Merge pull request #12 from CUBETIQ/dependabot/npm_and_yarn/types/node-18.7.16
Bump @types/node from 18.7.14 to 18.7.16
2022-09-08 22:27:28 +07:00
dependabot[bot]
e9b9f43537
Bump @types/node from 18.7.14 to 18.7.16
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.7.14 to 18.7.16.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-07 20:38:52 +00:00
dependabot[bot]
476e703a14
Bump socket.io-client from 4.5.1 to 4.5.2
Bumps [socket.io-client](https://github.com/socketio/socket.io-client) from 4.5.1 to 4.5.2.
- [Release notes](https://github.com/socketio/socket.io-client/releases)
- [Changelog](https://github.com/socketio/socket.io-client/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/socket.io-client/compare/4.5.1...4.5.2)

---
updated-dependencies:
- dependency-name: socket.io-client
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-05 20:38:33 +00:00
Sambo Chea
dd98be71ce
Merge pull request #9 from CUBETIQ/dependabot/npm_and_yarn/types/node-18.7.14
Bump @types/node from 18.7.13 to 18.7.14
2022-08-31 15:55:57 +07:00
dependabot[bot]
52729124c0
Bump @types/node from 18.7.13 to 18.7.14
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.7.13 to 18.7.14.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-30 21:15:03 +00:00
Sambo Chea
96b087aad4
Merge pull request #8 from CUBETIQ/dependabot/npm_and_yarn/typescript-4.8.2
Bump typescript from 4.7.4 to 4.8.2
2022-08-27 18:10:19 +07:00
dependabot[bot]
1ebdd97107
Bump typescript from 4.7.4 to 4.8.2
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.7.4 to 4.8.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.7.4...v4.8.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-26 20:34:59 +00:00
Sambo Chea
0e8f3af0ae
Merge pull request #7 from CUBETIQ/dependabot/npm_and_yarn/types/node-18.7.13
Bump @types/node from 18.7.11 to 18.7.13
2022-08-26 20:08:11 +07:00
dependabot[bot]
750a392fa8
Bump @types/node from 18.7.11 to 18.7.13
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.7.11 to 18.7.13.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-25 20:40:06 +00:00
Sambo Chea
16b6493d6a
Merge pull request #6 from CUBETIQ/dependabot/npm_and_yarn/types/node-18.7.11
Bump @types/node from 18.7.10 to 18.7.11
2022-08-24 10:02:36 +07:00
dependabot[bot]
5993af0b84
Bump @types/node from 18.7.10 to 18.7.11
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.7.10 to 18.7.11.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-23 20:40:59 +00:00
Sambo Chea
716dfd8a25
Merge pull request #5 from CUBETIQ/dependabot/npm_and_yarn/types/node-18.7.10
Bump @types/node from 18.7.7 to 18.7.10
2022-08-23 09:12:26 +07:00
dependabot[bot]
0aac5004ec
Bump @types/node from 18.7.7 to 18.7.10
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.7.7 to 18.7.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-22 20:51:06 +00:00
Sambo Chea
796c6e6159
Merge pull request #4 from CUBETIQ/dependabot/npm_and_yarn/types/node-18.7.7
Bump @types/node from 18.7.6 to 18.7.7
2022-08-20 11:44:53 +07:00
dependabot[bot]
1d4321df09
Bump @types/node from 18.7.6 to 18.7.7
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.7.6 to 18.7.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-19 20:43:58 +00:00
Sambo Chea
7f2f18a4f9
Merge pull request #3 from CUBETIQ/dependabot/npm_and_yarn/types/node-18.7.6
Bump @types/node from 18.0.3 to 18.7.6
2022-08-17 09:33:05 +07:00
dependabot[bot]
9e5c2aa616
Bump @types/node from 18.0.3 to 18.7.6
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.0.3 to 18.7.6.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-16 20:45:26 +00:00
Sambo Chea
4fbcf1f82c
Merge pull request #1 from CUBETIQ/ts
Reflecting from JavaScript to TypeScript
2022-08-16 22:34:46 +07:00
21 changed files with 2454 additions and 1305 deletions

30
.github/workflows/node.js.yml vendored Normal file
View File

@ -0,0 +1,30 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm i && npm ci
- run: npm run build --if-present

View File

@ -1,2 +1,3 @@
src/
.github/
.github/
test/

52
CHANGELOG.md Normal file
View File

@ -0,0 +1,52 @@
### 27/07/2023 (1.0.10)
- Add list profiles
### 14/07/2023 (1.0.9)
- Fixed the start with port unable to start
### 11/07/2023 (1.0.8)
- Support tunnel with host with port
* Prev
```
hlt start 8080 -h 192.168.1.1
```
- New
```
hlt start 192.168.1.1:8080
```
### 11/07/2023 (1.0.7)
- Support Client API
- Support Proxy (HTTP/HTTPS) and TCP
- Improvements and Bugs fixed
- Support auto proxy with hlt client
### 30/11/2022
- Fixed response data in axios request with accept-encoding to identity
- Allow to force change server url for init
### 11/11/2022
- Fixed axios is not a function
- Add generate token with data (clientId, apiKey) to server
- Add generate token with options (-f | --force) to regenerate and override
### 20/10/2022
- Upgraded packages and fixed some bugs
### Initialized
- HTTP tunnel between server and client via https link
- Custom profile (using `-p myprofile`)
- Suffix url (using `-s`)
- Config (get/set token,access,server,client,key configs)

View File

@ -9,59 +9,71 @@ npm i -g @cubetiq/hlt
OR
npx @cubetiq/hlt
npx -y @cubetiq/hlt
```
### Usage
### Usages
- Initialize Client and Start (Quick)
- If installed to global (bin), please using cli
```shell
hlt [command] [options]
```
- Initialize Client and Start (Quick)
```shell
# Initialize a client and token for connect (default's profile)
npx @cubetiq/hlt init
npx -y @cubetiq/hlt init
# Start port 3000 to remote server
npx @cubetiq/hlt start 3000
npx -y @cubetiq/hlt start 3000
```
# Start port 3000 with suffix to remote server
npx -y @cubetiq/hlt start 3000 -s mytest
````
- Initialize Client and Start (Quick with custom's profile)
```shell
# Initialize a client and token for connect (mytest's profile)
npx @cubetiq/hlt init -p mytest
npx -y @cubetiq/hlt init -p mytest
# Start port 3000 to remote server (mytest's profile)
npx @cubetiq/hlt start 3000 -p mytest
```
npx -y @cubetiq/hlt start 3000 -p mytest
````
### Custom Config
- Generate Client Key
- Generate Client Key
```shell
npx @cubetiq/hlt config client new
npx -y @cubetiq/hlt config client new
```
- Set Client Token (Required, contact to vendor)
- Set Client Token (Required, contact to vendor)
```shell
npx @cubetiq/hlt config token $TOKEN
npx -y @cubetiq/hlt config token $TOKEN
```
- Custom Server
- Set Custom Server
```shell
npx @cubetiq/hlt config server https://lt.ctdn.net
npx -y @cubetiq/hlt config server https://lt.ctdn.net
```
- Start Client
- Start Client
```shell
npx @cubetiq/hlt start $YOUR_PORT
npx -y @cubetiq/hlt start $YOUR_PORT
```
### Contributors
- Original [web-tunnel](https://github.com/web-tunnel/lite-http-tunnel-client)
- Sambo Chea <sombochea@cubetiqs.com>
- Original [web-tunnel](https://github.com/web-tunnel/lite-http-tunnel-client)
- Sambo Chea <sombochea@cubetiqs.com>

View File

@ -1,3 +1,3 @@
#!/usr/bin/env node
require('../dist/client');
require('../dist/cli');

2082
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,14 +1,16 @@
{
"name": "@cubetiq/hlt",
"version": "0.1.0",
"version": "0.1.10",
"description": "A lightweight http tunnel client using nodejs and socket.io client",
"main": "dist/client.js",
"main": "dist/cli.js",
"bin": {
"hlt": "bin/hlt"
},
"scripts": {
"start": "ts-node-dev --respawn --transpile-only src/client.ts",
"build": "tsc"
"start": "ts-node-dev --respawn --transpile-only src/cli.ts",
"test": "ts-node-dev --respawn --transpile-only test/test.ts",
"local": "ts-node-dev --respawn --transpile-only src/cli.ts start -p local",
"build": "rimraf dist && tsc"
},
"repository": {
"type": "git",
@ -21,17 +23,21 @@
"author": "Sambo Chea <sombochea@cubetiqs.com>",
"license": "ISC",
"dependencies": {
"axios": "^0.27.2",
"commander": "^9.3.0",
"https-proxy-agent": "^5.0.1",
"axios": "^1.2.0",
"commander": "^11.0.0",
"express": "^4.18.2",
"http-proxy-middleware": "^2.0.6",
"https-proxy-agent": "^7.0.0",
"socket.io-client": "^4.5.1"
},
"publishConfig": {
"access": "public"
},
"devDependencies": {
"@types/node": "^18.0.3",
"@types/express": "^4.17.15",
"@types/node": "^20.0.0",
"rimraf": "^5.0.1",
"ts-node-dev": "^2.0.0",
"typescript": "^4.7.4"
"typescript": "^5.0.0"
}
}

6
renovate.json Normal file
View File

@ -0,0 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
]
}

399
src/api.ts Normal file
View File

@ -0,0 +1,399 @@
import * as fs from "fs";
import * as http from "http";
import { HttpsProxyAgent } from "https-proxy-agent";
import * as os from "os";
import * as path from "path";
import { Socket, io } from "socket.io-client";
import { TunnelRequest, TunnelResponse } from "./lib";
import { addPrefixOnHttpSchema, generateUUID } from "./util";
import { PROFILE_DEFAULT, PROFILE_PATH, SERVER_DEFAULT_URL, TOKEN_FREE } from "./constant";
import { ClientOptions, Options } from "./interface";
import { getTokenFree } from './sdk';
interface Client {
getEndpoint(): string | null;
stop(): void;
}
class HttpTunnelClient implements Client {
// create socket instance
private socket: Socket | null = null;
private keepAliveTimer: NodeJS.Timeout | null = null;
private keepAliveTimeout: number | null = null;
private endpoint: string | null = null;
private keepAlive() {
if (!this.socket) {
return;
}
this.keepAliveTimer = setTimeout(() => {
if (this.socket && this.socket.connected) {
this.socket.send("ping");
}
this.keepAlive();
}, this.keepAliveTimeout || 5000);
}
// Init the Client for config file
public initConfigFile = async (options: any) => {
const profile = options.profile || PROFILE_DEFAULT;
const configDir = path.resolve(os.homedir(), PROFILE_PATH);
if (!fs.existsSync(configDir)) {
fs.mkdirSync(configDir);
console.log(`config file ${configDir} was created`);
}
let config: any = {};
const configFilename = `${profile}.json`;
const configFilePath = path.resolve(configDir, configFilename);
if (fs.existsSync(configFilePath)) {
config = JSON.parse(fs.readFileSync(configFilePath, "utf8"));
}
// Force reset config server from client init
if (!config.server || options.force) {
config.server = options.server || SERVER_DEFAULT_URL;
}
if (!config.token && options.token) {
config.token = options.token;
}
if (!config.access) {
config.access = options.access || TOKEN_FREE;
}
if (!config.clientId) {
config.clientId = options.client || generateUUID();
}
if (!config.apiKey && options.key) {
config.apiKey = options.key;
}
let errorCode = 0;
if (!config.token || options.force) {
console.log(`Generating token from server: ${config.server}`);
await getTokenFree(config.server, {
timestamp: (new Date().getTime()),
clientId: config.clientId,
apiKey: config.apiKey,
})
.then((resp: any) => {
if (resp.data?.token) {
console.log("Token generated successfully!");
config.token = resp.data?.token;
} else {
errorCode = 1;
console.error("Generate free token failed, return with null or empty from server!", resp);
return;
}
})
.catch((err: any) => {
errorCode = 1;
console.error("cannot get free token from server", err);
return;
});
}
if (errorCode === 0) {
fs.writeFileSync(configFilePath, JSON.stringify(config, null, 2));
console.log(`initialized config saved successfully to: ${configFilePath}`);
}
};
// Start Client
public initStartClient = async (options: Options) => {
// Please change this if your domain goes wrong here
// Current style using sub-domain: https://{{clientId}}-tunnel.myhostingdomain.com
// (Original server: https://tunnel.myhostingdomain.com)
const profile = options.profile || PROFILE_DEFAULT;
const clientId = `${options.apiKey || options.clientId || generateUUID()}`;
const clientIdSub =
profile === PROFILE_DEFAULT ? `${clientId}-` : `${clientId}-${profile}-`;
const clientEndpoint = (
options.suffix ? `${clientIdSub}${options.suffix}-` : clientIdSub
)
.toLowerCase()
.trim();
const serverUrl = addPrefixOnHttpSchema(options.server || SERVER_DEFAULT_URL, clientEndpoint);
this.endpoint = serverUrl
// extra options for socket to identify the client (authentication and options of tunnel)
const defaultParams = {
apiKey: options.apiKey,
clientId: options.clientId,
profile: profile,
clientIdSub: clientIdSub,
clientEndpoint: clientEndpoint,
serverUrl: serverUrl,
access: options.access,
keep_connection: options.keep_connection || true,
};
// extra info for notify about the running of the tunnel (it's private info, other platfom cannot access this)
// this using for internal only (don't worry about this)
const osInfo = {
hostname: os.hostname(),
platform: os.platform(),
arch: os.arch(),
release: os.release(),
timestamp: new Date().getTime(),
};
const initParams: any = {
path: "/$cubetiq_http_tunnel",
transports: ["websocket"],
auth: {
token: options.token,
...defaultParams,
},
headers: {
...defaultParams,
os: osInfo,
},
// reconnection: true,
};
const http_proxy = process.env.https_proxy || process.env.http_proxy;
if (http_proxy) {
initParams.agent = new HttpsProxyAgent(http_proxy);
}
// Connecting to socket server and agent here...
console.log(`client connecting to server: ${serverUrl}`);
this.socket = io(serverUrl, initParams);
const clientLogPrefix = `client: ${clientId} on profile: ${profile}`;
this.socket.on("connect", () => {
if (this.socket!.connected) {
console.log(`${clientLogPrefix} is connected to server successfully!`);
}
});
this.socket.on("connect_error", (e) => {
console.error(
`${clientLogPrefix} connect error:`,
(e && e.message) || "something wrong"
);
if (e && e.message && e.message.startsWith("[40")) {
process.exit(1);
}
});
this.socket.on("disconnect", (reason) => {
console.warn(`${clientLogPrefix} disconnected: ${reason}!`);
});
this.socket.on("disconnect_exit", (reason) => {
console.warn(`${clientLogPrefix} disconnected and exited ${reason}!`);
this.socket?.disconnect();
process.exit(1);
});
this.socket.on("request", (requestId, request) => {
const isWebSocket = request.headers.upgrade === "websocket";
console.log(`${isWebSocket ? "WS" : request.method}: `, request.path);
request.port = options.port;
request.hostname = options.host;
if (options.origin) {
request.headers.host = options.origin;
}
const tunnelRequest = new TunnelRequest(this.socket!, requestId);
const localReq = http.request(request);
tunnelRequest.pipe(localReq);
const onTunnelRequestError = (e: any) => {
console.error("tunnel request error: ", e);
tunnelRequest.off("end", onTunnelRequestEnd);
localReq.destroy(e);
};
const onTunnelRequestEnd = () => {
tunnelRequest.off("error", onTunnelRequestError);
};
tunnelRequest.once("error", onTunnelRequestError);
tunnelRequest.once("end", onTunnelRequestEnd);
const onLocalResponse = (localRes: any) => {
localReq.off("error", onLocalError);
if (isWebSocket && localRes.upgrade) {
return;
}
const tunnelResponse = new TunnelResponse(this.socket!, requestId);
tunnelResponse.writeHead(
localRes.statusCode,
localRes.statusMessage,
localRes.headers,
localRes.httpVersion
);
localRes.pipe(tunnelResponse);
};
const onLocalError = (error: any) => {
console.error("local error:", error);
localReq.off("response", onLocalResponse);
this.socket?.emit("request-error", requestId, error && error.message);
tunnelRequest.destroy(error);
};
const onUpgrade = (localRes: any, localSocket: any, localHead: any) => {
// localSocket.once('error', onTunnelRequestError);
if (localHead && localHead.length) localSocket.unshift(localHead);
const tunnelResponse = new TunnelResponse(this.socket!, requestId, true);
tunnelResponse.writeHead(null, null, localRes.headers);
localSocket.pipe(tunnelResponse).pipe(localSocket);
};
localReq.once("error", onLocalError);
localReq.once("response", onLocalResponse);
if (isWebSocket) {
localReq.on("upgrade", onUpgrade);
}
});
// reconnect manually
// const tryReconnect = () => {
// setTimeout(() => {
// socket!.io.open((err) => {
// if (err) {
// tryReconnect();
// }
// });
// }, 2000);
// };
// socket.io.on("close", tryReconnect);
this.keepAlive();
};
public start = async (clientOptions: Partial<ClientOptions>): Promise<Client | undefined> => {
const { port, address, options = {} } = clientOptions;
// Load host and port check
if (!port) {
if (!address) {
console.error("port or address is required!");
return;
}
const [host, portStr] = address.split(":");
if (!host || !portStr) {
console.error("invalid address!");
return;
}
options.host = host;
try {
options.port = parseInt(portStr);
} catch (e) {
console.error("invalid port!");
return;
}
} else {
if (typeof address !== "number" && address && address.includes(":")) {
const [host, portStr] = address.split(":");
if (host) {
options.host = host;
}
if (portStr) {
try {
options.port = parseInt(portStr);
console.log(`default port: ${port} will be ignored and override by port: ${options.port}`);
} catch (e) {
options.port = port;
}
}
} else {
options.port = port;
console.log(`default port: ${port} will be forwared`);
}
}
const configDir = path.resolve(os.homedir(), PROFILE_PATH);
if (!fs.existsSync(configDir)) {
fs.mkdirSync(configDir);
}
let config: any = {};
const configFilename = `${options.profile || PROFILE_DEFAULT}.json`;
const configFilePath = path.resolve(configDir, configFilename);
if (fs.existsSync(configFilePath)) {
config = JSON.parse(fs.readFileSync(configFilePath, "utf8"));
}
if (!config.server) {
config.server = SERVER_DEFAULT_URL;
}
if (!config.token) {
console.info(`please init or set token for ${config.server}`);
return;
}
if (!config.clientId) {
if (!config.apiKey) {
console.info(`please init or create a client for ${config.server}`);
} else {
config.clientId = config.apiKey;
}
return;
}
// options.port = port;
options.token = config.token;
options.access = config.access;
options.server = config.server;
options.clientId = config.clientId;
options.apiKey = options.key || config.apiKey;
if (options.suffix === "port" || options.suffix === "true") {
options.suffix = `${port}`;
} else if (options.suffix === "false") {
options.suffix = undefined;
} else if (options.suffix === "gen" || options.suffix === "uuid") {
options.suffix = generateUUID();
}
await this.initStartClient(options);
return this;
};
public stop = () => {
if (this.socket) {
this.socket.disconnect();
this.socket.close();
this.socket = null;
this.keepAliveTimer && clearInterval(this.keepAliveTimer);
console.log("client stopped from server:", this.endpoint);
}
};
public getEndpoint = () => {
return this.endpoint;
}
}
export const client = new HttpTunnelClient();
export const initConfigFileClient = client.initConfigFile;
export const startClient = client.start;
export const stopClient = client.stop;

339
src/cli.ts Normal file
View File

@ -0,0 +1,339 @@
import { Argument, InvalidArgumentError, program } from "commander";
import * as fs from "fs";
import * as os from "os";
import * as path from "path";
import { initConfigFileClient, startClient } from "./api";
import { PROFILE_DEFAULT, PROFILE_PATH, SERVER_DEFAULT_URL, TOKEN_FREE } from "./constant";
import { listProfile } from "./manage";
import { createProxyServer } from "./proxy";
import { createProxyServer as createProxyTCPServer } from "./proxy_tcp";
import { getTokenFree } from './sdk';
import { generateUUID, isValidHost, isValidUrl } from "./util";
const packageInfo = require("../package.json");
program
.name("hlt")
.description(
"CUBETIQ HTTP tunnel client with free access for local tunneling"
)
.version(`v${packageInfo.version}`);
// init
program
.command("init")
.description("generate a new client and token with free access")
.option("-s, --server <string>", "setting server url", SERVER_DEFAULT_URL)
.option(
"-t, --token <string>",
"setting token (default generate FREE access token)",
""
)
.option("-a, --access <string>", "setting token access type", TOKEN_FREE)
.option("-c, --client <string>", "setting client (auto generate uuid)")
.option(
"-k, --key <string>",
"setting client api key for authentication access"
)
.option("-p, --profile <string>", "setting profile name", PROFILE_DEFAULT)
.option("-f, --force", "force to generate new client and token", false)
.action(async (options) => {
initConfigFileClient(options);
});
// start
program
.command("start")
.description("start a connection with specific port")
.argument("<port> | <address>", "local server port number or address", (value) => {
if (isValidHost(value)) {
return value;
}
const port = parseInt(value, 10);
if (isNaN(port)) {
throw new InvalidArgumentError("Not a number or valid address.");
}
return port;
})
.option("-s, --suffix <string>", "suffix for client name")
.option(
"-K, --keep_connection <boolean>",
"keep connection for client and old connection will be closed (override connection)",
true
)
.option(
"-k --key <string>",
"setting client api key for authentication access"
)
.option("-a, --access <string>", "access type (FREE)", TOKEN_FREE)
.option("-p, --profile <string>", "profile name", PROFILE_DEFAULT)
.option("-h, --host <string>", "local host value", "localhost")
.option("-o, --origin <string>", "change request origin")
.action((portOrAddress, options) => {
startClient({
port: portOrAddress,
address: portOrAddress,
options,
})
});
// config
program
.command("config")
.description("create and update config file for connection")
.addArgument(
new Argument("<type>", "config type").choices([
"access",
"token",
"server",
"client",
"key",
])
)
.argument("<value>", "config value")
.option("-p, --profile <string>", "setting profile name", PROFILE_DEFAULT)
.action(async (type, value, options) => {
if (!type) {
console.error("type config is required!");
return;
}
const configDir = path.resolve(os.homedir(), PROFILE_PATH);
if (!fs.existsSync(configDir)) {
fs.mkdirSync(configDir);
console.log(`config file ${configDir} was created`);
}
let config: any = {};
const configFilename = `${options.profile}.json`;
const configFilePath = path.resolve(configDir, configFilename);
if (fs.existsSync(configFilePath)) {
config = JSON.parse(fs.readFileSync(configFilePath, "utf8"));
}
if (!config.server) {
config.server = SERVER_DEFAULT_URL;
}
// Error Code status
let errorCode = 0;
if (type === "token" || type === "jwt") {
config.token = value;
} else if (type === "server") {
config.server = value;
} else if (type === "clientId" || type === "client") {
if (!value || value === "" || value === "new") {
config.clientId = generateUUID();
} else {
config.clientId = value;
}
console.log(`client: ${config.clientId} was set to config`);
} else if (type === "apiKey" || type === "key") {
config.apiKey = value;
} else if (type === "access") {
config.access = (value && value.toUpperCase().trim()) || TOKEN_FREE;
// FREE
if (config.access === TOKEN_FREE) {
await getTokenFree(config.server)
.then((resp: any) => {
if (resp.data?.token) {
config.token = resp.data?.token;
} else {
errorCode = 1;
console.error("Generate free token failed, return with null or empty from server!", resp);
return;
}
})
.catch((err: any) => {
errorCode = 1;
console.error("cannot get free token from server", err);
return;
});
}
}
if (!config.clientId && config.apiKey) {
config.clientId = config.apiKey;
}
if (errorCode === 0) {
fs.writeFileSync(configFilePath, JSON.stringify(config, null, 2));
console.log(`${type} config saved successfully to: ${configFilePath}`);
}
});
// config
program
.command("config-get")
.description("get type from config file")
.addArgument(
new Argument("<type>", "config type").choices([
"access",
"token",
"server",
"client",
"key",
])
)
.option("-p, --profile <string>", "setting profile name", PROFILE_DEFAULT)
.action(async (type, options) => {
if (!type) {
console.error("type config is required!");
return;
}
const configDir = path.resolve(os.homedir(), PROFILE_PATH);
if (!fs.existsSync(configDir)) {
console.log(`config file ${configDir} not found`);
return;
}
let config: any = {};
const configFilename = `${options.profile}.json`;
const configFilePath = path.resolve(configDir, configFilename);
if (fs.existsSync(configFilePath)) {
config = JSON.parse(fs.readFileSync(configFilePath, "utf8"));
} else {
console.log(`config file ${configFilePath} not found`);
return;
}
if (type === "token" || type === "jwt") {
console.log(config.token);
} else if (type === "server") {
console.log(config.server);
} else if (type === "clientId" || type === "client") {
console.log(config.clientId);
} else if (type === "apiKey" || type === "key") {
console.log(config.apiKey);
} else if (type === "access") {
console.log(config.access);
} else {
console.log('no config found for type: "' + type + '"');
}
});
// proxy
program
.command("proxy")
.description("start a proxy server with specific port")
.argument("<port>", "local server port number", (value) => {
const port = parseInt(value, 10);
if (isNaN(port)) {
throw new InvalidArgumentError("Not a number.");
}
return port;
})
.argument("<target>", "target server url (https://google.com) or tcp (tcp://127.0.0.1:8080 or 127.0.0.1:8080)", (value) => {
// Validate target
if (!value) {
throw new InvalidArgumentError("Target is required.");
}
// Check if target is url
if (value.indexOf("http") === 0 || value.indexOf("https") === 0) {
if (isValidUrl(value)) {
return value;
}
throw new InvalidArgumentError("Target is not a valid url.");
}
if (value.indexOf("tcp") === 0) {
// Remove tcp prefix from target
const t = value.substring(6); // remove tcp prefix (tcp://)
if (isValidHost(t)) {
return value;
}
throw new InvalidArgumentError("Target is not a valid tcp host.");
}
// Check if target is host with port (tcp)
const target = value.split(":");
if (target.length === 2) {
const port = parseInt(target[1], 10);
if (isNaN(port)) {
throw new InvalidArgumentError("Target port is not a number.");
}
return `tcp://${value}`;
}
if (isValidHost(value)) {
return `tcp://${value}`
}
throw new InvalidArgumentError("Target is not a url or host with port.");
})
.option("-p, --profile <string>", "setting profile name for connect with hlt server (proxy with current local port)")
.action((port, target, options) => {
const isTcp = target.indexOf("tcp") === 0;
if (isTcp) {
console.log("[TCP] Start proxy server with port:", port, "and target:", target);
const t = target.substring(6); // remove tcp prefix (tcp://)
const targetHost = t.split(":")[0];
const targetPort = parseInt(t.split(":")[1], 10);
const proxy = createProxyTCPServer(targetHost, targetPort, {
proxyPort: port,
});
onConnectProxy(port, options);
proxy.on("error", (err) => {
console.error("Proxy server error:", err);
});
proxy.on("close", () => {
console.log("Proxy server closed");
});
} else {
console.log("[HTTP/HTTPS] Start proxy server with port:", port, "and target:", target);
const proxy = createProxyServer(target, {
proxyPort: port,
});
onConnectProxy(port, options);
proxy.on("error", (err) => {
console.error("Proxy server error:", err);
});
proxy.on("close", () => {
console.log("Proxy server closed");
});
}
});
const onConnectProxy = (port: number, options: any) => {
if (options?.profile) {
console.log(`Start proxy: ${port} via hlt client with profile: ${options.profile}`);
startClient({
port,
options,
})
}
}
// profile
program
.command("profile")
.description("manage profile")
.option("-l, --list", "list all profiles", false)
.action((options) => {
if (options.list) {
listProfile();
} else {
console.log("profile command is required");
}
});
program.parse();

View File

@ -1,497 +0,0 @@
import * as os from "os";
import * as fs from "fs";
import * as path from "path";
import * as http from "http";
import { io } from "socket.io-client";
import { HttpsProxyAgent } from "https-proxy-agent";
import { program, InvalidArgumentError, Argument } from "commander";
import { TunnelRequest, TunnelResponse } from "./lib";
import { generateUUID, addPrefixOnHttpSchema } from "./util";
import { Socket } from 'socket.io-client';
import { getTokenFree } from './sdk'
const packageInfo = require("../package.json");
// constants
const PROFILE_DEFAULT = "default";
const PROFILE_PATH = ".hlt";
const SERVER_DEFAULT_URL = "https://lt.ctdn.net";
const TOKEN_FREE = "FREE";
// create socket instance
let socket: Socket | null = null;
function keepAlive() {
setTimeout(() => {
if (socket && socket.connected) {
socket.send("ping");
}
keepAlive();
}, 5000);
}
function initClient(options: any) {
// Please change this if your domain goes wrong here
// Current style using sub-domain: https://{{clientId}}-tunnel.myhostingdomain.com
// (Original server: https://tunnel.myhostingdomain.com)
const profile = options.profile || PROFILE_DEFAULT;
const clientId = `${options.apiKey || options.clientId || generateUUID()}`;
const clientIdSub =
profile === PROFILE_DEFAULT ? `${clientId}-` : `${clientId}-${profile}-`;
const clientEndpoint = (
options.suffix ? `${clientIdSub}${options.suffix}-` : clientIdSub
)
.toLowerCase()
.trim();
const serverUrl = addPrefixOnHttpSchema(options.server, clientEndpoint);
// extra options for socket to identify the client (authentication and options of tunnel)
const defaultParams = {
apiKey: options.apiKey,
clientId: options.clientId,
profile: options.profile,
clientIdSub: clientIdSub,
clientEndpoint: clientEndpoint,
serverUrl: serverUrl,
access: options.access,
keep_connection: options.keep_connection || true,
};
// extra info for notify about the running of the tunnel (it's private info, other platfom cannot access this)
// this using for internal only (don't worry about this)
const osInfo = {
hostname: os.hostname(),
platform: os.platform(),
arch: os.arch(),
release: os.release(),
};
const initParams: any = {
path: "/$cubetiq_http_tunnel",
transports: ["websocket"],
auth: {
token: options.token,
...defaultParams,
},
headers: {
...defaultParams,
os: osInfo,
},
// reconnection: true,
};
const http_proxy = process.env.https_proxy || process.env.http_proxy;
if (http_proxy) {
initParams.agent = new HttpsProxyAgent(http_proxy);
}
// Connecting to socket server and agent here...
console.log(`client connecting to server: ${serverUrl}`);
socket = io(serverUrl, initParams);
const clientLogPrefix = `client: ${clientId} on profile: ${profile}`;
socket.on("connect", () => {
if (socket!.connected) {
console.log(`${clientLogPrefix} is connected to server successfully!`);
}
});
socket.on("connect_error", (e) => {
console.log(
`${clientLogPrefix} connect error:`,
(e && e.message) || "something wrong"
);
if (e && e.message && e.message.startsWith("[40")) {
process.exit(1);
}
});
socket.on("disconnect", (reason) => {
console.log(`${clientLogPrefix} disconnected: ${reason}!`);
});
socket.on("disconnect_exit", (reason) => {
console.log(`${clientLogPrefix} disconnected and exited ${reason}!`);
socket?.disconnect();
process.exit(1);
});
socket.on("request", (requestId, request) => {
const isWebSocket = request.headers.upgrade === "websocket";
console.log(`${isWebSocket ? "WS" : request.method}: `, request.path);
request.port = options.port;
request.hostname = options.host;
if (options.origin) {
request.headers.host = options.origin;
}
const tunnelRequest = new TunnelRequest(socket!, requestId);
const localReq = http.request(request);
tunnelRequest.pipe(localReq);
const onTunnelRequestError = (e: any) => {
tunnelRequest.off("end", onTunnelRequestEnd);
localReq.destroy(e);
};
const onTunnelRequestEnd = () => {
tunnelRequest.off("error", onTunnelRequestError);
};
tunnelRequest.once("error", onTunnelRequestError);
tunnelRequest.once("end", onTunnelRequestEnd);
const onLocalResponse = (localRes: any) => {
localReq.off("error", onLocalError);
if (isWebSocket && localRes.upgrade) {
return;
}
const tunnelResponse = new TunnelResponse(socket!, requestId);
tunnelResponse.writeHead(
localRes.statusCode,
localRes.statusMessage,
localRes.headers,
localRes.httpVersion
);
localRes.pipe(tunnelResponse);
};
const onLocalError = (error: any) => {
console.log(error);
localReq.off("response", onLocalResponse);
socket?.emit("request-error", requestId, error && error.message);
tunnelRequest.destroy(error);
};
const onUpgrade = (localRes: any, localSocket: any, localHead: any) => {
// localSocket.once('error', onTunnelRequestError);
if (localHead && localHead.length) localSocket.unshift(localHead);
const tunnelResponse = new TunnelResponse(socket!, requestId, true);
tunnelResponse.writeHead(null, null, localRes.headers);
localSocket.pipe(tunnelResponse).pipe(localSocket);
};
localReq.once("error", onLocalError);
localReq.once("response", onLocalResponse);
if (isWebSocket) {
localReq.on("upgrade", onUpgrade);
}
});
// reconnect manually
const tryReconnect = () => {
setTimeout(() => {
socket!.io.open((err) => {
if (err) {
tryReconnect();
}
});
}, 2000);
};
// socket.io.on("close", tryReconnect);
keepAlive();
}
program
.name("hlt")
.description(
"CUBETIQ HTTP tunnel client with free access for local tunneling"
)
.version(`v${packageInfo.version}`);
// init
program
.command("init")
.description("generate a new client and token with free access")
.option("-s --server <string>", "setting server url", SERVER_DEFAULT_URL)
.option(
"-t --token <string>",
"setting token (default generate FREE access token)",
""
)
.option("-a --access <string>", "setting token access type", TOKEN_FREE)
.option("-c --client <string>", "setting client (auto generate uuid)")
.option(
"-k --key <string>",
"setting client api key for authentication access"
)
.option("-p --profile <string>", "setting profile name", PROFILE_DEFAULT)
.action(async (options) => {
const configDir = path.resolve(os.homedir(), PROFILE_PATH);
if (!fs.existsSync(configDir)) {
fs.mkdirSync(configDir);
console.log(`config file ${configDir} was created`);
}
let config: any = {};
const configFilename = `${options.profile}.json`;
const configFilePath = path.resolve(configDir, configFilename);
if (fs.existsSync(configFilePath)) {
config = JSON.parse(fs.readFileSync(configFilePath, "utf8"));
}
if (!config.server) {
config.server = options.server || SERVER_DEFAULT_URL;
}
if (!config.token && options.token) {
config.token = options.token;
}
if (!config.access) {
config.access = options.access || TOKEN_FREE;
}
if (!config.clientId) {
config.clientId = options.client || generateUUID();
}
if (!config.apiKey && options.key) {
config.apiKey = options.key;
}
if (!config.token) {
console.log("Generating token...");
await getTokenFree(config.server)
.then((resp: any) => {
if (resp.data?.token) {
config.token = resp.data?.token;
} else {
console.log("free token return with null or empty from server");
return;
}
})
.catch((err: any) => {
console.error("cannot get free token from server", err);
return;
});
}
fs.writeFileSync(configFilePath, JSON.stringify(config, null, 2));
console.log(`initialized config saved successfully to: ${configFilePath}`);
});
// start
program
.command("start")
.description("start a connection with specific port")
.argument("<port>", "local server port number", (value) => {
const port = parseInt(value, 10);
if (isNaN(port)) {
throw new InvalidArgumentError("Not a number.");
}
return port;
})
.option("-s, --suffix <string>", "suffix for client name")
.option(
"-K, --keep_connection <boolean>",
"keep connection for client and old connection will be closed (override connection)",
true
)
.option(
"-k --key <string>",
"setting client api key for authentication access"
)
.option("-a, --access <string>", "access type (FREE)", TOKEN_FREE)
.option("-p, --profile <string>", "profile name", PROFILE_DEFAULT)
.option("-h, --host <string>", "local host value", "localhost")
.option("-o, --origin <string>", "change request origin")
.action((port, options) => {
const configDir = path.resolve(os.homedir(), PROFILE_PATH);
if (!fs.existsSync(configDir)) {
fs.mkdirSync(configDir);
}
let config: any = {};
const configFilename = `${options.profile}.json`;
const configFilePath = path.resolve(configDir, configFilename);
if (fs.existsSync(configFilePath)) {
config = JSON.parse(fs.readFileSync(configFilePath, "utf8"));
}
if (!config.server) {
config.server = SERVER_DEFAULT_URL;
}
if (!config.token) {
console.info(`please init or set token for ${config.server}`);
return;
}
if (!config.clientId) {
if (!config.apiKey) {
console.info(`please init or create a client for ${config.server}`);
} else {
config.clientId = config.apiKey;
}
return;
}
options.port = port;
options.token = config.token;
options.access = config.access;
options.server = config.server;
options.clientId = config.clientId;
options.apiKey = options.key || config.apiKey;
if (options.suffix === "port" || options.suffix === "true") {
options.suffix = `${port}`;
} else if (options.suffix === "false") {
options.suffix = undefined;
} else if (options.suffix === "gen" || options.suffix === "uuid") {
options.suffix = generateUUID();
}
initClient(options);
});
// config
program
.command("config")
.description("create and update config file for connection")
.addArgument(
new Argument("<type>", "config type").choices([
"access",
"token",
"server",
"client",
"key",
])
)
.argument("<value>", "config value")
.option("-p --profile <string>", "setting profile name", PROFILE_DEFAULT)
.action(async (type, value, options) => {
if (!type) {
console.error("type config is required!");
return;
}
const configDir = path.resolve(os.homedir(), PROFILE_PATH);
if (!fs.existsSync(configDir)) {
fs.mkdirSync(configDir);
console.log(`config file ${configDir} was created`);
}
let config: any = {};
const configFilename = `${options.profile}.json`;
const configFilePath = path.resolve(configDir, configFilename);
if (fs.existsSync(configFilePath)) {
config = JSON.parse(fs.readFileSync(configFilePath, "utf8"));
}
if (!config.server) {
config.server = SERVER_DEFAULT_URL;
}
if (type === "token" || type === "jwt") {
config.token = value;
} else if (type === "server") {
config.server = value;
} else if (type === "clientId" || type === "client") {
if (!value || value === "" || value === "new") {
config.clientId = generateUUID();
} else {
config.clientId = value;
}
console.log(`client: ${config.clientId} was set to config`);
} else if (type === "apiKey" || type === "key") {
config.apiKey = value;
} else if (type === "access") {
config.access = (value && value.toUpperCase().trim()) || TOKEN_FREE;
// FREE
if (config.access === TOKEN_FREE) {
await getTokenFree(config.server)
.then((resp: any) => {
if (resp.data?.token) {
config.token = resp.data?.token;
} else {
console.log("free token return with null or empty from server");
return;
}
})
.catch((err: any) => {
console.error("cannot get free token from server", err);
return;
});
}
}
if (!config.clientId && config.apiKey) {
config.clientId = config.apiKey;
}
fs.writeFileSync(configFilePath, JSON.stringify(config, null, 2));
console.log(`${type} config saved successfully to: ${configFilePath}`);
});
// config
program
.command("config-get")
.description("get type from config file")
.addArgument(
new Argument("<type>", "config type").choices([
"access",
"token",
"server",
"client",
"key",
])
)
.option("-p --profile <string>", "setting profile name", PROFILE_DEFAULT)
.action(async (type, options) => {
if (!type) {
console.error("type config is required!");
return;
}
const configDir = path.resolve(os.homedir(), PROFILE_PATH);
if (!fs.existsSync(configDir)) {
console.log(`config file ${configDir} not found`);
return;
}
let config: any = {};
const configFilename = `${options.profile}.json`;
const configFilePath = path.resolve(configDir, configFilename);
if (fs.existsSync(configFilePath)) {
config = JSON.parse(fs.readFileSync(configFilePath, "utf8"));
} else {
console.log(`config file ${configFilePath} not found`);
return;
}
if (type === "token" || type === "jwt") {
console.log(config.token);
} else if (type === "server") {
console.log(config.server);
} else if (type === "clientId" || type === "client") {
console.log(config.clientId);
} else if (type === "apiKey" || type === "key") {
console.log(config.apiKey);
} else if (type === "access") {
console.log(config.access);
} else {
console.log('no config found for type: "' + type + '"');
}
});
program.parse();

5
src/constant.ts Normal file
View File

@ -0,0 +1,5 @@
// constants
export const PROFILE_DEFAULT = "default";
export const PROFILE_PATH = ".hlt";
export const SERVER_DEFAULT_URL = "https://lt.ctdn.net";
export const TOKEN_FREE = "FREE";

22
src/interface.ts Normal file
View File

@ -0,0 +1,22 @@
export interface Options {
server?: string;
profile?: string;
key?: string;
apiKey?: string;
access?: string;
suffix?: string;
clientId?: string;
keep_connection?: boolean;
token?: string;
origin?: string;
port?: number;
host?: string;
// [key: string]: any;
}
export interface ClientOptions {
port: number;
address?: string; // e.g. localhost:8081 (take if port is not set)
options?: Options;
}

View File

@ -57,7 +57,7 @@ class TunnelResponse extends stream.Duplex {
super();
if (duplex) {
// for websocket request: bidirection
// for websocket request: bidirection
const onResponsePipe = (responseId: string, data: any) => {
if (this.responseId === responseId) {
this.push(data);

28
src/manage.ts Normal file
View File

@ -0,0 +1,28 @@
import * as fs from "fs";
import * as os from "os";
import * as path from "path";
import { PROFILE_DEFAULT, PROFILE_PATH } from "./constant";
export const listProfile = () => {
const configDir = path.resolve(os.homedir(), PROFILE_PATH);
if (!fs.existsSync(configDir)) {
console.log(`config file ${configDir} not found`);
return;
}
const configFiles = fs.readdirSync(configDir);
if (configFiles.length === 0) {
console.log(`config file ${configDir} not found`);
return;
}
console.log("List of profile:");
configFiles.forEach((file) => {
const configFilePath = path.resolve(configDir, file);
const config = JSON.parse(fs.readFileSync(configFilePath, "utf8"));
const name = file.replace(".json", "");
console.log(`- ${name} (${config.clientId})`);
});
console.log(`\nCurrent profile: ${PROFILE_DEFAULT}`);
}

47
src/proxy.ts Normal file
View File

@ -0,0 +1,47 @@
import express from 'express';
import { createProxyMiddleware, Options as ProxyOpts } from 'http-proxy-middleware';
interface ProxyOptions extends ProxyOpts {
basePath?: string;
proxyPort?: number | string;
}
interface SSLProxyOptions extends ProxyOptions {
ssl?: {
key: string;
cert: string;
};
}
const port = process.env.PROXY_PORT || 3000;
const app = express();
export const createProxyServer = (target: string, opts?: ProxyOptions) => {
if (!target) {
throw new Error('Proxy target is required');
}
app.use(
opts?.basePath || '',
createProxyMiddleware({
target,
changeOrigin: true,
ws: true,
onProxyReq: (proxyReq, req, res) => {
console.log(`[HTTP] Proxying ${req.method} ${req.url} to ${target}`);
},
onProxyReqWs: (proxyReq, req, socket, options, head) => {
console.log(`[WS] Proxying ${req.method} ${req.url} to ${target}`);
},
onError: (err, req, res) => {
console.error(`Proxy error: ${err.message}`);
},
...opts
})
);
const proxyPort = opts?.proxyPort || port;
return app.listen(proxyPort, () => {
console.log(`Proxy listening on port ${proxyPort} and forwarding to ${target}`);
});
};

67
src/proxy_tcp.ts Normal file
View File

@ -0,0 +1,67 @@
import * as net from 'net'
const port = process.env.PROXY_PORT || 3000;
interface ProxyOptions extends net.TcpNetConnectOpts {
proxyPort?: number | string;
}
// Create a TCP server that acts as a proxy
export const createProxyServer = (targetHost: string, targetPort: number, opts?: Partial<ProxyOptions>) => {
const server = net.createServer((clientSocket) => {
const targetSocket = net.createConnection({
host: targetHost,
port: targetPort,
...opts,
});
clientSocket.pipe(targetSocket);
targetSocket.pipe(clientSocket);
// Listen for target socket connection
targetSocket.on('connect', () => {
console.log(`Target socket connected to ${targetHost}:${targetPort}`);
});
// targetSocket.on('data', (data) => {
// console.log('Target socket received data length:', data.length);
// });
// Listen for client socket requests
clientSocket.on('data', (data) => {
console.log('Client socket request data', data.toString());
});
clientSocket.on('end', () => {
targetSocket.end();
});
targetSocket.on('end', () => {
clientSocket.end();
});
clientSocket.on('error', (err) => {
console.error('Client socket error:', err);
});
targetSocket.on('error', (err) => {
console.error('Target socket error:', err);
});
targetSocket.on('timeout', () => {
console.log('Target socket timeout');
});
clientSocket.on('timeout', () => {
console.log('Client socket timeout');
});
});
const proxyPort = opts?.proxyPort || port;
server.listen(proxyPort, () => {
console.log(`TCP proxy server listening on port ${proxyPort} and forwarding to ${targetHost}:${targetPort}`);
});
return server;
}

View File

@ -1,4 +1,4 @@
const axios = require("axios").default;
import axios from "axios";
const getTokenFree = async (baseUrl: string, data: any = {}) => {
const url = `${baseUrl}/__free__/api/get_token`;
@ -10,6 +10,7 @@ const getTokenFree = async (baseUrl: string, data: any = {}) => {
},
headers: {
"x-access-type": "FREE",
"Accept-Encoding": "identity",
},
});
};

View File

@ -16,4 +16,49 @@ const generateUUID = () => {
return crypto.randomUUID();
};
export const isValidUrl = (url: string) => {
try {
new URL(url);
return true;
} catch (err) {
return false;
}
};
export const isValidIP = (ip: string) => {
const regex = new RegExp(
"^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\\.|$)){4}$"
);
return regex.test(ip);
};
export const isValidHostname = (hostname: string) => {
const regex = new RegExp(
"^(?:(?:(?:xn--)?[a-z0-9]+(?:-[a-z0-9]+)*\\.?)+(?:(?:[a-z]{2,}\\.)?[a-z]{2,})|localhost)$",
"i"
);
return regex.test(hostname) || isValidIP(hostname);
};
export const isValidPort = (port: number) => {
return port > 0 && port < 65536;
};
export const isValidHost = (host: string) => {
const [hostname, port] = host.split(":");
return isValidHostname(hostname) && isValidPort(parseInt(port, 10));
};
export const isValidTarget = (target: string) => {
if (isValidUrl(target)) {
return true;
}
if (isValidHost(target)) {
return true;
}
return false;
};
export { addPrefixOnHttpSchema, generateUUID };

34
test/test.ts Normal file
View File

@ -0,0 +1,34 @@
import { startClient } from '../src/api';
async function main() {
const client = await startClient({
// port: 8081,
address: '172.17.0.2:8222',
options: {
profile: 'mytest',
},
});
console.log('Client started:', client?.getEndpoint());
setTimeout(async () => {
client?.stop();
}, 10000);
}
main().catch((err) => {
console.error(err);
process.exit(1);
});
// import { createProxyServer } from './proxy';
// import { createProxyServer } from './proxy_tcp';
// const proxy = createProxyServer('https://git.cubetiqs.com', {
// proxyPort: 3005,
// basePath: '/',
// });
// const proxy = createProxyServer('192.168.0.202', 8081, {
// proxyPort: 3005,
// });

View File

@ -1,14 +1,16 @@
{
"compilerOptions": {
"lib": ["ES2015"],
"target": "es5",
"compilerOptions": {
"lib": ["ES2015"],
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": false,
"outDir": "dist",
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true
}
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": false,
"outDir": "dist",
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
"esModuleInterop": true
},
"exclude": ["node_modules", "dist", "test", "src/**/*.spec.ts"]
}