Skip to content

Commit

Permalink
chore: remove express-device (#2498)
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheeg authored Aug 2, 2021
1 parent 2726ee6 commit 8583336
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 121 deletions.
32 changes: 0 additions & 32 deletions CREDITS.md
Original file line number Diff line number Diff line change
Expand Up @@ -1293,38 +1293,6 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


-------------------------------------------------------------------------------

## Project
express-device

### Source
https://github.com/rguerreiro/express-device

### License
(The MIT License)

Copyright (c) 2012-2015 Rodrigo Guerreiro

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

-------------------------------------------------------------------------------

## Project
Expand Down
63 changes: 2 additions & 61 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@
"dotenv": "^10.0.0",
"ejs": "^3.1.6",
"express": "^4.16.4",
"express-device": "~0.4.2",
"express-rate-limit": "^5.3.0",
"express-request-id": "^1.4.1",
"express-session": "^1.17.2",
Expand Down
4 changes: 0 additions & 4 deletions src/app/loaders/express/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import compression from 'compression'
import express, { Express } from 'express'
import device from 'express-device'
import addRequestId from 'express-request-id'
import http from 'http'
import { Connection } from 'mongoose'
Expand Down Expand Up @@ -139,9 +138,6 @@ const loadExpressApp = async (connection: Connection) => {

app.use(loggingMiddleware())

// setup express-device
app.use(device.capture({ parseUserAgent: true }))

// Log intranet usage
app.use(IntranetMiddleware.logIntranetUsage)

Expand Down
23 changes: 0 additions & 23 deletions src/types/vendor/express-device.d.ts

This file was deleted.

0 comments on commit 8583336

Please sign in to comment.