chore: update deps

This commit is contained in:
Julien Fontanet 2022-08-05 14:24:54 +02:00
parent d87db05b2b
commit 9fab15537b
12 changed files with 1516 additions and 1429 deletions

View File

@ -40,7 +40,7 @@
"lodash": "^4.17.4",
"promise-toolbox": "^0.21.0",
"proper-lockfile": "^4.1.2",
"readable-stream": "^3.0.6",
"readable-stream": "^4.1.0",
"through2": "^4.0.2",
"xo-remote-parser": "^0.9.1"
},

View File

@ -99,11 +99,11 @@ class SslCertificate {
/* Init client */
const client = new acme.Client({
directoryUrl: acmeCa,
accountKey: await acme.forge.createPrivateKey(),
accountKey: await acme.crypto.createPrivateKey(),
})
/* Create CSR */
let [key, csr] = await acme.forge.createCsr({
let [key, csr] = await acme.crypto.createCsr({
commonName: acmeDomain,
})
csr = csr.toString()

View File

@ -23,7 +23,7 @@
"@vates/parse-duration": "^0.1.1",
"@xen-orchestra/emit-async": "^1.0.0",
"@xen-orchestra/log": "^0.3.0",
"acme-client": "^4.2.5",
"acme-client": "^5.0.0",
"app-conf": "^2.1.0",
"lodash": "^4.17.21",
"promise-toolbox": "^0.21.0"

View File

@ -26,7 +26,7 @@
},
"dependencies": {
"@iarna/toml": "^2.2.0",
"@koa/router": "^11.0.1",
"@koa/router": "^12.0.0",
"@vates/cached-dns.lookup": "^1.0.0",
"@vates/compose": "^2.1.0",
"@vates/decorate-with": "^2.0.0",

View File

@ -20,7 +20,7 @@
"handlebars": "^4.7.6",
"husky": "^4.2.5",
"jest": "^28.1.2",
"lint-staged": "^12.0.3",
"lint-staged": "^13.0.3",
"lodash": "^4.17.4",
"prettier": "^2.0.5",
"promise-toolbox": "^0.21.0",

View File

@ -25,7 +25,7 @@
"limit-concurrency-decorator": "^0.5.0",
"lodash": "^4.17.4",
"promise-toolbox": "^0.21.0",
"readable-stream": "^3.0.6",
"readable-stream": "^4.1.0",
"struct-fu": "^1.2.0",
"uuid": "^8.3.1"
},

View File

@ -49,7 +49,7 @@
"@xen-orchestra/log": "^0.3.0",
"async-iterator-to-stream": "^1.1.0",
"promise-toolbox": "^0.21.0",
"readable-stream": "^3.5.0",
"readable-stream": "^4.1.0",
"xo-common": "^0.8.0"
},
"private": true

View File

@ -111,8 +111,8 @@
"pug": "^3.0.0",
"pumpify": "^2.0.0",
"pw": "^0.0.4",
"readable-stream": "^3.2.0",
"redis": "^3.0.2",
"readable-stream": "^4.1.0",
"redis": "^4.2.0",
"schema-inspector": "^2.0.1",
"semver": "^7.3.2",
"serve-static": "^1.13.1",

View File

@ -4,11 +4,11 @@ import difference from 'lodash/difference.js'
import filter from 'lodash/filter.js'
import forEach from 'lodash/forEach.js'
import getKeys from 'lodash/keys.js'
import ignoreErrors from 'promise-toolbox/ignoreErrors'
import isEmpty from 'lodash/isEmpty.js'
import map from 'lodash/map.js'
import omit from 'lodash/omit.js'
import { createClient as createRedisClient } from 'redis'
import { ignoreErrors, promisifyAll } from 'promise-toolbox'
import { v4 as generateUuid } from 'uuid'
import Collection, { ModelAlreadyExists } from '../collection.mjs'
@ -46,7 +46,7 @@ export default class Redis extends Collection {
this.indexes = indexes
this.prefix = prefix
const redis = (this.redis = promisifyAll(connection || createRedisClient(uri)))
const redis = (this.redis = connection || createRedisClient(uri))
redis.sadd('xo::namespaces', namespace)::ignoreErrors()

View File

@ -98,10 +98,9 @@ xo-server-logs ls <namespace> [<pattern>...]
ignoreUnknownFormats: true,
})
const { renameCommands, socket: path, uri: url } = config.redis || {}
const { socket: path, uri: url } = config.redis || {}
const connection = createRedisClient({
path,
rename_commands: renameCommands,
url,
})
try {

View File

@ -43,11 +43,10 @@ export default class Xo extends EventEmitter {
// Connects to Redis.
{
const { renameCommands, socket: path, uri: url } = config.redis || {}
const { socket: path, uri: url } = config.redis || {}
this._redis = createRedisClient({
path,
rename_commands: renameCommands,
url,
})
}

2915
yarn.lock

File diff suppressed because it is too large Load Diff