Socket
Socket
Sign inDemoInstall

@modern-js/types

Package Overview
Dependencies
Maintainers
12
Versions
3308
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@modern-js/types - npm Package Compare versions

Comparing version 0.0.0-canary-20220817033113 to 0.0.0-canary-20220817100609

8

CHANGELOG.md
# @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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc