@modern-js/prod-server 1.0.4 → 1.0.5
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/CHANGELOG.md +11 -0
- package/dist/types/libs/proxy.d.ts +1 -1
- package/package.json +4 -4
- package/src/libs/proxy.ts +1 -1
- package/tests/fixtures/pure/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @modern-js/prod-server
|
|
2
2
|
|
|
3
|
+
## 1.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- d2d0fa11: fix: missing devServer.proxy typing
|
|
8
|
+
- Updated dependencies [a8df060e]
|
|
9
|
+
- Updated dependencies [c2046f37]
|
|
10
|
+
- Updated dependencies [18db013a]
|
|
11
|
+
- @modern-js/server-core@1.2.4
|
|
12
|
+
- @modern-js/utils@1.3.6
|
|
13
|
+
|
|
3
14
|
## 1.0.4
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { NextFunction, ProxyOptions } from '@modern-js/types';
|
|
2
2
|
import { ModernServerContext } from './context';
|
|
3
3
|
export type { ProxyOptions };
|
|
4
|
-
export declare const createProxyHandler: (proxyOptions
|
|
4
|
+
export declare const createProxyHandler: (proxyOptions?: ProxyOptions | undefined) => ((ctx: ModernServerContext, next: NextFunction) => Promise<void>)[] | null;
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.0.
|
|
14
|
+
"version": "1.0.5",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@modern-js/utils": "^1.3.
|
|
31
|
+
"@modern-js/utils": "^1.3.6",
|
|
32
32
|
"@babel/compat-data": "^7.17.0",
|
|
33
|
-
"@modern-js/server-core": "^1.2.
|
|
33
|
+
"@modern-js/server-core": "^1.2.4",
|
|
34
34
|
"axios": "^0.24.0",
|
|
35
35
|
"compare-versions": "^3.6.0",
|
|
36
36
|
"http-proxy-middleware": "^2.0.1",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@modern-js/types": "^1.3.5",
|
|
48
|
-
"@modern-js/core": "^1.
|
|
48
|
+
"@modern-js/core": "^1.6.0",
|
|
49
49
|
"@scripts/jest-config": "0.0.0",
|
|
50
50
|
"@scripts/build": "0.0.0",
|
|
51
51
|
"del-cli": "^4.0.1",
|
package/src/libs/proxy.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { ModernServerContext } from './context';
|
|
|
5
5
|
|
|
6
6
|
export type { ProxyOptions };
|
|
7
7
|
|
|
8
|
-
export const createProxyHandler = (proxyOptions
|
|
8
|
+
export const createProxyHandler = (proxyOptions?: ProxyOptions) => {
|
|
9
9
|
if (!proxyOptions) {
|
|
10
10
|
return null;
|
|
11
11
|
}
|