@modern-js/server-core 3.1.4 → 3.2.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/dist/cjs/adapters/node/helper/index.js +4 -4
- package/dist/cjs/adapters/node/index.js +9 -9
- package/dist/cjs/adapters/node/plugins/resource.js +5 -5
- package/dist/cjs/adapters/node/plugins/static.js +2 -2
- package/dist/cjs/hono.js +2 -2
- package/dist/cjs/plugins/index.js +8 -8
- package/dist/cjs/plugins/monitors.js +2 -2
- package/dist/cjs/plugins/render/inject.js +2 -2
- package/dist/cjs/plugins/render/ssrCache.js +2 -2
- package/dist/cjs/serverBase.js +2 -2
- package/dist/cjs/utils/error.js +2 -2
- package/dist/cjs/utils/publicDir.js +3 -3
- package/package.json +8 -8
|
@@ -24,12 +24,12 @@ var __webpack_require__ = {};
|
|
|
24
24
|
var __webpack_exports__ = {};
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
|
|
27
|
+
isResFinalized: ()=>external_utils_js_namespaceObject.isResFinalized,
|
|
28
28
|
loadCacheConfig: ()=>external_loadCache_js_namespaceObject.loadCacheConfig,
|
|
29
|
-
loadServerEnv: ()=>external_loadEnv_js_namespaceObject.loadServerEnv,
|
|
30
29
|
loadServerCliConfig: ()=>external_loadConfig_js_namespaceObject.loadServerCliConfig,
|
|
31
|
-
|
|
32
|
-
loadServerPlugins: ()=>external_loadPlugin_js_namespaceObject.loadServerPlugins
|
|
30
|
+
loadServerEnv: ()=>external_loadEnv_js_namespaceObject.loadServerEnv,
|
|
31
|
+
loadServerPlugins: ()=>external_loadPlugin_js_namespaceObject.loadServerPlugins,
|
|
32
|
+
loadServerRuntimeConfig: ()=>external_loadConfig_js_namespaceObject.loadServerRuntimeConfig
|
|
33
33
|
});
|
|
34
34
|
const external_loadEnv_js_namespaceObject = require("./loadEnv.js");
|
|
35
35
|
const external_loadPlugin_js_namespaceObject = require("./loadPlugin.js");
|
|
@@ -24,23 +24,23 @@ var __webpack_require__ = {};
|
|
|
24
24
|
var __webpack_exports__ = {};
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
|
|
27
|
+
connectMid2HonoMid: ()=>external_hono_js_namespaceObject.connectMid2HonoMid,
|
|
28
28
|
connectMockMid2HonoMid: ()=>external_hono_js_namespaceObject.connectMockMid2HonoMid,
|
|
29
|
-
loadServerCliConfig: ()=>external_helper_index_js_namespaceObject.loadServerCliConfig,
|
|
30
29
|
createNodeServer: ()=>external_node_js_namespaceObject.createNodeServer,
|
|
30
|
+
createWebRequest: ()=>external_node_js_namespaceObject.createWebRequest,
|
|
31
31
|
getHtmlTemplates: ()=>index_js_namespaceObject.getHtmlTemplates,
|
|
32
32
|
getServerManifest: ()=>index_js_namespaceObject.getServerManifest,
|
|
33
|
+
httpCallBack2HonoMid: ()=>external_hono_js_namespaceObject.httpCallBack2HonoMid,
|
|
33
34
|
injectNodeSeverPlugin: ()=>index_js_namespaceObject.injectNodeSeverPlugin,
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
injectResourcePlugin: ()=>index_js_namespaceObject.injectResourcePlugin,
|
|
36
|
+
injectRscManifestPlugin: ()=>index_js_namespaceObject.injectRscManifestPlugin,
|
|
37
|
+
loadCacheConfig: ()=>external_helper_index_js_namespaceObject.loadCacheConfig,
|
|
38
|
+
loadServerCliConfig: ()=>external_helper_index_js_namespaceObject.loadServerCliConfig,
|
|
39
|
+
loadServerEnv: ()=>external_helper_index_js_namespaceObject.loadServerEnv,
|
|
36
40
|
loadServerPlugins: ()=>external_helper_index_js_namespaceObject.loadServerPlugins,
|
|
37
41
|
loadServerRuntimeConfig: ()=>external_helper_index_js_namespaceObject.loadServerRuntimeConfig,
|
|
38
42
|
sendResponse: ()=>external_node_js_namespaceObject.sendResponse,
|
|
39
|
-
|
|
40
|
-
injectRscManifestPlugin: ()=>index_js_namespaceObject.injectRscManifestPlugin,
|
|
41
|
-
loadServerEnv: ()=>external_helper_index_js_namespaceObject.loadServerEnv,
|
|
42
|
-
injectResourcePlugin: ()=>index_js_namespaceObject.injectResourcePlugin,
|
|
43
|
-
connectMid2HonoMid: ()=>external_hono_js_namespaceObject.connectMid2HonoMid
|
|
43
|
+
serverStaticPlugin: ()=>index_js_namespaceObject.serverStaticPlugin
|
|
44
44
|
});
|
|
45
45
|
const external_hono_js_namespaceObject = require("./hono.js");
|
|
46
46
|
const external_node_js_namespaceObject = require("./node.js");
|
|
@@ -33,15 +33,15 @@ var __webpack_require__ = {};
|
|
|
33
33
|
var __webpack_exports__ = {};
|
|
34
34
|
__webpack_require__.r(__webpack_exports__);
|
|
35
35
|
__webpack_require__.d(__webpack_exports__, {
|
|
36
|
-
getRscSSRManifest: ()=>getRscSSRManifest,
|
|
37
|
-
injectTemplates: ()=>injectTemplates,
|
|
38
|
-
injectRscManifestPlugin: ()=>injectRscManifestPlugin,
|
|
39
|
-
getHtmlTemplates: ()=>getHtmlTemplates,
|
|
40
36
|
getClientManifest: ()=>getClientManifest,
|
|
37
|
+
getHtmlTemplates: ()=>getHtmlTemplates,
|
|
38
|
+
getRscSSRManifest: ()=>getRscSSRManifest,
|
|
41
39
|
getRscServerManifest: ()=>getRscServerManifest,
|
|
42
40
|
getServerManifest: ()=>getServerManifest,
|
|
43
41
|
injectResourcePlugin: ()=>injectResourcePlugin,
|
|
44
|
-
|
|
42
|
+
injectRscManifestPlugin: ()=>injectRscManifestPlugin,
|
|
43
|
+
injectServerManifest: ()=>injectServerManifest,
|
|
44
|
+
injectTemplates: ()=>injectTemplates
|
|
45
45
|
});
|
|
46
46
|
const external_path_namespaceObject = require("path");
|
|
47
47
|
var external_path_default = /*#__PURE__*/ __webpack_require__.n(external_path_namespaceObject);
|
|
@@ -33,9 +33,9 @@ var __webpack_require__ = {};
|
|
|
33
33
|
var __webpack_exports__ = {};
|
|
34
34
|
__webpack_require__.r(__webpack_exports__);
|
|
35
35
|
__webpack_require__.d(__webpack_exports__, {
|
|
36
|
+
createPublicMiddleware: ()=>createPublicMiddleware,
|
|
36
37
|
createStaticMiddleware: ()=>createStaticMiddleware,
|
|
37
|
-
serverStaticPlugin: ()=>serverStaticPlugin
|
|
38
|
-
createPublicMiddleware: ()=>createPublicMiddleware
|
|
38
|
+
serverStaticPlugin: ()=>serverStaticPlugin
|
|
39
39
|
});
|
|
40
40
|
const external_path_namespaceObject = require("path");
|
|
41
41
|
var external_path_default = /*#__PURE__*/ __webpack_require__.n(external_path_namespaceObject);
|
package/dist/cjs/hono.js
CHANGED
|
@@ -24,10 +24,10 @@ var __webpack_require__ = {};
|
|
|
24
24
|
var __webpack_exports__ = {};
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
|
|
27
|
+
deleteCookie: ()=>cookie_namespaceObject.deleteCookie,
|
|
28
28
|
getCookie: ()=>cookie_namespaceObject.getCookie,
|
|
29
29
|
languageDetector: ()=>language_namespaceObject.languageDetector,
|
|
30
|
-
|
|
30
|
+
setCookie: ()=>cookie_namespaceObject.setCookie
|
|
31
31
|
});
|
|
32
32
|
const cookie_namespaceObject = require("hono/cookie");
|
|
33
33
|
const language_namespaceObject = require("hono/language");
|
|
@@ -24,18 +24,18 @@ var __webpack_require__ = {};
|
|
|
24
24
|
var __webpack_exports__ = {};
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
|
|
28
|
-
faviconPlugin: ()=>external_favicon_js_namespaceObject.faviconPlugin,
|
|
27
|
+
compatPlugin: ()=>external_compat_index_js_namespaceObject.compatPlugin,
|
|
29
28
|
createDefaultPlugins: ()=>external_default_js_namespaceObject.createDefaultPlugins,
|
|
29
|
+
faviconPlugin: ()=>external_favicon_js_namespaceObject.faviconPlugin,
|
|
30
|
+
getRenderHandler: ()=>index_js_namespaceObject.getRenderHandler,
|
|
31
|
+
handleSetupResult: ()=>external_compat_index_js_namespaceObject.handleSetupResult,
|
|
32
|
+
injectConfigMiddlewarePlugin: ()=>external_middlewares_js_namespaceObject.injectConfigMiddlewarePlugin,
|
|
30
33
|
injectRenderHandlerPlugin: ()=>index_js_namespaceObject.injectRenderHandlerPlugin,
|
|
34
|
+
injectServerTiming: ()=>external_monitors_js_namespaceObject.injectServerTiming,
|
|
35
|
+
injectloggerPlugin: ()=>external_monitors_js_namespaceObject.injectloggerPlugin,
|
|
31
36
|
logPlugin: ()=>external_log_js_namespaceObject.logPlugin,
|
|
32
37
|
processedByPlugin: ()=>external_processedBy_js_namespaceObject.processedByPlugin,
|
|
33
|
-
|
|
34
|
-
compatPlugin: ()=>external_compat_index_js_namespaceObject.compatPlugin,
|
|
35
|
-
renderPlugin: ()=>index_js_namespaceObject.renderPlugin,
|
|
36
|
-
handleSetupResult: ()=>external_compat_index_js_namespaceObject.handleSetupResult,
|
|
37
|
-
getRenderHandler: ()=>index_js_namespaceObject.getRenderHandler,
|
|
38
|
-
injectServerTiming: ()=>external_monitors_js_namespaceObject.injectServerTiming
|
|
38
|
+
renderPlugin: ()=>index_js_namespaceObject.renderPlugin
|
|
39
39
|
});
|
|
40
40
|
const index_js_namespaceObject = require("./render/index.js");
|
|
41
41
|
const external_favicon_js_namespaceObject = require("./favicon.js");
|
|
@@ -25,9 +25,9 @@ var __webpack_exports__ = {};
|
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
27
|
initMonitorsPlugin: ()=>initMonitorsPlugin,
|
|
28
|
+
injectServerTiming: ()=>injectServerTiming,
|
|
28
29
|
injectloggerPlugin: ()=>injectloggerPlugin,
|
|
29
|
-
requestLatencyMiddleware: ()=>requestLatencyMiddleware
|
|
30
|
-
injectServerTiming: ()=>injectServerTiming
|
|
30
|
+
requestLatencyMiddleware: ()=>requestLatencyMiddleware
|
|
31
31
|
});
|
|
32
32
|
const time_namespaceObject = require("@modern-js/runtime-utils/time");
|
|
33
33
|
const external_constants_js_namespaceObject = require("../constants.js");
|
|
@@ -24,8 +24,8 @@ var __webpack_require__ = {};
|
|
|
24
24
|
var __webpack_exports__ = {};
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
getRenderHandler: ()=>getRenderHandler,
|
|
28
|
+
injectRenderHandlerPlugin: ()=>injectRenderHandlerPlugin
|
|
29
29
|
});
|
|
30
30
|
const external_render_js_namespaceObject = require("./render.js");
|
|
31
31
|
const injectRenderHandlerPlugin = ({ staticGenerate, cacheConfig })=>({
|
|
@@ -25,8 +25,8 @@ var __webpack_exports__ = {};
|
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
27
|
getCacheResult: ()=>getCacheResult,
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
matchCacheControl: ()=>matchCacheControl,
|
|
29
|
+
shouldUseCache: ()=>shouldUseCache
|
|
30
30
|
});
|
|
31
31
|
const storer_namespaceObject = require("@modern-js/runtime-utils/storer");
|
|
32
32
|
const external_constants_js_namespaceObject = require("../../constants.js");
|
package/dist/cjs/serverBase.js
CHANGED
|
@@ -24,8 +24,8 @@ var __webpack_require__ = {};
|
|
|
24
24
|
var __webpack_exports__ = {};
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
ServerBase: ()=>ServerBase,
|
|
28
|
+
createServerBase: ()=>createServerBase
|
|
29
29
|
});
|
|
30
30
|
const server_namespaceObject = require("@modern-js/plugin/server");
|
|
31
31
|
const external_hono_namespaceObject = require("hono");
|
package/dist/cjs/utils/error.js
CHANGED
|
@@ -25,8 +25,8 @@ var __webpack_exports__ = {};
|
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
27
|
ErrorDigest: ()=>error_ErrorDigest,
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
createErrorHtml: ()=>createErrorHtml,
|
|
29
|
+
onError: ()=>onError
|
|
30
30
|
});
|
|
31
31
|
const external_request_js_namespaceObject = require("./request.js");
|
|
32
32
|
const ERROR_PAGE_TEXT = {
|
|
@@ -33,12 +33,12 @@ var __webpack_require__ = {};
|
|
|
33
33
|
var __webpack_exports__ = {};
|
|
34
34
|
__webpack_require__.r(__webpack_exports__);
|
|
35
35
|
__webpack_require__.d(__webpack_exports__, {
|
|
36
|
-
resolvePublicDirPaths: ()=>resolvePublicDirPaths,
|
|
37
36
|
getPublicDirConfig: ()=>getPublicDirConfig,
|
|
38
|
-
getPublicDirRoutePrefixes: ()=>getPublicDirRoutePrefixes,
|
|
39
37
|
getPublicDirPatterns: ()=>getPublicDirPatterns,
|
|
38
|
+
getPublicDirRoutePrefixes: ()=>getPublicDirRoutePrefixes,
|
|
40
39
|
normalizePublicDir: ()=>normalizePublicDir,
|
|
41
|
-
normalizePublicDirPath: ()=>normalizePublicDirPath
|
|
40
|
+
normalizePublicDirPath: ()=>normalizePublicDirPath,
|
|
41
|
+
resolvePublicDirPaths: ()=>resolvePublicDirPaths
|
|
42
42
|
});
|
|
43
43
|
const external_path_namespaceObject = require("path");
|
|
44
44
|
var external_path_default = /*#__PURE__*/ __webpack_require__.n(external_path_namespaceObject);
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "3.
|
|
18
|
+
"version": "3.2.0",
|
|
19
19
|
"types": "./dist/types/index.d.ts",
|
|
20
20
|
"main": "./dist/cjs/index.js",
|
|
21
21
|
"exports": {
|
|
@@ -71,20 +71,20 @@
|
|
|
71
71
|
"flatted": "^3.4.2",
|
|
72
72
|
"hono": "^4.11.7",
|
|
73
73
|
"ts-deepmerge": "7.0.3",
|
|
74
|
-
"@modern-js/plugin": "3.
|
|
75
|
-
"@modern-js/
|
|
76
|
-
"@modern-js/utils": "3.
|
|
74
|
+
"@modern-js/plugin": "3.2.0",
|
|
75
|
+
"@modern-js/utils": "3.2.0",
|
|
76
|
+
"@modern-js/runtime-utils": "3.2.0"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
|
-
"@rslib/core": "0.21.
|
|
79
|
+
"@rslib/core": "0.21.4",
|
|
80
80
|
"@types/cloneable-readable": "^2.0.3",
|
|
81
81
|
"@types/merge-deep": "^3.0.3",
|
|
82
82
|
"@types/node": "^20",
|
|
83
83
|
"http-proxy-middleware": "^2.0.9",
|
|
84
84
|
"typescript": "^5",
|
|
85
|
-
"@modern-js/
|
|
86
|
-
"@
|
|
87
|
-
"@
|
|
85
|
+
"@modern-js/rslib": "2.68.10",
|
|
86
|
+
"@modern-js/types": "3.2.0",
|
|
87
|
+
"@scripts/rstest-config": "2.66.0"
|
|
88
88
|
},
|
|
89
89
|
"sideEffects": false,
|
|
90
90
|
"publishConfig": {
|