@modern-js/prod-server 2.67.0 → 2.67.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/dist/types/apply.d.ts +3 -1
- package/dist/types/index.d.ts +3 -2
- package/package.json +7 -7
package/dist/types/apply.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
+
/// <reference types="node" />
|
|
2
3
|
import type { Server as NodeServer } from 'node:http';
|
|
4
|
+
import type { Http2SecureServer } from 'node:http2';
|
|
3
5
|
import { type ServerBase } from '@modern-js/server-core';
|
|
4
6
|
import type { ProdServerOptions } from './types';
|
|
5
7
|
export type ApplyPlugins = typeof applyPlugins;
|
|
6
|
-
export declare function applyPlugins(serverBase: ServerBase, options: ProdServerOptions, nodeServer?: NodeServer): Promise<void>;
|
|
8
|
+
export declare function applyPlugins(serverBase: ServerBase, options: ProdServerOptions, nodeServer?: NodeServer | Http2SecureServer): Promise<void>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
/// <reference types="node" />
|
|
3
|
+
/// <reference types="node" />
|
|
3
4
|
import type { ProdServerOptions } from './types';
|
|
4
5
|
export { applyPlugins, type ApplyPlugins } from './apply';
|
|
5
6
|
export { loadServerPlugins, loadServerRuntimeConfig, } from '@modern-js/server-core/node';
|
|
6
7
|
export type { ServerPluginLegacy, ServerPlugin } from '@modern-js/server-core';
|
|
7
8
|
export type { ProdServerOptions, BaseEnv } from './types';
|
|
8
|
-
export declare const createProdServer: (options: ProdServerOptions) => Promise<(import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse> | import("https").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>) & {
|
|
9
|
-
getRequestListener: () => (req:
|
|
9
|
+
export declare const createProdServer: (options: ProdServerOptions) => Promise<(import("http2").Http2SecureServer | import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse> | import("https").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>) & {
|
|
10
|
+
getRequestListener: () => (req: any, res: any) => Promise<void>;
|
|
10
11
|
getRequestHandler: () => import("@modern-js/server-core/dist/types/types").RequestHandler;
|
|
11
12
|
}>;
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.67.
|
|
18
|
+
"version": "2.67.2",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/index.d.ts",
|
|
21
21
|
"main": "./dist/cjs/index.js",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@swc/helpers": "0.5.13",
|
|
44
44
|
"source-map-support": "0.5.21",
|
|
45
|
-
"@modern-js/runtime-utils": "2.67.
|
|
46
|
-
"@modern-js/utils": "2.67.
|
|
47
|
-
"@modern-js/server-core": "2.67.
|
|
45
|
+
"@modern-js/runtime-utils": "2.67.2",
|
|
46
|
+
"@modern-js/utils": "2.67.2",
|
|
47
|
+
"@modern-js/server-core": "2.67.2"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/jest": "^29",
|
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
"lint-staged": "~13.3.0",
|
|
56
56
|
"tsx": "^3.12.7",
|
|
57
57
|
"typescript": "~5.0.4",
|
|
58
|
-
"@modern-js/types": "2.67.
|
|
59
|
-
"@scripts/
|
|
60
|
-
"@scripts/
|
|
58
|
+
"@modern-js/types": "2.67.2",
|
|
59
|
+
"@scripts/build": "2.66.0",
|
|
60
|
+
"@scripts/jest-config": "2.66.0"
|
|
61
61
|
},
|
|
62
62
|
"sideEffects": [],
|
|
63
63
|
"engines": {
|