@modern-js/plugin-server 2.65.5 → 2.66.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.
@@ -1,7 +1,7 @@
|
|
1
1
|
export { getAssetsTags, getAssets } from './assets';
|
2
2
|
export declare const injectAssets: ({ html, pathname, distDir, nonce, }: {
|
3
3
|
html: string;
|
4
|
-
pathname?: string
|
4
|
+
pathname?: string;
|
5
5
|
distDir: string;
|
6
|
-
nonce?: string
|
6
|
+
nonce?: string;
|
7
7
|
}) => Promise<string>;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
export { getAssetsTags, getAssets } from './assets';
|
2
2
|
export declare const injectAssets: ({ html, pathname, nonce, nestedRoutes, routesManifest, routesJson, }: {
|
3
3
|
html: string;
|
4
|
-
pathname?: string
|
5
|
-
nonce?: string
|
4
|
+
pathname?: string;
|
5
|
+
nonce?: string;
|
6
6
|
nestedRoutes: Record<string, any>;
|
7
7
|
routesManifest: Record<string, any>;
|
8
8
|
routesJson: Record<string, any>;
|
package/dist/types/server.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
import type {
|
1
|
+
import type { ServerPluginLegacy } from '@modern-js/server-core';
|
2
2
|
import type { MiddlewareContext, NextFunction } from '@modern-js/types';
|
3
3
|
import { type Hook, type Middleware, loadMiddleware, loadServerMod } from './utils';
|
4
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
|
-
declare const _default: () =>
|
7
|
+
declare const _default: () => ServerPluginLegacy;
|
8
8
|
export default _default;
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "2.
|
18
|
+
"version": "2.66.0",
|
19
19
|
"types": "./dist/types/cli.d.ts",
|
20
20
|
"jsnext:source": "./src/cli",
|
21
21
|
"main": "./dist/cjs/cli.js",
|
@@ -65,21 +65,21 @@
|
|
65
65
|
},
|
66
66
|
"dependencies": {
|
67
67
|
"@swc/helpers": "0.5.13",
|
68
|
-
"@modern-js/
|
69
|
-
"@modern-js/utils": "2.
|
70
|
-
"@modern-js/
|
68
|
+
"@modern-js/runtime-utils": "2.66.0",
|
69
|
+
"@modern-js/server-utils": "2.66.0",
|
70
|
+
"@modern-js/utils": "2.66.0"
|
71
71
|
},
|
72
72
|
"devDependencies": {
|
73
73
|
"@types/jest": "^29",
|
74
74
|
"@types/node": "^14",
|
75
75
|
"jest": "^29",
|
76
76
|
"typescript": "^5",
|
77
|
-
"@modern-js/app-tools": "2.
|
78
|
-
"@modern-js/core": "2.
|
79
|
-
"@modern-js/
|
80
|
-
"@modern-js/
|
81
|
-
"@scripts/
|
82
|
-
"@scripts/
|
77
|
+
"@modern-js/app-tools": "2.66.0",
|
78
|
+
"@modern-js/core": "2.66.0",
|
79
|
+
"@modern-js/types": "2.66.0",
|
80
|
+
"@modern-js/server-core": "2.66.0",
|
81
|
+
"@scripts/build": "2.66.0",
|
82
|
+
"@scripts/jest-config": "2.66.0"
|
83
83
|
},
|
84
84
|
"sideEffects": [
|
85
85
|
"*.css",
|