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.6 to 0.0.7

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 o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(r,t,o){return t&&e(r.prototype,t),o&&e(r,o),r}}();Object.defineProperty(exports,"__esModule",{value:!0});var _repository=require("./repository"),_repository2=_interopRequireDefault(_repository),_format=require("./format"),_format2=_interopRequireDefault(_format),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 o=[];e.forEach(function(e){o.push(_repository2["default"].test(e))}),Promise.all(o).then(function(e){r(_format2["default"]["do"](e))})["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 o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(r,t,o){return t&&e(r.prototype,t),o&&e(r,o),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 o=[];e.forEach(function(e){o.push(_repository2["default"].test(e))}),Promise.all(o).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,HealthCheck["do"]([{host:"127.0.0.1",port:6379},{host:"wrong host",port:6379}]).then(function(e){console.log(e)})["catch"](function(e){console.log(e)});

@@ -5,3 +5,3 @@ {

"repository": "https://github.com/LucasRodrigues/health-check-redis",
"version": "0.0.6",
"version": "0.0.7",
"license": "MIT",

@@ -20,5 +20,6 @@ "author": {

"dependencies": {
"health-check-message-format": "0.0.1",
"redis": "^2.4.2"
},
"keywords":[
"keywords": [
"health check",

@@ -25,0 +26,0 @@ "redis"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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