@modern-js/server 1.1.5-beta.0 → 1.1.5-beta.1
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.
|
@@ -559,7 +559,11 @@ export class ModernServer {
|
|
|
559
559
|
|
|
560
560
|
if (entryName === status.toString() || entryName === '_error') {
|
|
561
561
|
try {
|
|
562
|
-
const file = await this.routeRenderHandler(
|
|
562
|
+
const file = await this.routeRenderHandler({
|
|
563
|
+
route,
|
|
564
|
+
ctx: context,
|
|
565
|
+
runner: this.runner
|
|
566
|
+
});
|
|
563
567
|
|
|
564
568
|
if (file) {
|
|
565
569
|
context.res.end(file.content);
|
|
@@ -594,7 +594,11 @@ class ModernServer {
|
|
|
594
594
|
|
|
595
595
|
if (entryName === status.toString() || entryName === '_error') {
|
|
596
596
|
try {
|
|
597
|
-
const file = await this.routeRenderHandler(
|
|
597
|
+
const file = await this.routeRenderHandler({
|
|
598
|
+
route,
|
|
599
|
+
ctx: context,
|
|
600
|
+
runner: this.runner
|
|
601
|
+
});
|
|
598
602
|
|
|
599
603
|
if (file) {
|
|
600
604
|
context.res.end(file.content);
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.1.5-beta.
|
|
14
|
+
"version": "1.1.5-beta.1",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
@@ -26,14 +26,6 @@
|
|
|
26
26
|
"default": "./dist/js/treeshaking/index.js"
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
|
-
"scripts": {
|
|
30
|
-
"prepare": "pnpm build",
|
|
31
|
-
"prepublishOnly": "pnpm build --platform",
|
|
32
|
-
"new": "modern new",
|
|
33
|
-
"build": "modern build",
|
|
34
|
-
"dev": "modern build --watch",
|
|
35
|
-
"test": "modern test --passWithNoTests"
|
|
36
|
-
},
|
|
37
29
|
"dependencies": {
|
|
38
30
|
"@babel/core": "^7.15.0",
|
|
39
31
|
"@babel/compat-data": "^7.15.0",
|
|
@@ -41,12 +33,12 @@
|
|
|
41
33
|
"@babel/preset-typescript": "^7.15.0",
|
|
42
34
|
"@babel/register": "^7.15.3",
|
|
43
35
|
"@babel/runtime": "^7",
|
|
44
|
-
"@modern-js/core": "
|
|
45
|
-
"@modern-js/hmr-client": "
|
|
46
|
-
"@modern-js/server-plugin": "
|
|
47
|
-
"@modern-js/server-utils": "
|
|
48
|
-
"@modern-js/bff-utils": "
|
|
49
|
-
"@modern-js/utils": "
|
|
36
|
+
"@modern-js/core": "^1.1.4",
|
|
37
|
+
"@modern-js/hmr-client": "^1.1.1",
|
|
38
|
+
"@modern-js/server-plugin": "^1.1.2",
|
|
39
|
+
"@modern-js/server-utils": "^1.1.2",
|
|
40
|
+
"@modern-js/bff-utils": "^1.1.1",
|
|
41
|
+
"@modern-js/utils": "^1.1.4",
|
|
50
42
|
"axios": "^0.21.4",
|
|
51
43
|
"babel-plugin-module-resolver": "^4.1.0",
|
|
52
44
|
"chokidar": "^3.5.2",
|
|
@@ -71,7 +63,7 @@
|
|
|
71
63
|
"devDependencies": {
|
|
72
64
|
"@modern-js/module-tools": "^1.1.2",
|
|
73
65
|
"@modern-js/plugin-testing": "^1.1.1",
|
|
74
|
-
"@modern-js/types": "
|
|
66
|
+
"@modern-js/types": "^1.1.3",
|
|
75
67
|
"@types/jest": "^26",
|
|
76
68
|
"@types/lru-cache": "^5.1.1",
|
|
77
69
|
"@types/mime-types": "^2.1.0",
|
|
@@ -100,5 +92,11 @@
|
|
|
100
92
|
"publishConfig": {
|
|
101
93
|
"registry": "https://registry.npmjs.org/",
|
|
102
94
|
"access": "public"
|
|
95
|
+
},
|
|
96
|
+
"scripts": {
|
|
97
|
+
"new": "modern new",
|
|
98
|
+
"build": "modern build",
|
|
99
|
+
"dev": "modern build --watch",
|
|
100
|
+
"test": "modern test --passWithNoTests"
|
|
103
101
|
}
|
|
104
|
-
}
|
|
102
|
+
}
|
|
@@ -584,7 +584,11 @@ export class ModernServer {
|
|
|
584
584
|
// check entryName, aviod matched '/' route
|
|
585
585
|
if (entryName === status.toString() || entryName === '_error') {
|
|
586
586
|
try {
|
|
587
|
-
const file = await this.routeRenderHandler(
|
|
587
|
+
const file = await this.routeRenderHandler({
|
|
588
|
+
route,
|
|
589
|
+
ctx: context,
|
|
590
|
+
runner: this.runner,
|
|
591
|
+
});
|
|
588
592
|
if (file) {
|
|
589
593
|
context.res.end(file.content);
|
|
590
594
|
return;
|