Update dependency @tryghost/bootstrap-socket to v0.2.0

- includes API changes
This commit is contained in:
Hannah Wolfe 2020-08-09 17:22:27 +01:00
parent 7b4565cd3e
commit c577007afe
3 changed files with 8 additions and 8 deletions

View File

@ -12,7 +12,7 @@ const errors = require('@tryghost/errors');
const {events, i18n} = require('./lib/common');
const logging = require('../shared/logging');
const moment = require('moment');
const connectToBootstrapSocket = require('@tryghost/bootstrap-socket');
const bootstrapSocket = require('@tryghost/bootstrap-socket');
/**
* ## GhostServer
@ -276,7 +276,7 @@ module.exports.announceServerStart = function announceServerStart() {
// CASE: Ghost extension - bootstrap sockets
if (socketAddress) {
return connectToBootstrapSocket(socketAddress, logging, message);
return bootstrapSocket.connectAndSend(socketAddress, logging, message);
}
return Promise.resolve();
@ -309,7 +309,7 @@ module.exports.announceServerStopped = function announceServerStopped(error) {
// CASE: Ghost extension - bootstrap sockets
if (socketAddress) {
return connectToBootstrapSocket(socketAddress, logging, message);
return bootstrapSocket.connectAndSend(socketAddress, logging, message);
}
return Promise.resolve();

View File

@ -43,7 +43,7 @@
"@nexes/nql": "0.4.0",
"@sentry/node": "5.20.1",
"@tryghost/adapter-manager": "0.1.8",
"@tryghost/bootstrap-socket": "0.1.0",
"@tryghost/bootstrap-socket": "0.2.0",
"@tryghost/errors": "0.2.1",
"@tryghost/helpers": "1.1.28",
"@tryghost/image-transform": "1.0.1",

View File

@ -367,10 +367,10 @@
dependencies:
"@tryghost/errors" "^0.2.1"
"@tryghost/bootstrap-socket@0.1.0":
version "0.1.0"
resolved "https://registry.yarnpkg.com/@tryghost/bootstrap-socket/-/bootstrap-socket-0.1.0.tgz#bd92bb4fe084a9f3b1c6801d23631710f4534d4e"
integrity sha512-/fibvaj34co1uxMONJIIHYLqLamE0ClN57Z1YiBd10YlKDavxpwKoX0Pg7+Trk/UKfc7Owq2O+ZrCs0M/I1A8A==
"@tryghost/bootstrap-socket@0.2.0":
version "0.2.0"
resolved "https://registry.yarnpkg.com/@tryghost/bootstrap-socket/-/bootstrap-socket-0.2.0.tgz#efc7291b346b633117d8d5e0fca7e52c6913a9f2"
integrity sha512-Ao9REMMiorIdEtVDkS0xdCnnvwQU9zd3bsz7521RCeDBT3pi5AbrFrV9LwG+XnCgw9NvbmTv0aidxpiEQV1aSQ==
"@tryghost/errors@0.2.1", "@tryghost/errors@^0.2.1":
version "0.2.1"