@modern-js/types 2.58.2 → 2.59.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/common/babel.d.ts +1 -1
- package/package.json +3 -3
- package/server/context.d.ts +4 -3
- package/server/devServer.d.ts +1 -1
- package/server/hook.d.ts +2 -2
- package/server/utils.d.ts +1 -1
package/common/babel.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.
|
|
18
|
+
"version": "2.59.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.
|
|
49
|
-
"@scripts/jest-config": "2.
|
|
48
|
+
"@scripts/build": "2.59.0",
|
|
49
|
+
"@scripts/jest-config": "2.59.0"
|
|
50
50
|
},
|
|
51
51
|
"sideEffects": false,
|
|
52
52
|
"publishConfig": {
|
package/server/context.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type {
|
|
2
|
+
Server as HttpServer,
|
|
3
|
+
IncomingHttpHeaders,
|
|
2
4
|
IncomingMessage,
|
|
3
5
|
ServerResponse,
|
|
4
|
-
IncomingHttpHeaders,
|
|
5
|
-
Server as HttpServer,
|
|
6
6
|
} from 'http';
|
|
7
7
|
import type qs from 'querystring';
|
|
8
8
|
import type { SSRMode } from 'common';
|
|
9
|
-
import type {
|
|
9
|
+
import type { Logger, Metrics, Reporter, ServerTiming } from './utils';
|
|
10
10
|
|
|
11
11
|
export interface RequestPayload {
|
|
12
12
|
[key: string]: unknown;
|
|
@@ -117,6 +117,7 @@ export interface ServerInitHookContext {
|
|
|
117
117
|
|
|
118
118
|
export interface ISAppContext {
|
|
119
119
|
appDirectory: string;
|
|
120
|
+
internalDirectory: string;
|
|
120
121
|
apiDirectory?: string;
|
|
121
122
|
lambdaDirectory?: string;
|
|
122
123
|
distDirectory: string;
|
package/server/devServer.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IncomingMessage, ServerResponse } from 'http';
|
|
2
|
-
import type {
|
|
2
|
+
import type { BffProxyOptions, NextFunction } from './utils';
|
|
3
3
|
|
|
4
4
|
export type DevServerHttpsOptions = boolean | { key: string; cert: string };
|
|
5
5
|
|
package/server/hook.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type {
|
|
2
|
+
IncomingHttpHeaders,
|
|
2
3
|
IncomingMessage,
|
|
3
4
|
ServerResponse,
|
|
4
|
-
IncomingHttpHeaders,
|
|
5
5
|
} from 'http';
|
|
6
|
-
import type { Reporter } from './utils';
|
|
7
6
|
import type { ServerRoute } from './route';
|
|
7
|
+
import type { Reporter } from './utils';
|
|
8
8
|
|
|
9
9
|
export type CookieAPI = {
|
|
10
10
|
/**
|