From 44d26a78b39311d00ff4ced7fd3d8c5ceb4c3db8 Mon Sep 17 00:00:00 2001 From: Florian Rappl Date: Fri, 8 Mar 2024 15:43:10 +0100 Subject: [PATCH] Updated axios usage in proxy --- .github/workflows/node.js.yml | 6 +++--- CHANGELOG.md | 4 ++++ package.json | 7 ++++--- src/server/helpers/proxy-request.ts | 1 + 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 1f2db1c..f7bc7d8 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -15,7 +15,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v1 with: - node-version: "18.x" + node-version: "20.x" registry-url: "https://registry.npmjs.org" - name: Install Dependencies run: npm install @@ -38,7 +38,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v1 with: - node-version: "18.x" + node-version: "20.x" registry-url: "https://registry.npmjs.org" - name: Install Dependencies run: npm install @@ -63,7 +63,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v1 with: - node-version: "18.x" + node-version: "20.x" registry-url: "https://registry.npmjs.org" - name: Install Dependencies run: npm install diff --git a/CHANGELOG.md b/CHANGELOG.md index 485c397..2f434aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.16.1 + +- Fixed issue with proxy injector not returning response + ## 0.16.0 - Fixed error handling with wrong JSON format (#65) diff --git a/package.json b/package.json index 300e750..5ea15e3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "kras", - "version": "0.16.0", + "version": "0.16.1", "description": "Efficient server proxying and mocking in Node.js.", "main": "dist/server/index.js", "types": "dist/server/index.d.ts", @@ -10,6 +10,7 @@ "engines": { "node": ">=16.0.0" }, + "homepage": "https://github.com/FlorianRappl/kras", "repository": { "type": "git", "url": "https://github.com/FlorianRappl/kras.git" @@ -55,7 +56,7 @@ "@types/accept-language-parser": "^1.5.3", "@types/body-parser": "^1.19.2", "@types/chokidar": "^2.1.3", - "@types/cookie": "^0.4.1", + "@types/cookie": "^0.5.0", "@types/express": "^4.17.17", "@types/express-ws": "^3.0.1", "@types/faker": "^5.5.9", @@ -72,7 +73,7 @@ "body-parser": "^1.20.2", "chalk": "^3.0.0", "chokidar": "^3.5.3", - "cookie": "^0.4.2", + "cookie": "^0.5.0", "cross-env": "^7.0.3", "dets": "^0.14.2", "enzyme-to-json": "^3.6.2", diff --git a/src/server/helpers/proxy-request.ts b/src/server/helpers/proxy-request.ts index bb07f12..03f96cb 100644 --- a/src/server/helpers/proxy-request.ts +++ b/src/server/helpers/proxy-request.ts @@ -53,6 +53,7 @@ export async function proxyRequest(req: ProxyRequestOptions): Promise true, proxy: req.proxy, headers: req.headers, data: req.body,