Skip to content

Commit

Permalink
build: update dependencies (#401)
Browse files Browse the repository at this point in the history
* style: add missing comment

* build: update frontend

* build: fix db.ts for ts upgrade

* build: update db.ts for objection upgrade

* build: run the cypress 10 migration tool
  • Loading branch information
bhajneet authored Sep 3, 2022
1 parent 06fcf5e commit b431ac3
Show file tree
Hide file tree
Showing 12 changed files with 8,821 additions and 8,519 deletions.
4 changes: 2 additions & 2 deletions backend/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ export const getLineOnPage = async (
.castTo<LinesResult>()
.then( ( { id } ) => ( Lines
.query()
.where( 'id', id ) as LinesQueryBuilder )
.withTranslations( ( query ) => query.joinEager( 'translationSource' ) )
.where( 'id', id ) as unknown as LinesQueryBuilder )
.withTranslations( ( query ) => query.withGraphJoined( 'translationSource' ) )
.castTo<[( LinesResult & { translations: TranslationResult[] } )]>() )
.then( async ( [ { translations, ...line } ] ) => ( {
...line,
Expand Down
11,081 changes: 5,720 additions & 5,361 deletions backend/package-lock.json

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,20 @@
"@types/express": "^4.17.13",
"@types/fs-extra": "^9.0.13",
"@types/memoizee": "^0.4.8",
"@types/pacote": "^11.1.3",
"objection": "^2.2.18",
"ts-node-dev": "^1.1.8",
"typescript": "^4.6.4"
"@types/pacote": "^11.1.5",
"objection": "^3.0.1",
"ts-node-dev": "^2.0.0",
"typescript": "^4.8.2"
},
"dependencies": {
"@google-cloud/translate": "^6.3.1",
"@shabados/database": "^4.8.0",
"@google-cloud/translate": "^7.0.1",
"@shabados/database": "^4.8.3",
"compression": "^1.7.4",
"express": "^4.18.1",
"fs-extra": "^10.1.0",
"helmet": "^5.0.2",
"helmet": "^6.0.0",
"import-fresh": "^3.3.0",
"memoizee": "^0.4.15",
"pacote": "^13.3.0"
"pacote": "^13.6.2"
}
}
12 changes: 12 additions & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { defineConfig } from 'cypress'

export default defineConfig({
e2e: {
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
return require('./cypress/plugins/index.ts')(on, config)
},
baseUrl: 'http://localhost:52525',
},
})
3 changes: 0 additions & 3 deletions cypress.json

This file was deleted.

File renamed without changes.
File renamed without changes.
Loading

0 comments on commit b431ac3

Please sign in to comment.