From 85c4757377945bd85934dc118d277dc5b7593e60 Mon Sep 17 00:00:00 2001 From: Coy Hile Date: Sun, 24 May 2020 01:50:43 +0000 Subject: [PATCH 1/2] Changes to support newer node.js --- lib/backupServer.js | 4 ++-- lib/statusServer.js | 4 ++-- package.json | 18 +++++++++--------- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/backupServer.js b/lib/backupServer.js index c6c92a6..9ebdd8f 100644 --- a/lib/backupServer.js +++ b/lib/backupServer.js @@ -94,8 +94,8 @@ BackupServer.prototype._init = function () { var server = self._server; var log = self._log; - server.use(restify.queryParser()); - server.use(restify.bodyParser()); + server.use(restify.plugins.queryParser()); + server.use(restify.plugins.bodyParser()); server.get('/backup/:uuid', checkBackup); server.post('/backup/', postBackup); diff --git a/lib/statusServer.js b/lib/statusServer.js index 80d6695..c6862f9 100644 --- a/lib/statusServer.js +++ b/lib/statusServer.js @@ -61,8 +61,8 @@ function StatusServer(options) { // restify endpoints var server = self._server; - server.use(restify.queryParser()); - server.use(restify.bodyParser()); + server.use(restify.plugins.queryParser()); + server.use(restify.plugins.bodyParser()); server.get('/', list); server.get('/ping', ping); diff --git a/package.json b/package.json index 0e6a6f7..06b7137 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "dependencies": { "assert-plus": "1.0.0", "backoff": "1.2.0", - "bignum": "0.6.2", + "bignum": "0.13.1", "bunyan": "0.22.1", "cmdln": "3.2.0", "extsprintf": "1.3.0", @@ -29,17 +29,17 @@ "forkexec": "1.1.0", "jsprim": "2.0.0", "manatee-state-machine": "git+https://github.com/joyent/manatee-state-machine.git#ff78e7596746ba8ff6b75784270c71ddaac008c9", - "manta": "1.2.6", - "node-uuid": "1.4.1", + "manta": "5.2.2", + "node-uuid": "1.4.8", "joyent-zookeeper-client": "0.2.3", "once": "1.3.0", - "pg": "3.0.3", + "pg": "8.2.1", "pg-lsn": "1.0.0", - "posix": "1.0.3", + "posix": "4.2.0", "posix-getopt": "1.0.0", "progbar": "0.1.0", - "prompt": "0.2.13", - "restify": "2.6.1", + "prompt": "1.0.0", + "restify": "8.4.0", "tab": "0.1.0", "vasync": "2.2.0", "verror": "1.10.0", @@ -49,8 +49,8 @@ "byline": "4.1.1", "nodeunit": "git+https://github.com/yunong/nodeunit.git#4b1bf5e52941b72cf619a246f87b261da95a1231", "node-manatee": "git+https://github.com/joyent/node-manatee#262828a805463b169916dfb0d725d28dbf40f882", - "shelljs": "0.0.5pre4", - "tap": "0.4.8" + "shelljs": "0.8.4", + "tap": "14.10.7" }, "scripts": { "pretest": "./lint.sh", From 85a9fa9c773033179818b31a49f9a2f640277dad Mon Sep 17 00:00:00 2001 From: Coy Hile Date: Mon, 25 May 2020 20:07:02 +0000 Subject: [PATCH 2/2] Cannot update pg quite yet --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 06b7137..38d36c6 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "node-uuid": "1.4.8", "joyent-zookeeper-client": "0.2.3", "once": "1.3.0", - "pg": "8.2.1", + "pg": "3.0.3", "pg-lsn": "1.0.0", "posix": "4.2.0", "posix-getopt": "1.0.0",