chore: update Prettier to 1.16.1
This commit is contained in:
parent
ad58f6a147
commit
55b762f490
@ -16,9 +16,9 @@ function runCommand(commands, [command, ...args]) {
|
||||
return `Usage:
|
||||
|
||||
${Object.keys(commands)
|
||||
.filter(command => command !== 'help')
|
||||
.map(command => ` ${this.command} ${command}`)
|
||||
.join('\n\n')}`
|
||||
.filter(command => command !== 'help')
|
||||
.map(command => ` ${this.command} ${command}`)
|
||||
.join('\n\n')}`
|
||||
}
|
||||
|
||||
throw `invalid command ${command}` // eslint-disable-line no-throw-literal
|
||||
|
@ -120,13 +120,9 @@ class XoServerNagios {
|
||||
|
||||
const client = new net.Socket()
|
||||
|
||||
client.connect(
|
||||
this._conf.port,
|
||||
this._conf.server,
|
||||
() => {
|
||||
console.log('Successful connection')
|
||||
}
|
||||
)
|
||||
client.connect(this._conf.port, this._conf.server, () => {
|
||||
console.log('Successful connection')
|
||||
})
|
||||
|
||||
client.on('data', data => {
|
||||
const timestamp = data.readInt32BE(128)
|
||||
|
@ -2339,10 +2339,7 @@ export default class Xapi extends XapiBase {
|
||||
const fs = promisifyAll(fatfs.createFileSystem(fatfsBuffer(buffer)))
|
||||
|
||||
await Promise.all([
|
||||
fs.writeFile(
|
||||
'meta-data',
|
||||
'instance-id: ' + vm.uuid + '\n'
|
||||
),
|
||||
fs.writeFile('meta-data', 'instance-id: ' + vm.uuid + '\n'),
|
||||
fs.writeFile('user-data', config),
|
||||
])
|
||||
|
||||
|
7
packages/xo-web/src/common/react-novnc.js
vendored
7
packages/xo-web/src/common/react-novnc.js
vendored
@ -109,12 +109,7 @@ export default class NoVnc extends Component {
|
||||
// if not available from the URL, use the default ones
|
||||
const port = url.port || (isSecure ? 443 : 80)
|
||||
|
||||
rfb.connect(
|
||||
url.hostname,
|
||||
port,
|
||||
null,
|
||||
clippedPath
|
||||
)
|
||||
rfb.connect(url.hostname, port, null, clippedPath)
|
||||
disableShortcuts()
|
||||
}
|
||||
|
||||
|
@ -10346,9 +10346,9 @@ preserve@^0.2.0:
|
||||
integrity sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=
|
||||
|
||||
prettier@^1.10.2:
|
||||
version "1.16.0"
|
||||
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.16.0.tgz#104dd25f5ee3d0c9d0a6ce4bb40ced8481d51219"
|
||||
integrity sha512-MCBCYeAuZfejUPdEpkleLWvpRBwLii/Sp5jQs0eb8Ul/drGIDjkL6tAU24tk6yCGf0KPV5rhPPPlczfBmN2pWQ==
|
||||
version "1.16.1"
|
||||
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.16.1.tgz#534c2c9d7853f8845e5e078384e71973bd74089f"
|
||||
integrity sha512-XXUITwIkGb3CPJ2hforHah/zTINRyie5006Jd2HKy2qz7snEJXl0KLfsJZW/wst9g6R2rFvqba3VpNYdu1hDcA==
|
||||
|
||||
pretty-format@^23.0.0, pretty-format@^23.6.0:
|
||||
version "23.6.0"
|
||||
|
Loading…
Reference in New Issue
Block a user