Skip to content

Commit

Permalink
chore: remove debug dependency (#25)
Browse files Browse the repository at this point in the history
Part of: #19
  • Loading branch information
RafaelGSS authored Nov 1, 2024
1 parent 9dad080 commit 7a6c304
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion is-vulnerable.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const { request, stream, setGlobalDispatcher, Agent } = require('undici')
const EE = require('events')
const fs = require('fs')
const path = require('path')
const debug = require('debug')('is-my-node-vulnerable')
const satisfies = require('semver/functions/satisfies')
const nv = require('@pkgjs/nv')

Expand All @@ -20,6 +19,12 @@ async function readLocal (file) {
return require(file)
}

function debug (msg) {
if (process.env.DEBUG) {
console.debug(msg)
}
}

function loadETag () {
if (fs.existsSync(ETagFile)) {
debug('Loading local ETag')
Expand Down
5 changes: 3 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"dependencies": {
"@actions/core": "^1.10.0",
"@pkgjs/nv": "^0.2.1",
"debug": "^4.3.4",
"semver": "^7.3.8",
"undici": "^5.15.1"
},
Expand Down

0 comments on commit 7a6c304

Please sign in to comment.