@jsenv/server 16.3.4 → 16.3.6
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/client/default_body_4xx_5xx/4xx.html +2 -2
- package/dist/client/route_inspector/route_inspector.html +96 -90
- package/dist/formidable_index/formidable_index.js +2 -2
- package/dist/formidable_index/jsenv_server_node_modules.js +1 -1
- package/dist/jsenv_server.js +2 -3
- package/dist/ws/ws.js +19 -9
- package/package.json +6 -6
- package/src/services/default_body_4xx_5xx/client/4xx.html +14 -14
- package/src/services/route_inspector/client/code_block.js +58 -58
- package/src/services/route_inspector/client/route_inspector.html +127 -127
- package/src/services/route_inspector/jsenv_service_route_inspector.js +2 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/server",
|
|
3
|
-
"version": "16.3.
|
|
3
|
+
"version": "16.3.6",
|
|
4
4
|
"description": "A modern Node.js HTTP server with declarative routing, content negotiation, and WebSocket support",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"prepublishOnly": "npm run build"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"launch-editor": "2.
|
|
38
|
+
"launch-editor": "2.13.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@jsenv/abort": "../../tooling/abort",
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
"@jsenv/url-pattern": "../../tooling/url-pattern",
|
|
54
54
|
"@jsenv/urls": "../../tooling/urls",
|
|
55
55
|
"@jsenv/utils": "../../tooling/utils",
|
|
56
|
-
"eventsource": "4.
|
|
56
|
+
"eventsource": "4.1.0",
|
|
57
57
|
"formidable": "3.5.4",
|
|
58
|
-
"playwright": "1.
|
|
59
|
-
"undici": "7.
|
|
60
|
-
"ws": "8.
|
|
58
|
+
"playwright": "1.58.1",
|
|
59
|
+
"undici": "7.24.2",
|
|
60
|
+
"ws": "8.19.0"
|
|
61
61
|
},
|
|
62
62
|
"engines": {
|
|
63
63
|
"node": ">=22.13.1"
|
|
@@ -6,46 +6,46 @@
|
|
|
6
6
|
<title>${status} ${statusText}</title>
|
|
7
7
|
<style>
|
|
8
8
|
body {
|
|
9
|
-
font-family: Arial, sans-serif;
|
|
10
|
-
background-color: #f8f9fa;
|
|
11
|
-
color: #333;
|
|
12
9
|
display: flex;
|
|
13
|
-
align-items: center;
|
|
14
|
-
justify-content: center;
|
|
15
10
|
min-height: 100vh;
|
|
16
11
|
margin: 0;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
color: #333;
|
|
15
|
+
font-family: Arial, sans-serif;
|
|
16
|
+
background-color: #f8f9fa;
|
|
17
17
|
}
|
|
18
18
|
.error_container {
|
|
19
|
+
padding: 20px;
|
|
19
20
|
text-align: center;
|
|
20
21
|
background: #fff;
|
|
21
|
-
padding: 20px;
|
|
22
22
|
border-radius: 8px;
|
|
23
23
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
24
24
|
}
|
|
25
25
|
.error_status {
|
|
26
|
-
font-size: 5rem;
|
|
27
|
-
color: #dc3545;
|
|
28
26
|
margin: 0;
|
|
27
|
+
color: #dc3545;
|
|
28
|
+
font-size: 5rem;
|
|
29
29
|
}
|
|
30
30
|
.error_status_text {
|
|
31
|
-
font-size: 1.5rem;
|
|
32
31
|
margin: 10px 0;
|
|
33
|
-
|
|
32
|
+
font-size: 1.5rem;
|
|
34
33
|
text-align: left;
|
|
34
|
+
word-break: break-word;
|
|
35
35
|
}
|
|
36
36
|
.error_message {
|
|
37
|
-
font-size: 1rem;
|
|
38
37
|
color: #555;
|
|
39
|
-
|
|
38
|
+
font-size: 1rem;
|
|
40
39
|
text-align: left;
|
|
40
|
+
word-break: break-word;
|
|
41
41
|
}
|
|
42
42
|
.home_link {
|
|
43
|
-
margin-top: 15px;
|
|
44
43
|
display: inline-block;
|
|
44
|
+
margin-top: 15px;
|
|
45
45
|
padding: 10px 15px;
|
|
46
|
-
background-color: #007bff;
|
|
47
46
|
color: #fff;
|
|
48
47
|
text-decoration: none;
|
|
48
|
+
background-color: #007bff;
|
|
49
49
|
border-radius: 5px;
|
|
50
50
|
}
|
|
51
51
|
.home_link:hover {
|
|
@@ -8,43 +8,43 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
(() => {
|
|
11
|
-
const css = /*css*/ `
|
|
12
|
-
*[aria-hidden="true"] {
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.clipboard_container {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
#copied_notif {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
button {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
button:hover {
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
`;
|
|
11
|
+
const css = /* css */ `
|
|
12
|
+
*[aria-hidden="true"] {
|
|
13
|
+
display: none;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.clipboard_container {
|
|
17
|
+
display: flex;
|
|
18
|
+
padding: 8px;
|
|
19
|
+
align-items: center;
|
|
20
|
+
gap: 5px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
#copied_notif {
|
|
24
|
+
padding: 0.2em 0.5em;
|
|
25
|
+
color: white;
|
|
26
|
+
font-size: 80%;
|
|
27
|
+
background: black;
|
|
28
|
+
border-radius: 3px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
button {
|
|
32
|
+
width: 32px;
|
|
33
|
+
height: 32px;
|
|
34
|
+
background: none;
|
|
35
|
+
background-color: rgb(246, 248, 250);
|
|
36
|
+
border: none;
|
|
37
|
+
border-width: 1px;
|
|
38
|
+
border-style: solid;
|
|
39
|
+
border-color: rgb(209, 217, 224);
|
|
40
|
+
border-radius: 6px;
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
button:hover {
|
|
45
|
+
background-color: rgb(239, 242, 245);
|
|
46
|
+
}
|
|
47
|
+
`;
|
|
48
48
|
|
|
49
49
|
const html = /* html */ `<style>
|
|
50
50
|
${css}
|
|
@@ -126,27 +126,27 @@ button:hover {
|
|
|
126
126
|
})();
|
|
127
127
|
|
|
128
128
|
(() => {
|
|
129
|
-
const css = /*css*/ `
|
|
130
|
-
/* :host {
|
|
131
|
-
|
|
132
|
-
}
|
|
133
|
-
:host code[class*="language-"], :host pre[class*="language-"]{
|
|
134
|
-
|
|
135
|
-
} */
|
|
136
|
-
#code_block {
|
|
137
|
-
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
#pre {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
}
|
|
149
|
-
`;
|
|
129
|
+
const css = /* css */ `
|
|
130
|
+
/* :host {
|
|
131
|
+
display: block;
|
|
132
|
+
}
|
|
133
|
+
:host code[class*="language-"], :host pre[class*="language-"]{
|
|
134
|
+
margin-top: 0;
|
|
135
|
+
} */
|
|
136
|
+
#code_block {
|
|
137
|
+
position: relative;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
#pre {
|
|
141
|
+
margin-top: 16px;
|
|
142
|
+
margin-right: 0;
|
|
143
|
+
margin-bottom: 16px;
|
|
144
|
+
margin-left: 0;
|
|
145
|
+
padding: 16px;
|
|
146
|
+
font-size: 86%;
|
|
147
|
+
background: #333;
|
|
148
|
+
}
|
|
149
|
+
`;
|
|
150
150
|
|
|
151
151
|
const html = /* html */ `<style>
|
|
152
152
|
${css}
|