Upgrade server depencencies

This commit is contained in:
Chocobozzz 2018-03-13 16:00:39 +01:00
parent 5c328e6610
commit c39ea24b71
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
4 changed files with 376 additions and 1093 deletions

View File

@ -68,7 +68,7 @@
"express-validator": "^5.0.0",
"fluent-ffmpeg": "^2.1.0",
"js-yaml": "^3.5.4",
"jsonld": "^0.5.12",
"jsonld": "^1.0.1",
"jsonld-signatures": "https://github.com/Chocobozzz/jsonld-signatures#rsa2017",
"kue": "^0.11.6",
"lodash": "^4.11.1",
@ -88,14 +88,14 @@
"rimraf": "^2.5.4",
"safe-buffer": "^5.0.1",
"scripty": "^1.5.0",
"sequelize": "4.33.4",
"sequelize": "4.36.1",
"sequelize-typescript": "^0.6.1",
"sharp": "^0.19.0",
"sharp": "^0.20.0",
"uuid": "^3.1.0",
"validator": "^9.0.0",
"webfinger.js": "^2.6.6",
"winston": "3.0.0-rc1",
"ws": "^4.0.0"
"ws": "^5.0.0"
},
"devDependencies": {
"@types/async": "^2.0.40",
@ -120,7 +120,7 @@
"@types/sequelize": "^4.0.55",
"@types/sharp": "^0.17.6",
"@types/supertest": "^2.0.3",
"@types/validator": "^6.2.0",
"@types/validator": "^9.4.0",
"@types/webtorrent": "^0.98.4",
"@types/ws": "^4.0.0",
"chai": "^4.1.1",
@ -130,7 +130,7 @@
"source-map-support": "^0.5.0",
"spectacle-docs": "^0.9.13",
"supertest": "^3.0.0",
"ts-node": "5.0.0",
"ts-node": "5.0.1",
"tslint": "^5.7.0",
"tslint-config-standard": "^7.0.0",
"typescript": "^2.5.2",

View File

@ -36,7 +36,7 @@ function transactionRetryer <T> (func: (err: any, data: T) => any) {
})
}
function updateInstanceWithAnother <T> (instanceToUpdate: Model<T>, baseInstance: Model<T>) {
function updateInstanceWithAnother <T extends Model<T>> (instanceToUpdate: Model<T>, baseInstance: Model<T>) {
const obj = baseInstance.toJSON()
for (const key of Object.keys(obj)) {

View File

@ -47,8 +47,7 @@ async function createLocalAccountWithoutKeys (
name,
userId,
applicationId,
actorId: actorInstanceCreated.id,
serverId: null // It is our server
actorId: actorInstanceCreated.id
})
const accountInstanceCreated = await accountInstance.save({ transaction: t })

1452
yarn.lock

File diff suppressed because it is too large Load Diff