@modern-js/types
Advanced tools
Comparing version 0.0.0-canary-20220817033113 to 0.0.0-canary-20220817100609
# @modern-js/types | ||
## 0.0.0-canary-20220817033113 | ||
## 0.0.0-canary-20220817100609 | ||
### Minor Changes | ||
### Patch Changes | ||
- 0c35d517: chore: support react 18 | ||
- ad05af91: fix: bff.proxy and devServer.proxy types | ||
chore: 支持 React 18 | ||
fix: 修复 bff.proxy 和 devServer.proxy 类型定义不完整的问题 | ||
@@ -11,0 +11,0 @@ ## 1.6.2 |
@@ -14,3 +14,3 @@ { | ||
], | ||
"version": "0.0.0-canary-20220817033113", | ||
"version": "0.0.0-canary-20220817100609", | ||
"types": "./index.d.ts", | ||
@@ -25,6 +25,9 @@ "exports": { | ||
"devDependencies": { | ||
"@scripts/build": "0.0.0-canary-20220817033113", | ||
"@scripts/jest-config": "0.0.0-canary-20220817033113", | ||
"@scripts/build": "0.0.0-canary-20220817100609", | ||
"@scripts/jest-config": "0.0.0-canary-20220817100609", | ||
"@types/jest": "^27", | ||
"@types/node": "^14", | ||
"@types/react": "^17", | ||
"@types/react-dom": "^17", | ||
"http-proxy-middleware": "^2.0.4", | ||
"jest": "^27" | ||
@@ -31,0 +34,0 @@ }, |
@@ -1,2 +0,3 @@ | ||
import { IncomingMessage, ServerResponse } from 'http'; | ||
import type { IncomingMessage, ServerResponse } from 'http'; | ||
import type { Options as ProxyOptions } from 'http-proxy-middleware'; | ||
@@ -23,7 +24,3 @@ export type Metrics = { | ||
export type ProxyDetail = { | ||
target: string; | ||
pathRewrite?: Record<string, string>; | ||
secure?: boolean; | ||
logLevel?: 'debug' | 'info' | 'warn' | 'error' | 'silent'; | ||
export type ProxyDetail = ProxyOptions & { | ||
bypass?: ( | ||
@@ -35,5 +32,2 @@ req: IncomingMessage, | ||
context?: string | string[]; | ||
changeOrigin?: boolean; | ||
/** Rewrites domain of set-cookie headers. */ | ||
cookieDomainRewrite?: false | string | Record<string, string>; | ||
}; | ||
@@ -40,0 +34,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20313
8
225