1
0
Fork 0
forked from svrjs/svrjs
Commit graph

217 commits

Author SHA1 Message Date
d34d4bcc2d feat: add SVR.JS Core 2024-11-10 15:42:56 +01:00
1174a348b6 refactor: use config.wwwroot instead of current working directory as a webroot in internal code 2024-11-10 12:14:55 +01:00
5a0ea4007e feat: add options related to disabling configuration file saving, and use them in the "dev" script 2024-11-09 13:31:31 +01:00
8e1ea9e5bc build: add rebuilding SVR.JS when the source code changes when the "dev" script is executed 2024-11-09 13:20:02 +01:00
ad23033b15 feat: add support for Deno 2 for additional SVR.JS utilities 2024-10-19 07:16:02 +02:00
38cf8bb68d fix: fix the cluster limit of one process for Deno with shimmed clustering module 2024-10-18 21:01:51 +02:00
63d3f5df32 fix: fix Deno inconsistencies regarding HTTP status code texts 2024-10-18 20:21:01 +02:00
ad0417b468 fix: add notice about Deno support being experimental 2024-10-18 20:15:13 +02:00
648cf488d9 chore: add a notice about the cluster shim being used for Deno in index.js file 2024-10-18 20:09:42 +02:00
b1a40e7a20 chore: rename the cluster shim method and function, because it's also for Deno 2, not just for Bun 2024-10-18 20:08:52 +02:00
9abb89d560 feat: add support for Deno 2 2024-10-18 20:05:02 +02:00
2f475b4066 fix: fix a bug with 497, 598, and 599 status code HTTP responses 2024-10-15 18:23:09 +02:00
ff15ec542e fix: fix a bug with no request ID shown for multiline log entries for HTTP requests 2024-09-25 15:41:39 +02:00
f01d5d5b1e refactor: move SVR.JS logo for the log viewer to src/res/logo.js file 2024-09-20 06:36:37 +02:00
147c7c5d03 build: move utils/ directory to src/extraScripts/ 2024-09-20 06:27:28 +02:00
b5edc0a5dd feat: change the default page CSS to match the new redesigned SVR.JS website 2024-09-11 05:51:12 +02:00
645223451a refactor: move printing the command line usage to a separate function 2024-09-02 18:07:07 +02:00
fe6853524e test: mock "path" module in forbidden path utility function unit tests 2024-09-02 13:08:05 +02:00
c2eed2870d style: style the code according to new Prettier rules 2024-09-01 21:54:42 +02:00
519c80f397 Convert one more string to template string 2024-09-01 09:51:29 +02:00
0450094c68 Add tests for middleware, add ".js" file extensions inside the require functions in tests for utility functions, make error handling in URL rewriting middleware better, and lint out static file serving and directory listing middleware 2024-08-30 22:11:16 +02:00
1444660d19 Fix "NaN" file sizes in directory listings 2024-08-30 06:39:06 +02:00
e293c08592 Convert even more strings to template strings 2024-08-30 06:29:32 +02:00
41901d9a27 Fix the forbidden path checking function, and add test cases, where it would fail before the fix 2024-08-29 19:37:03 +02:00
9f51366515 Simplify ES6-style functions 2024-08-29 19:27:04 +02:00
57d988831f Replace ES6-style functions in server-side JavaScript header with ES5-style functions 2024-08-29 19:19:11 +02:00
0aa4f9df2b Replace ES5-style functions with ES6-style ones 2024-08-29 19:17:28 +02:00
09e33a2265 Lint out the codebase 2024-08-29 19:15:49 +02:00
058c39ab0d Replace __dirname with process.dirname 2024-08-29 19:15:37 +02:00
979a30e938 Replace var's with let's and const's 2024-08-29 19:15:07 +02:00
3b4fd9641c Change blocklist-related commands to use .forEach() function instead of a for loop 2024-08-29 19:05:02 +02:00
ce2a73dbd3 Lint out the codebase 2024-08-28 21:46:20 +02:00
9fa194b33d Fix the regular expression in the URL parser 2024-08-28 21:45:36 +02:00
a33a86ee62 Fix bug with "ext" variable passed to .tar.gz mod handler 2024-08-28 18:28:07 +02:00
82b0510774 Optimize URL sanitizer 2024-08-28 16:17:06 +02:00
64b4e056cb Make sizify() function more concise and readable 2024-08-28 13:24:15 +02:00
0318047078 Optimize function related to forbidden path checking and hostname matching 2024-08-28 11:29:54 +02:00
32d29be09f Change the comment above the URL parser function 2024-08-28 11:09:26 +02:00
a4ca117020 Optimize fixNodeMojibakeURL function 2024-08-28 10:52:39 +02:00
486820e1da Converted one more string to template string 2024-08-28 07:35:27 +02:00
17614dc6c7 Clone parsed JSON into process.serverConfig using deepClone() function 2024-08-28 07:27:40 +02:00
5bd369e38d Make deepClone create a null prototype object, and make process.serverConfig a null prototype object. 2024-08-28 07:20:28 +02:00
4b37e08bb5 Optimize deepClone function 2024-08-28 07:14:13 +02:00
fb887e4122 Replace deep clone in getCustomHeaders() function with shallow clone 2024-08-27 23:13:02 +02:00
63633d1de1 Fix the deepClone function 2024-08-27 22:52:36 +02:00
67d9ae524c Optimize deepClone function even more 2024-08-27 22:51:41 +02:00
c73ce5d9f7 Optimize deepClone function and lint out the codebase 2024-08-27 22:49:05 +02:00
47ad7006e9 Replace the iteration with object spread operator 2024-08-27 22:44:21 +02:00
4506d38eac Replace some ES5-style functions with ES6-style ones 2024-08-27 21:53:37 +02:00
12a4bcdc8a Remove unneeded global flag for /\.$/ regular expression 2024-08-27 21:49:06 +02:00