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

healthchecks

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

healthchecks - npm Package Compare versions

Comparing version 1.2.4 to 1.2.5

7

CHANGELOG.md

@@ -0,4 +1,9 @@

## Version 1.2.5 2015-02-11
CHANGED better styling for elapsed time
## Version 1.2.4 2015-02-11
ADDED show request time on page
ADDED show request elapsed time

@@ -5,0 +10,0 @@

5

lib/healthchecks.js

@@ -24,3 +24,3 @@ // Exports an Express middleware factory.

const File = require('fs');
const Handlerbars = require('handlebars');
const Handlebars = require('handlebars');
const ms = require('ms');

@@ -222,3 +222,4 @@ const request = require('request');

const template = File.readFileSync(__dirname + '/index.hbs', 'utf-8');
const render = Handlerbars.compile(template);
Handlebars.registerHelper('ms', ms);
const render = Handlebars.compile(template);

@@ -225,0 +226,0 @@ // Return the Express middleware

{
"name": "healthchecks",
"version": "1.2.4",
"version": "1.2.5",
"scripts": {

@@ -5,0 +5,0 @@ "test": "mocha"

@@ -41,3 +41,3 @@ const Browser = require('zombie');

browser.assert.elements('.failed li', 1);
browser.assert.text('.failed li:nth-of-type(1)', /http:\/\/localhost:3000\/error => socket hang up \d+ms/);
browser.assert.text('.failed li:nth-of-type(1)', /^http:\/\/localhost:3000\/error => socket hang up \d+ms$/);
browser.assert.elements('.passed li', 3);

@@ -65,3 +65,3 @@ done();

browser.assert.elements('.failed li', 1);
browser.assert.text('.failed li:nth-of-type(1)', /http:\/\/localhost:3000\/timeout => timeout \d+ms/);
browser.assert.text('.failed li:nth-of-type(1)', /^http:\/\/localhost:3000\/timeout => timeout \d+s$/);
browser.assert.elements('.passed li', 3);

@@ -87,3 +87,3 @@ done();

browser.assert.elements('.failed li', 1);
browser.assert.text('.failed li:nth-of-type(1)', /http:\/\/localhost:3000\/status => 400 \d+ms/);
browser.assert.text('.failed li:nth-of-type(1)', /^http:\/\/localhost:3000\/status => 400 \d+ms$/);
browser.assert.elements('.passed li', 3);

@@ -109,3 +109,3 @@ done();

browser.assert.elements('.failed li', 1);
browser.assert.text('.failed li:nth-of-type(1)', /http:\/\/localhost:3000\/expected => body \d+ms/);
browser.assert.text('.failed li:nth-of-type(1)', /^http:\/\/localhost:3000\/expected => body \d+ms$/);
browser.assert.elements('.passed li', 3);

@@ -112,0 +112,0 @@ done();

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