Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update NodeJS backend dependencies. #214

Merged
merged 45 commits into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from 44 commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
648e6d4
feat: update dependencies, switch to esm modules
trev-dev Jun 10, 2024
a15d768
fix: "async" function messing up login flow
trev-dev Jun 17, 2024
a1e01e4
fix: breaking changes in nats
trev-dev Jun 17, 2024
91f7119
feat: update Redis, align with NATS
trev-dev Jun 17, 2024
972fde8
fix: breaking changes to passport logout flow
trev-dev Jun 17, 2024
85f7e3e
fix: not an async function
trev-dev Jun 17, 2024
c98a153
fix: session destruction breaking login flow
trev-dev Jun 17, 2024
230013e
chore: clean up logout function
trev-dev Jun 17, 2024
4587306
fix: breaking change, passport.use is async
trev-dev Jun 17, 2024
dd6f538
fix: dropped `auth` namespace
trev-dev Jun 17, 2024
84d338a
fix: remove no longer needed @babel deps
trev-dev Jun 17, 2024
65f119f
chore: whitespace
trev-dev Jun 17, 2024
15a12af
fix: breaking changes for eslint
trev-dev Jun 18, 2024
16e96b8
fix: linting errors
trev-dev Jun 18, 2024
8b5773d
update: dependencies
trev-dev Aug 15, 2024
7685c03
fix: tests
trev-dev Aug 20, 2024
2819eab
feat: add debug command
trev-dev Aug 28, 2024
89b32bb
fix: bad reference
trev-dev Aug 29, 2024
4d46bd4
fix: eslint issues
trev-dev Aug 29, 2024
352d54b
feat: add express rate-limiting environment vars
trev-dev Sep 3, 2024
f4708cd
fix: wrap interpolated constants in quotes
trev-dev Sep 3, 2024
e14a424
fix: npm script keys
trev-dev Sep 3, 2024
17a9377
feat: implement rate limiting
trev-dev Sep 3, 2024
b490b17
fix: smell - function complexity
trev-dev Sep 3, 2024
b679675
fix: smell - use chained operators and avoid nested ternaries
trev-dev Sep 3, 2024
05400e5
fix: smell - double import
trev-dev Sep 3, 2024
cf759be
fix: insane defaults for chained methods
trev-dev Sep 3, 2024
bd89219
Merge branch 'master' into fix/HD-26946
trev-dev Sep 3, 2024
611ca49
feat: add sonar reporter for vitest
trev-dev Sep 3, 2024
fa42dd1
Merge branch 'master' into fix/HD-26946
trev-dev Sep 18, 2024
bccd932
fix: update dependencies
trev-dev Sep 18, 2024
9095d9e
fix: codeQL multiple imports
trev-dev Oct 24, 2024
932b42b
Merge branch 'master' into fix/HD-26946
trev-dev Nov 25, 2024
0ef33bb
feat: add url param validations
trev-dev Nov 25, 2024
1de22cc
feat: update dependencies
trev-dev Nov 25, 2024
1b62aff
codeql: validate UUIDs within function scope
trev-dev Nov 26, 2024
c774035
fix: deleteDocument tests
trev-dev Nov 26, 2024
c5223fc
Merge branch 'master' into fix/HD-26946
trev-dev Nov 27, 2024
3e9a53e
fix: codeql suggestions and fix tests
trev-dev Nov 27, 2024
ae8673e
fix: downloadFileHander user data validator & test
trev-dev Nov 27, 2024
a94bf86
fix: add user validations to uploadFile and tests
trev-dev Nov 27, 2024
a0aa138
fix: remove redundant in-function validators
trev-dev Nov 27, 2024
1243ef5
feat: remove weird requirement for document name
trev-dev Nov 27, 2024
22f6c1e
fix: logout flow
trev-dev Nov 27, 2024
fbfe82b
fix: console logs
trev-dev Nov 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci-backend.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ jobs:
with:
node-version: '18.x'
- run: npm ci
- run: npm run lint:fix
- run: npm run test:unit
- run: npm run lint
- run: npm test
env:
NODE_ENV: 'test'
- name: Run Trivy vulnerability scanner in repo mode
Expand Down
21 changes: 0 additions & 21 deletions backend/.babelrc

This file was deleted.

4 changes: 3 additions & 1 deletion backend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,6 @@ realm.json
# log files
.*-audit.json
*.log
logs
logs
sonar-report.xml
coverage/*
36 changes: 36 additions & 0 deletions backend/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import globals from 'globals';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import js from '@eslint/js';
import { FlatCompat } from '@eslint/eslintrc';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [...compat.extends('eslint:recommended'), {
languageOptions: {
globals: {
...globals.commonjs,
...globals.jest,
...globals.node,
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
_: false,
},

ecmaVersion: 2020,
sourceType: 'module',
},

rules: {
'eol-last': ['error', 'always'],
indent: ['error', 2],
quotes: ['error', 'single'],
semi: ['error', 'always'],
},
}];
Loading
Loading