Skip to content

Commit

Permalink
0.1.9 - Remove request library, bump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
RafalWilinski committed Mar 3, 2020
1 parent db01e18 commit 4073993
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
16 changes: 8 additions & 8 deletions examples/tester.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
const request = require('request');
const axios = require("axios");

const port = 3000;

const requestUrl = `http://localhost:${port}/return-status/`;
const interval = 50;
const requestUrl = `http://0.0.0.0:${port}/return-status/`;

const makeDummyCall = () => setTimeout(() => {
const code = 200 + Math.random() * 399;
request.get(`${requestUrl}${code}`);
const makeDummyCall = () =>
setTimeout(() => {
const code = 200 + Math.random() * 399;
axios.get(`${requestUrl}${code}`).catch(() => {});

makeDummyCall();
}, interval);
makeDummyCall();
}, interval);

makeDummyCall();
15 changes: 7 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "express-status-monitor",
"version": "1.2.8",
"version": "1.2.9",
"description": "Realtime Monitoring for Express-based Node applications",
"main": "index.js",
"keywords": [
Expand Down Expand Up @@ -57,12 +57,11 @@
},
"license": "MIT",
"dependencies": {
"axios": "0.19.0",
"axios": "0.19.2",
"debug": "4.1.1",
"handlebars": "4.5.3",
"handlebars": "4.7.3",
"on-headers": "1.0.2",
"pidusage": "2.0.17",
"request": "2.88.0",
"pidusage": "2.0.18",
"socket.io": "2.3.0"
},
"scripts": {
Expand All @@ -75,9 +74,9 @@
"devDependencies": {
"chai": "4.2.0",
"eslint": "5.16.0",
"mocha": "6.2.2",
"sinon": "7.3.2",
"snyk": "1.271.0"
"mocha": "7.1.0",
"sinon": "9.0.0",
"snyk": "1.297.3"
},
"snyk": true
}

0 comments on commit 4073993

Please sign in to comment.