@modern-js/plugin-server 0.0.0-nightly-20231206170639 → 0.0.0-nightly-20231208072146
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/cli.d.ts +1 -1
- package/dist/types/server.d.ts +1 -1
- package/dist/types/utils.d.ts +12 -12
- package/package.json +9 -9
package/dist/types/cli.d.ts
CHANGED
package/dist/types/server.d.ts
CHANGED
@@ -5,4 +5,4 @@ export { loadMiddleware, loadServerMod };
|
|
5
5
|
export type { Hook, Middleware };
|
6
6
|
export declare const compose: (middlewares: Middleware[]) => (ctx: MiddlewareContext, resolve: (value: void | PromiseLike<void>) => void, reject: (reason?: any) => void) => NextFunction;
|
7
7
|
declare const _default: () => ServerPlugin;
|
8
|
-
export default _default;
|
8
|
+
export default _default;
|
package/dist/types/utils.d.ts
CHANGED
@@ -2,19 +2,19 @@ import type { HookContext, MiddlewareContext, NextFunction } from '@modern-js/ty
|
|
2
2
|
export type Hook = (ctx: HookContext, next: NextFunction) => void;
|
3
3
|
export type Middleware = (ctx: MiddlewareContext, next: NextFunction) => void;
|
4
4
|
export type ServerMod = {
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
5
|
+
default: (args: any) => void;
|
6
|
+
middleware: Middleware | Middleware[];
|
7
|
+
afterMatch: Hook;
|
8
|
+
afterRender: Hook;
|
9
9
|
};
|
10
10
|
export declare const loadMiddleware: (pwd?: string) => {
|
11
|
-
|
11
|
+
middleware: any;
|
12
12
|
};
|
13
13
|
export declare const loadServerMod: (pwd?: string) => {
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
};
|
14
|
+
defaultExports: (args: any) => void;
|
15
|
+
hooks: {
|
16
|
+
afterMatch: Hook;
|
17
|
+
afterRender: Hook;
|
18
|
+
};
|
19
|
+
middleware: Middleware | Middleware[];
|
20
|
+
};
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "0.0.0-nightly-
|
18
|
+
"version": "0.0.0-nightly-20231208072146",
|
19
19
|
"types": "./dist/types/cli.d.ts",
|
20
20
|
"jsnext:source": "./src/cli",
|
21
21
|
"main": "./dist/cjs/cli.js",
|
@@ -51,20 +51,20 @@
|
|
51
51
|
},
|
52
52
|
"dependencies": {
|
53
53
|
"@swc/helpers": "0.5.3",
|
54
|
-
"@modern-js/server-utils": "0.0.0-nightly-
|
55
|
-
"@modern-js/utils": "0.0.0-nightly-
|
54
|
+
"@modern-js/server-utils": "0.0.0-nightly-20231208072146",
|
55
|
+
"@modern-js/utils": "0.0.0-nightly-20231208072146"
|
56
56
|
},
|
57
57
|
"devDependencies": {
|
58
58
|
"typescript": "^5",
|
59
59
|
"@types/jest": "^29",
|
60
60
|
"@types/node": "^14",
|
61
61
|
"jest": "^29",
|
62
|
-
"@modern-js/server-core": "0.0.0-nightly-
|
63
|
-
"@modern-js/app-tools": "0.0.0-nightly-
|
64
|
-
"@modern-js/core": "0.0.0-nightly-
|
65
|
-
"@scripts/build": "0.0.0-nightly-
|
66
|
-
"@modern-js/types": "0.0.0-nightly-
|
67
|
-
"@scripts/jest-config": "0.0.0-nightly-
|
62
|
+
"@modern-js/server-core": "0.0.0-nightly-20231208072146",
|
63
|
+
"@modern-js/app-tools": "0.0.0-nightly-20231208072146",
|
64
|
+
"@modern-js/core": "0.0.0-nightly-20231208072146",
|
65
|
+
"@scripts/build": "0.0.0-nightly-20231208072146",
|
66
|
+
"@modern-js/types": "0.0.0-nightly-20231208072146",
|
67
|
+
"@scripts/jest-config": "0.0.0-nightly-20231208072146"
|
68
68
|
},
|
69
69
|
"sideEffects": [
|
70
70
|
"*.css",
|