@logto/tunnel 0.2.5 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -15,6 +15,11 @@ export const createProxy = (targetUrl, onProxyResponse) => {
|
|
|
15
15
|
selfHandleResponse: hasResponseHandler,
|
|
16
16
|
...conditional(hasResponseHandler && {
|
|
17
17
|
on: {
|
|
18
|
+
proxyReq: (proxyRequest) => {
|
|
19
|
+
// Disable potential `zstd` compression since it's not supported by http-proxy-middleware
|
|
20
|
+
// https://github.com/chimurai/http-proxy-middleware/issues/1070
|
|
21
|
+
proxyRequest.setHeader('Accept-Encoding', 'gzip, deflate, br');
|
|
22
|
+
},
|
|
18
23
|
proxyRes: onProxyResponse,
|
|
19
24
|
error: (error) => {
|
|
20
25
|
consoleLog.error(chalk.red(error.message));
|
package/lib/package-json.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const packageJson = {
|
|
2
2
|
"name": "@logto/tunnel",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "A CLI tool that creates tunnel service to Logto Cloud for local development.",
|
|
5
5
|
"author": "Silverhand Inc. <contact@silverhand.io>",
|
|
6
6
|
"homepage": "https://github.com/logto-io/logto#readme",
|
|
@@ -48,7 +48,7 @@ export const packageJson = {
|
|
|
48
48
|
"chalk": "^5.3.0",
|
|
49
49
|
"dotenv": "^16.4.5",
|
|
50
50
|
"find-up": "^7.0.0",
|
|
51
|
-
"http-proxy-middleware": "^3.0.
|
|
51
|
+
"http-proxy-middleware": "^3.0.3",
|
|
52
52
|
"mime": "^4.0.4",
|
|
53
53
|
"ora": "^8.0.1",
|
|
54
54
|
"yargs": "^17.6.0",
|
|
@@ -58,7 +58,7 @@ export const packageJson = {
|
|
|
58
58
|
"@silverhand/eslint-config": "6.0.1",
|
|
59
59
|
"@silverhand/ts-config": "6.0.0",
|
|
60
60
|
"@types/adm-zip": "^0.5.5",
|
|
61
|
-
"@types/node": "^20.9
|
|
61
|
+
"@types/node": "^20.17.9",
|
|
62
62
|
"@types/yargs": "^17.0.13",
|
|
63
63
|
"@vitest/coverage-v8": "^2.1.9",
|
|
64
64
|
"eslint": "^8.56.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logto/tunnel",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "A CLI tool that creates tunnel service to Logto Cloud for local development.",
|
|
5
5
|
"author": "Silverhand Inc. <contact@silverhand.io>",
|
|
6
6
|
"homepage": "https://github.com/logto-io/logto#readme",
|
|
@@ -33,19 +33,19 @@
|
|
|
33
33
|
"chalk": "^5.3.0",
|
|
34
34
|
"dotenv": "^16.4.5",
|
|
35
35
|
"find-up": "^7.0.0",
|
|
36
|
-
"http-proxy-middleware": "^3.0.
|
|
36
|
+
"http-proxy-middleware": "^3.0.3",
|
|
37
37
|
"mime": "^4.0.4",
|
|
38
38
|
"ora": "^8.0.1",
|
|
39
39
|
"yargs": "^17.6.0",
|
|
40
40
|
"zod": "^3.23.8",
|
|
41
|
-
"@logto/
|
|
42
|
-
"@logto/
|
|
41
|
+
"@logto/core-kit": "^2.5.4",
|
|
42
|
+
"@logto/shared": "^3.1.4"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@silverhand/eslint-config": "6.0.1",
|
|
46
46
|
"@silverhand/ts-config": "6.0.0",
|
|
47
47
|
"@types/adm-zip": "^0.5.5",
|
|
48
|
-
"@types/node": "^20.9
|
|
48
|
+
"@types/node": "^20.17.9",
|
|
49
49
|
"@types/yargs": "^17.0.13",
|
|
50
50
|
"@vitest/coverage-v8": "^2.1.9",
|
|
51
51
|
"eslint": "^8.56.0",
|