Update dependencies, gitignore, and add helper functions
This pull request includes the following updates:
-
Updated dependencies in the package-lock.json file:
- Updated engine.io from version 6.4.1 to 6.4.2
- Updated socket.io-parser from version 4.2.2 to 4.2.4
- Updated semver from version 7.5.1 to 7.5.4
-
Added the jest-test-area/ directory to the .gitignore file to exclude test files from version control.
-
Added tests for helper functions in helpers.test.js to ensure their correctness.
-
Added helper functions for file manipulation in the helpers.js file.
-
Added helmet middleware to the app.js file to hide the X-Powered-By header for improved security. The helmet package was also added as a dependency.
-
Added a beforeAll hook in helpers.test.js to create a folder if it doesn't exist before running the tests. Fixed a typo in a comment.
-
Added a test for the slug helper function in helpers.test.js. Modified app.js to import the slug and vLog helper functions from the helpers module. Also added the slug and vLog helper functions to the helpers.js file.