Skip to content

Commit 85dbda0

Browse files
committed
chore(package): update dev deps
1 parent 1b3672c commit 85dbda0

File tree

5 files changed

+483
-246
lines changed

5 files changed

+483
-246
lines changed

README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -161,18 +161,15 @@ http-proxy-middleware options:
161161
Narrow down which requests should be proxied. The `path` used for filtering is the `request.url` pathname. In Express, this is the `path` relative to the mount-point of the proxy.
162162

163163
- **path matching**
164-
165164
- `createProxyMiddleware({...})` - matches any path, all requests will be proxied when `pathFilter` is not configured.
166165
- `createProxyMiddleware({ pathFilter: '/api', ...})` - matches paths starting with `/api`
167166

168167
- **multiple path matching**
169-
170168
- `createProxyMiddleware({ pathFilter: ['/api', '/ajax', '/someotherpath'], ...})`
171169

172170
- **wildcard path matching**
173171

174172
For fine-grained control you can use wildcard matching. Glob pattern matching is done by _micromatch_. Visit [micromatch](https://www.npmjs.com/package/micromatch) or [glob](https://www.npmjs.com/package/glob) for more globbing examples.
175-
176173
- `createProxyMiddleware({ pathFilter: '**', ...})` matches any path, all requests will be proxied.
177174
- `createProxyMiddleware({ pathFilter: '**/*.html', ...})` matches any path which ends with `.html`
178175
- `createProxyMiddleware({ pathFilter: '/*.html', ...})` matches paths directly under path-absolute
@@ -416,13 +413,12 @@ The following options are provided by the underlying [http-proxy](https://github
416413
- **option.autoRewrite**: rewrites the location host/port on (301/302/307/308) redirects based on requested host/port. Default: false.
417414
- **option.protocolRewrite**: rewrites the location protocol on (301/302/307/308) redirects to 'http' or 'https'. Default: null.
418415
- **option.cookieDomainRewrite**: rewrites domain of `set-cookie` headers. Possible values:
419-
420416
- `false` (default): disable cookie rewriting
421417
- String: new domain, for example `cookieDomainRewrite: "new.domain"`. To remove the domain, use `cookieDomainRewrite: ""`.
422418
- Object: mapping of domains to new domains, use `"*"` to match all domains.
423419
For example keep one domain unchanged, rewrite one domain and remove other domains:
424420

425-
```json
421+
```jsonc
426422
cookieDomainRewrite: {
427423
"unchanged.domain": "unchanged.domain",
428424
"old.domain": "new.domain",
@@ -431,13 +427,12 @@ The following options are provided by the underlying [http-proxy](https://github
431427
```
432428

433429
- **option.cookiePathRewrite**: rewrites path of `set-cookie` headers. Possible values:
434-
435430
- `false` (default): disable cookie rewriting
436431
- String: new path, for example `cookiePathRewrite: "/newPath/"`. To remove the path, use `cookiePathRewrite: ""`. To set path to root use `cookiePathRewrite: "/"`.
437432
- Object: mapping of paths to new paths, use `"*"` to match all paths.
438433
For example, to keep one path unchanged, rewrite one path and remove other paths:
439434

440-
```json
435+
```jsonc
441436
cookiePathRewrite: {
442437
"/unchanged.path/": "/unchanged.path/",
443438
"/old.path/": "/new.path/",

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -58,35 +58,35 @@
5858
"devDependencies": {
5959
"@commitlint/cli": "19.8.1",
6060
"@commitlint/config-conventional": "19.8.1",
61-
"@eslint/js": "9.27.0",
61+
"@eslint/js": "9.30.1",
6262
"@trivago/prettier-plugin-sort-imports": "5.2.2",
6363
"@types/debug": "4.1.12",
6464
"@types/eslint": "9.6.1",
65-
"@types/express": "5.0.2",
65+
"@types/express": "5.0.3",
6666
"@types/is-glob": "4.0.4",
6767
"@types/jest": "30.0.0",
6868
"@types/micromatch": "4.0.9",
69-
"@types/node": "22.15.18",
69+
"@types/node": "24.0.10",
7070
"@types/supertest": "6.0.3",
7171
"@types/ws": "8.18.1",
7272
"body-parser": "2.2.0",
73-
"eslint": "9.27.0",
73+
"eslint": "9.30.1",
7474
"express": "5.1.0",
7575
"get-port": "5.1.1",
76-
"globals": "16.1.0",
76+
"globals": "16.3.0",
7777
"husky": "9.1.7",
78-
"jest": "30.0.2",
79-
"lint-staged": "16.0.0",
80-
"mockttp": "3.17.1",
78+
"jest": "30.0.3",
79+
"lint-staged": "16.1.2",
80+
"mockttp": "4.0.1",
8181
"open": "8.4.2",
8282
"patch-package": "8.0.0",
83-
"pkg-pr-new": "0.0.50",
84-
"prettier": "3.5.3",
83+
"pkg-pr-new": "0.0.54",
84+
"prettier": "3.6.2",
8585
"supertest": "7.1.1",
8686
"ts-jest": "29.4.0",
8787
"typescript": "5.8.3",
88-
"typescript-eslint": "8.32.1",
89-
"ws": "8.18.2"
88+
"typescript-eslint": "8.35.1",
89+
"ws": "8.18.3"
9090
},
9191
"dependencies": {
9292
"@types/http-proxy": "^1.17.15",

test/e2e/http-proxy-middleware.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ describe('E2E http-proxy-middleware', () => {
103103

104104
await mockTargetServer.forPost('/api').thenCallback(async (req) => {
105105
expect(await req.body.getText()).toBe('foo=bar&bar=baz');
106-
return { status: 200 };
106+
return { statusCode: 200 };
107107
});
108108
await agent.post('/api').send('foo=bar').send('bar=baz').expect(200);
109109
});
@@ -124,7 +124,7 @@ describe('E2E http-proxy-middleware', () => {
124124

125125
await mockTargetServer.forPost('/api').thenCallback(async (req) => {
126126
expect(await req.body.getJson()).toEqual({ foo: 'bar', bar: 'baz', doubleByte: '文' });
127-
return { status: 200 };
127+
return { statusCode: 200 };
128128
});
129129
await agent.post('/api').send({ foo: 'bar', bar: 'baz', doubleByte: '文' }).expect(200);
130130
});

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"compilerOptions": {
33
"rootDir": "./src",
44
"outDir": "./dist",
5-
"lib": ["es2021"],
5+
"lib": ["es2021", "es2022"],
66
"module": "commonjs",
77
"moduleResolution": "node",
88
"target": "es2021",

0 commit comments

Comments
 (0)