1
0
Fork 0
forked from svrjs/svrjs
Commit graph

583 commits

Author SHA1 Message Date
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
7680bb8c27 Improved the test coverage for the URL sanitizer 2024-08-29 13:39:55 +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
7fe503c07d Modify package.json - change the lint script (again) 2024-08-28 14:08:38 +02:00
1309e36151 Modify package.json - change the lint script 2024-08-28 14:03:31 +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
30498263fc Convert a "bytes */" + filelen string to a template string 2024-08-27 21:39:51 +02:00
189fbdc617 Replace Object.assign for arrays with spread operator. 2024-08-27 21:14:58 +02:00
b3cd8d699d Replace shallow cloning with deep cloning when needed. Also create deep cloning JavaScript file and corresponding tests 2024-08-27 21:09:43 +02:00
3eb7f3d4d9 Remove unneeded code 2024-08-27 18:45:56 +02:00
bced5927fe Replace ES5-style function in request handler with ES6-style ones 2024-08-27 18:23:57 +02:00
0c286bda43 Convert "Host name rewritten" message to template string 2024-08-27 18:04:32 +02:00
8589f0a6e4 Changed URL parser from WHATWG to custom one and adapted code accordingly 2024-08-27 18:03:47 +02:00
f247e7a035 Use template strings for user agent information log messages 2024-08-27 17:43:31 +02:00
fc14cfcc1b Remove some empty lines 2024-08-27 16:20:42 +02:00
de08646bba Add unknown licenses, but display "Unknown" as a license type 2024-08-27 16:04:43 +02:00
2783516c86 Don't add unknown licenses to the license page. 2024-08-27 16:02:50 +02:00
f739f5dbbe Fix cluster shim for Bun 2024-08-27 13:57:58 +02:00
9b01d46907 Fix the code for "${name} is running without mods and server-side JavaScript enabled. Web applications may not work as expected" message 2024-08-27 12:16:21 +02:00
ff66e26af0 Change regular expression for createRegex() function 2024-08-27 12:06:23 +02:00
fae1b661ed Fix or ignore all ESLint errors 2024-08-27 11:28:24 +02:00
2872be5b5b Lint out the codebase 2024-08-27 11:03:51 +02:00
7a14e4508c Remove unused "name" constant in noproxyHandler.js 2024-08-27 10:56:49 +02:00
fd5e8ba70e Lint out the codebase 2024-08-27 10:55:24 +02:00
5a3e6765f1 Replace ES5-style functions with ES6-style ones 2024-08-27 10:54:08 +02:00