node-health-agent
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -10,2 +10,3 @@ const os = require('os') | ||
const utils = require('./utils') | ||
const path = require('path') | ||
@@ -45,3 +46,3 @@ const heartbeat = (ws, delay) => { | ||
agentType: 'node', | ||
agentVersion: require(`${__dirname}/package.json`).version, | ||
agentVersion: require(path.join(__dirname, '/package.json')).version, | ||
appVersion: utils.extractPackageFile().version, | ||
@@ -48,0 +49,0 @@ nodeVersion: process.version, |
{ | ||
"name": "node-health-agent", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "", | ||
@@ -16,3 +16,3 @@ "module": "./index.js", | ||
"keywords": [ | ||
"nodehealth,", | ||
"nodehealth", | ||
"agent", | ||
@@ -24,8 +24,14 @@ "debugging", | ||
"memory", | ||
"dump" | ||
"dump", | ||
"heap", | ||
"snapshot", | ||
"cpu", | ||
"report", | ||
"environment", | ||
"dependencies", | ||
"variables" | ||
], | ||
"scripts": { | ||
"test": "NODE_ENV=test ./node_modules/.bin/jest", | ||
"lint": "./node_modules/.bin/eslint ./", | ||
"cpd": "./node_modules/.bin/jscpd ./" | ||
"lint": "./node_modules/.bin/eslint ./" | ||
}, | ||
@@ -39,21 +45,17 @@ "repository": { | ||
"dependencies": { | ||
"debug": "4.2.0", | ||
"inspector-api": "1.0.3", | ||
"uuid": "8.3.1", | ||
"ws": "7.4.0" | ||
"debug": "4.3.1", | ||
"inspector-api": "1.2.1", | ||
"uuid": "8.3.2", | ||
"ws": "7.4.1" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^7.13.0", | ||
"eslint-config-standard": "^16.0.1", | ||
"eslint": "^7.15.0", | ||
"eslint-config-standard": "^16.0.2", | ||
"eslint-plugin-import": "^2.22.1", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-promise": "^4.2.1", | ||
"eslint-plugin-standard": "^4.0.2", | ||
"eslint-plugin-standard": "^5.0.0", | ||
"jest": "^26.6.3", | ||
"jscpd": "^3.3.19" | ||
}, | ||
"jscpd": { | ||
"threshold": 0.1, | ||
"gitignore": true | ||
"semver": "^7.3.4" | ||
} | ||
} |
@@ -0,7 +1,17 @@ | ||
# Node agent for Node health project. | ||
[![GitHub release](https://badge.fury.io/js/node-health-agent.svg)](https://github.com/wallet77/node-health-agent/releases/) | ||
[![GitHub license](https://img.shields.io/github/license/wallet77/node-health-agent)](https://github.com/wallet77/node-health-agent/blob/master/LICENSE) | ||
[![CI pipeline](https://github.com/wallet77/node-health-agent/workflows/Node.js%20CI/badge.svg)](https://github.com/wallet77/node-health-agent/actions?query=workflow%3A%22Node.js+CI%22) | ||
[![Code coverage](https://codecov.io/gh/wallet77/node-health-agent/branch/master/graph/badge.svg)](https://codecov.io/gh/wallet77/node-health-agent) | ||
[![Opened issues](https://img.shields.io/github/issues-raw/wallet77/node-health-agent)](https://github.com/wallet77/node-health-agent/issues) | ||
[![Opened PR](https://img.shields.io/github/issues-pr-raw/wallet77/node-health-agent)](https://github.com/wallet77/node-health-agent/pulls) | ||
[![DeepScan grade](https://deepscan.io/api/teams/12061/projects/15018/branches/292503/badge/grade.svg)](https://deepscan.io/dashboard#view=project&tid=12061&pid=15018&bid=292503) | ||
![Dependencies](https://img.shields.io/david/wallet77/node-health-agent) | ||
# Purpose | ||
Node agent for Node health project. | ||
Agent to trigger events in your instances (even on production). | ||
It comes with a list of built-in events and allows to trigger custom actions. | ||
@@ -8,0 +18,0 @@ # Compatibility |
const fs = require('fs') | ||
const debug = require('debug') | ||
const error = debug('node-health-agent:error') | ||
const path = require('path') | ||
class Utils { | ||
@@ -39,3 +40,3 @@ extractDependencies (dir) { | ||
try { | ||
data = require(`${__dirname}/../../package.json`) | ||
data = require(path.join(__dirname, '/../../package.json')) | ||
} catch (err) { | ||
@@ -42,0 +43,0 @@ error(err) |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
16236
263
115
0
+ Added@voodoo.io/aws-utils@2.3.1(transitive)
+ Addeddebug@4.3.1(transitive)
+ Addedinspector-api@1.2.1(transitive)
+ Addeduuid@8.3.2(transitive)
+ Addedws@7.4.1(transitive)
- Removed@voodoo.io/aws-utils@2.2.0(transitive)
- Removeddebug@4.2.0(transitive)
- Removedinspector-api@1.0.3(transitive)
- Removeduuid@8.3.1(transitive)
- Removedws@7.4.0(transitive)
Updateddebug@4.3.1
Updatedinspector-api@1.2.1
Updateduuid@8.3.2
Updatedws@7.4.1