@modern-js/types 2.34.0 → 2.35.0

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/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.34.0",
18
+ "version": "2.35.0",
19
19
  "types": "./index.d.ts",
20
20
  "exports": {
21
21
  ".": {
@@ -45,8 +45,8 @@
45
45
  "http-proxy-middleware": "^2.0.4",
46
46
  "jest": "^29",
47
47
  "type-fest": "2.15.0",
48
- "@scripts/build": "2.34.0",
49
- "@scripts/jest-config": "2.34.0"
48
+ "@scripts/jest-config": "2.35.0",
49
+ "@scripts/build": "2.35.0"
50
50
  },
51
51
  "sideEffects": false,
52
52
  "publishConfig": {
@@ -1,4 +1,9 @@
1
- import { IncomingMessage, ServerResponse, IncomingHttpHeaders } from 'http';
1
+ import {
2
+ IncomingMessage,
3
+ ServerResponse,
4
+ IncomingHttpHeaders,
5
+ Server as HttpServer,
6
+ } from 'http';
2
7
  import qs from 'querystring';
3
8
  import type { SSRMode } from 'common';
4
9
  import { Metrics, Logger, Reporter, ServerTiming } from './utils';
@@ -105,7 +110,7 @@ export type BaseSSRServerContext = {
105
110
  };
106
111
 
107
112
  export interface ServerInitHookContext {
108
- app?: httpServer;
113
+ app?: HttpServer;
109
114
  server: ModernServerInterface;
110
115
  }
111
116
 
package/server/route.d.ts CHANGED
@@ -3,7 +3,7 @@ export interface ServerRoute {
3
3
  entryName?: string;
4
4
  // the url path for request match
5
5
  urlPath: string;
6
- // the default resource file to response to route
6
+ // the default asset to response to route
7
7
  entryPath: string;
8
8
  // if route is spa page
9
9
  isSPA?: boolean;