@modern-js/prod-server 3.9.0 → 3.9.1
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Server as NodeServer } from 'node:http';
|
|
2
2
|
import type { Http2SecureServer } from 'node:http2';
|
|
3
3
|
import { type ServerBase } from '@modern-js/server-core';
|
|
4
|
-
import type { ProdServerOptions } from './types';
|
|
4
|
+
import type { ProdServerOptions } from './types.js';
|
|
5
5
|
export type ApplyPlugins = typeof applyPlugins;
|
|
6
6
|
export declare function applyPlugins(serverBase: ServerBase, options: ProdServerOptions, nodeServer?: NodeServer | Http2SecureServer): Promise<void>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { ProdServerOptions } from './types';
|
|
2
|
-
export { applyPlugins, type ApplyPlugins } from './apply';
|
|
1
|
+
import type { ProdServerOptions } from './types.js';
|
|
2
|
+
export { applyPlugins, type ApplyPlugins } from './apply.js';
|
|
3
3
|
export { loadServerPlugins, loadServerRuntimeConfig, } from '@modern-js/server-core/node';
|
|
4
4
|
export type { ServerPlugin } from '@modern-js/server-core';
|
|
5
|
-
export type { ProdServerOptions, BaseEnv } from './types';
|
|
5
|
+
export type { ProdServerOptions, BaseEnv } from './types.js';
|
|
6
6
|
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> | import("http2").Http2SecureServer<typeof import("http").IncomingMessage, typeof import("http").ServerResponse, typeof import("http2").Http2ServerRequest, typeof import("http2").Http2ServerResponse>) & {
|
|
7
7
|
getRequestListener: () => ReturnType<(handler: import("@modern-js/server-core/dist/types/types").RequestHandler) => (req: import("@modern-js/types/server").NodeRequest, res: import("@modern-js/types/server").NodeResponse) => Promise<void>>;
|
|
8
8
|
getRequestHandler: () => import("@modern-js/server-core/dist/types/types").RequestHandler;
|
package/dist/types/netlify.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { ProdServerOptions } from './types';
|
|
2
|
-
export type { ProdServerOptions, BaseEnv } from './types';
|
|
1
|
+
import type { ProdServerOptions } from './types.js';
|
|
2
|
+
export type { ProdServerOptions, BaseEnv } from './types.js';
|
|
3
3
|
export declare const createNetlifyFunction: (options: ProdServerOptions) => Promise<(request: Request, context: unknown) => Response | Promise<Response>>;
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "3.9.
|
|
18
|
+
"version": "3.9.1",
|
|
19
19
|
"types": "./dist/types/index.d.ts",
|
|
20
20
|
"main": "./dist/cjs/index.js",
|
|
21
21
|
"exports": {
|
|
@@ -48,19 +48,19 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@swc/helpers": "^0.5.17",
|
|
51
|
-
"@modern-js/runtime-utils": "3.9.
|
|
52
|
-
"@modern-js/server-core": "3.9.
|
|
53
|
-
"@modern-js/utils": "3.9.
|
|
51
|
+
"@modern-js/runtime-utils": "3.9.1",
|
|
52
|
+
"@modern-js/server-core": "3.9.1",
|
|
53
|
+
"@modern-js/utils": "3.9.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@rslib/core": "0.
|
|
56
|
+
"@rslib/core": "1.0.0",
|
|
57
57
|
"@types/merge-deep": "^3.0.3",
|
|
58
58
|
"@types/node": "^20",
|
|
59
59
|
"lint-staged": "~13.3.0",
|
|
60
60
|
"typescript": "^5",
|
|
61
61
|
"@modern-js/rslib": "2.68.10",
|
|
62
|
-
"@
|
|
63
|
-
"@
|
|
62
|
+
"@scripts/rstest-config": "2.66.0",
|
|
63
|
+
"@modern-js/types": "3.9.1"
|
|
64
64
|
},
|
|
65
65
|
"sideEffects": [],
|
|
66
66
|
"engines": {
|