@modern-js/types 2.42.1 → 2.42.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.42.1",
18
+ "version": "2.42.2",
19
19
  "types": "./index.d.ts",
20
20
  "exports": {
21
21
  ".": {
@@ -45,8 +45,8 @@
45
45
  "http-proxy-middleware": "^2.0.4",
46
46
  "jest": "^29",
47
47
  "type-fest": "2.15.0",
48
- "@scripts/build": "2.42.1",
49
- "@scripts/jest-config": "2.42.1"
48
+ "@scripts/build": "2.42.2",
49
+ "@scripts/jest-config": "2.42.2"
50
50
  },
51
51
  "sideEffects": false,
52
52
  "publishConfig": {
package/server/utils.d.ts CHANGED
@@ -1,5 +1,8 @@
1
1
  import type { IncomingMessage, ServerResponse } from 'http';
2
- import type { Options as ProxyOptions } from 'http-proxy-middleware';
2
+ import type {
3
+ Options as ProxyOptions,
4
+ Filter as ProxyFilter,
5
+ } from 'http-proxy-middleware';
3
6
 
4
7
  export type Metrics = {
5
8
  emitCounter: (name: string, value: number, tags: Record<string, any>) => void;
@@ -61,7 +64,7 @@ export type ProxyDetail = ProxyOptions & {
61
64
  res: ServerResponse,
62
65
  proxyOptions: BffProxyOptions,
63
66
  ) => string | undefined | null | false;
64
- context?: string | string[];
67
+ context?: ProxyFilter;
65
68
  };
66
69
 
67
70
  export type BffProxyOptions =