Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

health-check-redis

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

health-check-redis - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

2

lib/healthCheck.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc