1
0
Fork 0
forked from svrjs/svrjs
Commit graph

32 commits

Author SHA1 Message Date
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
58d252defa test: rename web root postfixes middleware test suite to match the corresponding middleware file 2024-09-05 18:50:35 +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
5570042732 Remove unnecessary mock implementations and update web root prefixes middleware test description 2024-09-01 14:17:06 +02:00
de7d804ca0 Lint out the static file serving and directory listing middleware test script 2024-08-31 20:50:10 +02:00
53dac33694 Add static file serving test 2024-08-31 20:48:55 +02:00
ce9550cc39 Add ".js" extension to one of the requires to tests for blocklist middleware 2024-08-31 17:28:14 +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
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
7680bb8c27 Improved the test coverage for the URL sanitizer 2024-08-29 13:39:55 +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
8589f0a6e4 Changed URL parser from WHATWG to custom one and adapted code accordingly 2024-08-27 18:03:47 +02:00
85debce9c9 Lint out the codebase 2024-08-25 19:17:54 +02:00
0ea53fdf96 Lint out the codebase, add SVRJSFork() function, networking-related code, and ipSubnetUtils.js utility functions file and corresponding unit tests 2024-08-25 19:17:19 +02:00
6461728eee Fix the description for URL parser test suite 2024-08-25 14:14:22 +02:00
88554a05d2 Modify the description for URL parser test suite 2024-08-25 14:13:27 +02:00
2884c33c8c Rename urlParser files to urlParserLegacy 2024-08-25 14:12:13 +02:00
695816b9d0 Lint out the codebase. 2024-08-25 09:45:42 +02:00
55d5efe54f Add default handler checks, server status page, sizify() utility function, and move counters from core.js middleware to index.js. 2024-08-25 09:44:53 +02:00
9bb77f9d98 Add more tests for ipBlockList function. 2024-08-25 09:23:55 +02:00
89e9b35829 Add ipBlockList utility function, blocklist functionality, and read from config.json functionality. 2024-08-25 09:12:39 +02:00
bafc08d965 Lint out the codebase. 2024-08-25 07:17:34 +02:00
5fab894caf Move parts of middleware that checks for forbidden paths to separate utils file, and add tests for them. 2024-08-25 07:13:41 +02:00
c1900ee128 Add non-standard codes and HTTP authentication middleware, and SHA256 utility function. 2024-08-24 20:32:06 +02:00
f552b34878 Lint out the codebase. 2024-08-24 17:23:06 +02:00
f48125f4f2 Move matchHostname function to separate source file, and add unit tests for the function. 2024-08-24 17:21:09 +02:00
a49dba73fe Lint out the codebase. 2024-08-24 08:07:31 +02:00
1929641ba7 Add web root postfixes middleware 2024-08-24 08:02:11 +02:00
ee4c3dcda6 Add some core functionality to SVR.JS 2024-08-23 19:58:15 +02:00
fbdb3f93d4 Add URL sanitizer. Also add eslint-plugin-jest to ESLint configuration. 2024-08-23 17:43:37 +02:00
6564ccbe83 Rewritten SVR.JS from scratch - the build system for the new SVR.JS is set up, but the source is just placeholders. 2024-08-23 17:05:10 +02:00