Skip to content

Commit

Permalink
Logging Adjustments / Dependency Audit 2023-09-08
Browse files Browse the repository at this point in the history
  • Loading branch information
derekwolpert committed Sep 8, 2023
1 parent 2119425 commit 6a696bd
Show file tree
Hide file tree
Showing 9 changed files with 1,845 additions and 1,569 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
timeout-minutes: 5
steps:
- name: Code Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install NodeJS
uses: actions/setup-node@v3
Expand Down
7 changes: 4 additions & 3 deletions api-service/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ import { getObject, uploadObject, deleteObject } from './s3.js'
const app = express()
app.use(cors())
app.use(express.json())

app.use(morgan((tokens, req, res) =>
JSON.stringify({
method: tokens.method(req, res),
url: tokens.url(req, res),
status: tokens.status(req, res),
'content-length': tokens.res(req, res, 'content-length'),
'response-time': `${tokens['response-time'](req, res)} ms`
status: parseFloat(tokens.status(req, res)),
contentLength: parseFloat(tokens.res(req, res, 'content-length')),
responseTime: parseFloat(tokens['response-time'](req, res))
})
))

Expand Down
1,928 changes: 996 additions & 932 deletions api-service/package-lock.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions api-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
},
"author": "Noop Inc <hello@noop.dev>",
"dependencies": {
"@aws-sdk/client-dynamodb": "^3.241.0",
"@aws-sdk/client-s3": "^3.241.0",
"@aws-sdk/lib-dynamodb": "^3.241.0",
"@aws-sdk/lib-storage": "^3.241.0",
"@aws-sdk/client-dynamodb": "^3.409.0",
"@aws-sdk/client-s3": "^3.409.0",
"@aws-sdk/lib-dynamodb": "^3.409.0",
"@aws-sdk/lib-storage": "^3.409.0",
"cors": "^2.8.5",
"express": "^5.0.0-beta.1",
"mime-types": "^2.1.35",
Expand Down
Loading

0 comments on commit 6a696bd

Please sign in to comment.