From bff63fd88cf1a7bb2da1b79ab54e344ebec65f67 Mon Sep 17 00:00:00 2001 From: dreamdevil00 Date: Fri, 4 May 2018 10:07:59 +0800 Subject: [PATCH 1/3] replace express-ping with express-ping-win-posix --- lib/models/ping.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/models/ping.js b/lib/models/ping.js index a7ade5d..71480f1 100644 --- a/lib/models/ping.js +++ b/lib/models/ping.js @@ -1,7 +1,7 @@ const Promise = require('bluebird') const _ = require('lodash') const debug = require('debug')('loopback:component:ping') -const health = require('express-ping') +const health = require('express-ping-win-posix') module.exports = function pingModelFn(Ping, options) { diff --git a/package.json b/package.json index e4c1c7f..6556ea7 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ }, "dependencies": { "bluebird": "^3.5.0", - "express-ping": "^1.4.0", + "express-ping-win-posix": "^1.5.0", "lodash": "^4.17.4" }, "devDependencies": { From bdcc725ba235ca18554fd11b98f1d7799a0968dd Mon Sep 17 00:00:00 2001 From: dreamdevil00 Date: Fri, 4 May 2018 10:11:08 +0800 Subject: [PATCH 2/3] update readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b806691..acd1833 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Component for [LoopBack](https://loopback.io) that adds a model for retrieving the internal state of the Node process. -It is a wrapper around the [express-ping](https://github.com/palmerabollo/express-ping/) package. +It is a wrapper around the [express-ping-win-posix](https://github.com/dreamdevil00/express-ping/) package. # Installation From 60a224747312565615bf83f42215f47f305a2d71 Mon Sep 17 00:00:00 2001 From: dreamdevil00 Date: Mon, 7 May 2018 09:19:18 +0800 Subject: [PATCH 3/3] fix `parts` configuration --- lib/models/ping.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/models/ping.json b/lib/models/ping.json index 36fe144..eee500c 100644 --- a/lib/models/ping.json +++ b/lib/models/ping.json @@ -5,7 +5,7 @@ "description": "Ping the API to retrieve its internal state", "methods": { "ping": { - "accepts": [], + "accepts": [{"arg": "parts", "type": "Object"}], "returns": { "arg": "result", "type": "Object",