serve-static
                                
                                
                                
                                    serve-static copied to clipboard
                            
                            
                            
                        Serve static files
This pull request refactors the `collapseLeadingSlashes` function in `index.js` to improve readability and performance by simplifying the loop and replacing `substr` with `slice`. Code readability and performance improvements: * [`index.js`](diffhunk://#diff-e727e4bdf3657fd1d798edcd6b099d6e092f8573cba266154583a746bba0f346R130-R138):...
CSP: Wildcard Directive Issue Details: Content Security Policy (CSP) is an added layer of security that helps to detect and mitigate certain types of attacks. Including (but not limited to)...
This PR contains 3 commits: - a726d38c8ee7133e35804a82559f77ea0ea8d18b unpinning all remaining pinned devDepenencies - 838011d861a168f6a941203bde52611599232785 updating the test dependencies - 4c0c27bb13642a8293a8d8025b22c5fbd8006dfe removing `--bail` from the test script
Bumps [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) from 2.25.4 to 2.31.0. Release notes Sourced from eslint-plugin-import's releases. v2.31.0 Added support eslint v9 (#2996, thanks [@G-Rath] [@michaelfaith]) order: allow validating named imports (#3043, thanks [@manuth]) extensions:...
Replaced the old implementation of collapseLeadingSlashes, which iterated over each character, with a more concise and efficient version using a regular expression. The new version uses eplace() to collapse leading...