health-check-redis
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -1,1 +0,1 @@ | ||
"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":e}}function _classCallCheck(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}var _createClass=function(){function e(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(r,t,n){return t&&e(r.prototype,t),n&&e(r,n),r}}();Object.defineProperty(exports,"__esModule",{value:!0});var _repository=require("./repository"),_repository2=_interopRequireDefault(_repository),_healthCheckMessageFormat=require("health-check-message-format"),_healthCheckMessageFormat2=_interopRequireDefault(_healthCheckMessageFormat),HealthCheck=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"_resolveParameter",value:function(e){return Array.isArray(e)||(e=[e]),e}},{key:"do",value:function(e){return e=this._resolveParameter(e),new Promise(function(r,t){var n=[];e.forEach(function(e){n.push(_repository2["default"].test(e))}),Promise.all(n).then(function(e){var t={fnIsHealthGood:function(e){return null===e.error},fnName:function(e){return e.configuration.host+":\n "+e.configuration.port},fnErrorMessage:function(e){return e.error.message}};r(_healthCheckMessageFormat2["default"]["do"](e,t))})["catch"](function(e){t(e)})})}}]),e}();exports["default"]=HealthCheck; | ||
"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":e}}function _classCallCheck(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}var _createClass=function(){function e(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(r,t,n){return t&&e(r.prototype,t),n&&e(r,n),r}}();Object.defineProperty(exports,"__esModule",{value:!0});var _repository=require("./repository"),_repository2=_interopRequireDefault(_repository),_healthCheckCore=require("health-check-core"),_healthCheckCore2=_interopRequireDefault(_healthCheckCore),HealthCheck=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"do",value:function(e){return new Promise(function(r,t){var n={fnIsHealthGood:function(e){return null===e.error},fnName:function(e){return e.configuration.host+":"+e.configuration.port},fnErrorMessage:function(e){return e.error.message}};_healthCheckCore2["default"]["do"](e,_repository2["default"].test,n).then(function(e){r(e)})["catch"](function(e){t(e)})})}}]),e}();exports["default"]=HealthCheck; |
{ | ||
"name": "health-check-redis", | ||
"description": "Get the health of redis infra", | ||
"repository": "https://github.com/LucasRodrigues/health-check-redis", | ||
"version": "0.0.8", | ||
"repository": { | ||
"type" : "git", | ||
"url" : "https://github.com/LucasRodrigues/health-check-redis.git" | ||
}, | ||
"version": "0.0.9", | ||
"license": "MIT", | ||
@@ -19,3 +22,3 @@ "author": { | ||
"dependencies": { | ||
"health-check-message-format": "0.0.1", | ||
"health-check-core": "0.0.1", | ||
"redis": "^2.4.2" | ||
@@ -22,0 +25,0 @@ }, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
0
4185
6
+ Addedhealth-check-core@0.0.1
+ Addedhealth-check-core@0.0.1(transitive)
- Removedhealth-check-message-format@0.0.1