@modern-js/server 3.1.1 → 3.1.2
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,13 +1,13 @@
|
|
|
1
|
-
export * from "./repack.mjs";
|
|
2
|
-
export * from "./devOptions.mjs";
|
|
3
|
-
export * from "./fileReader.mjs";
|
|
4
|
-
export * from "./mock.mjs";
|
|
5
1
|
import path from "path";
|
|
6
2
|
import { AGGRED_DIR } from "@modern-js/server-core";
|
|
7
3
|
import { SERVER_BUNDLE_DIRECTORY, SERVER_DIR, logger } from "@modern-js/utils";
|
|
8
4
|
import dev_tools_watcher, { mergeWatchOptions } from "../dev-tools/watcher/index.mjs";
|
|
9
5
|
import { initOrUpdateMockMiddlewares } from "./mock.mjs";
|
|
10
6
|
import { debug } from "./utils.mjs";
|
|
7
|
+
export * from "./repack.mjs";
|
|
8
|
+
export * from "./devOptions.mjs";
|
|
9
|
+
export * from "./fileReader.mjs";
|
|
10
|
+
export * from "./mock.mjs";
|
|
11
11
|
async function onServerChange({ pwd, filepath, event, server }) {
|
|
12
12
|
const { mock } = AGGRED_DIR;
|
|
13
13
|
const mockPath = path.normalize(path.join(pwd, mock));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import __rslib_shim_module__ from "node:module";
|
|
2
2
|
const require = /*#__PURE__*/ __rslib_shim_module__.createRequire(/*#__PURE__*/ (()=>import.meta.url)());
|
|
3
|
+
import { chalk, getPackageManager, logger, tryResolve } from "@modern-js/utils";
|
|
3
4
|
import { fileURLToPath as __rspack_fileURLToPath } from "node:url";
|
|
4
5
|
import { dirname as __rspack_dirname } from "node:path";
|
|
5
|
-
import { chalk, getPackageManager, logger, tryResolve } from "@modern-js/utils";
|
|
6
6
|
var https_dirname = __rspack_dirname(__rspack_fileURLToPath(import.meta.url));
|
|
7
7
|
const genHttpsOptions = async (userOptions, pwd)=>{
|
|
8
8
|
const httpsOptions = 'boolean' == typeof userOptions ? {} : userOptions;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import __rslib_shim_module__ from "node:module";
|
|
2
2
|
const require = /*#__PURE__*/ __rslib_shim_module__.createRequire(/*#__PURE__*/ (()=>import.meta.url)());
|
|
3
|
-
export * from "./repack.mjs";
|
|
4
|
-
export * from "./devOptions.mjs";
|
|
5
|
-
export * from "./fileReader.mjs";
|
|
6
|
-
export * from "./mock.mjs";
|
|
7
3
|
import path from "path";
|
|
8
4
|
import { AGGRED_DIR } from "@modern-js/server-core";
|
|
9
5
|
import { SERVER_BUNDLE_DIRECTORY, SERVER_DIR, logger } from "@modern-js/utils";
|
|
10
6
|
import dev_tools_watcher, { mergeWatchOptions } from "../dev-tools/watcher/index.mjs";
|
|
11
7
|
import { initOrUpdateMockMiddlewares } from "./mock.mjs";
|
|
12
8
|
import { debug } from "./utils.mjs";
|
|
9
|
+
export * from "./repack.mjs";
|
|
10
|
+
export * from "./devOptions.mjs";
|
|
11
|
+
export * from "./fileReader.mjs";
|
|
12
|
+
export * from "./mock.mjs";
|
|
13
13
|
async function onServerChange({ pwd, filepath, event, server }) {
|
|
14
14
|
const { mock } = AGGRED_DIR;
|
|
15
15
|
const mockPath = path.normalize(path.join(pwd, mock));
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "3.1.
|
|
18
|
+
"version": "3.1.2",
|
|
19
19
|
"types": "./dist/types/index.d.ts",
|
|
20
20
|
"main": "./dist/cjs/index.js",
|
|
21
21
|
"exports": {
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
"minimatch": "^3.1.2",
|
|
45
45
|
"path-to-regexp": "^6.3.0",
|
|
46
46
|
"ws": "^8.19.0",
|
|
47
|
-
"@modern-js/runtime-utils": "3.1.
|
|
48
|
-
"@modern-js/server-core": "3.1.
|
|
49
|
-
"@modern-js/
|
|
50
|
-
"@modern-js/
|
|
51
|
-
"@modern-js/utils": "3.1.
|
|
47
|
+
"@modern-js/runtime-utils": "3.1.2",
|
|
48
|
+
"@modern-js/server-core": "3.1.2",
|
|
49
|
+
"@modern-js/types": "3.1.2",
|
|
50
|
+
"@modern-js/utils": "3.1.2",
|
|
51
|
+
"@modern-js/server-utils": "3.1.2"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@rslib/core": "0.20.
|
|
54
|
+
"@rslib/core": "0.20.3",
|
|
55
55
|
"@types/connect-history-api-fallback": "^1.5.4",
|
|
56
56
|
"@types/minimatch": "^3.0.5",
|
|
57
57
|
"@types/node": "^20",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"tsconfig-paths": "4.2.0",
|
|
62
62
|
"typescript": "^5",
|
|
63
63
|
"websocket": "^1.0.35",
|
|
64
|
+
"@modern-js/builder": "3.1.2",
|
|
64
65
|
"@modern-js/rslib": "2.68.10",
|
|
65
|
-
"@modern-js/builder": "3.1.1",
|
|
66
66
|
"@scripts/rstest-config": "2.66.0"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|