hmpo-logger
Advanced tools
Comparing version 7.0.2 to 8.0.0
@@ -5,3 +5,3 @@ module.exports = function (options = {}) { | ||
return JSON.stringify(meta, null, options.indent || 2 ); | ||
} catch (e) { | ||
} catch { | ||
return; | ||
@@ -8,0 +8,0 @@ } |
@@ -34,3 +34,3 @@ const debug = require('debug')('hmpo:logger:interpolate'); | ||
return JSON.stringify(obj, replacer, indent); | ||
} catch (e) { | ||
} catch { | ||
return; | ||
@@ -37,0 +37,0 @@ } |
@@ -15,3 +15,3 @@ | ||
stack = err.stack; | ||
} catch (e) { /* eslint "no-empty":0 */ } | ||
} catch { /* eslint "no-empty":0 */ } | ||
@@ -62,3 +62,3 @@ Error.prepareStackTrace = prepareStackTrace; | ||
return packageData.name; | ||
} catch (e) { | ||
} catch { | ||
return UNKNOWN; | ||
@@ -65,0 +65,0 @@ } |
@@ -62,3 +62,3 @@ const debug = require('debug')('hmpo:logger:transport:file'); | ||
debug('Existing log file date', logfileDate); | ||
} catch (e) { | ||
} catch { | ||
debug('No existing log file'); | ||
@@ -65,0 +65,0 @@ } |
{ | ||
"name": "hmpo-logger", | ||
"version": "7.0.2", | ||
"version": "8.0.0", | ||
"description": "Consistent logging for hmpo apps", | ||
@@ -9,4 +9,5 @@ "main": "index.js", | ||
"lint": "eslint .", | ||
"unit": "nyc --reporter=lcov --reporter=text-summary _mocha test/spec/ --recursive --require test/helper", | ||
"check-coverage": "nyc check-coverage" | ||
"unit": "nyc --reporter=lcov --reporter=text-summary _mocha test/spec/ --recursive --require test/helper.js", | ||
"check-coverage": "nyc check-coverage", | ||
"prepare": "husky" | ||
}, | ||
@@ -20,3 +21,3 @@ "repository": { | ||
"engines": { | ||
"node": ">=14" | ||
"node": "20.x || 22.x" | ||
}, | ||
@@ -29,5 +30,5 @@ "bugs": { | ||
"chalk": "^4.1.2", | ||
"debug": "^4.3.4", | ||
"debug": "^4.3.7", | ||
"deep-clone-merge": "^1.5.5", | ||
"glob": "^10.4.5", | ||
"glob": "^11.0.0", | ||
"on-finished": "^2.4.1", | ||
@@ -39,8 +40,10 @@ "on-headers": "^1.0.2", | ||
"chai": "^4.5.0", | ||
"eslint": "^8.57.0", | ||
"mocha": "^10.7.0", | ||
"nyc": "^17.0.0", | ||
"sinon": "^18.0.0", | ||
"eslint": "^9.12.0", | ||
"husky": "^9.1.6", | ||
"mocha": "^10.7.3", | ||
"nyc": "^17.1.0", | ||
"sinon": "^19.0.2", | ||
"sinon-chai": "^3.7.0", | ||
"sinon-test": "^3.1.6" | ||
"sinon-test": "^3.1.6", | ||
"globals": "^15.9.0" | ||
}, | ||
@@ -52,3 +55,4 @@ "nyc": { | ||
"index.js", | ||
"test/**" | ||
"test/**", | ||
"eslint.config.js" | ||
], | ||
@@ -55,0 +59,0 @@ "lines": 100, |
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
125008
2853
9
42
+ Addedglob@11.0.0(transitive)
+ Addedjackspeak@4.0.2(transitive)
+ Addedlru-cache@11.0.2(transitive)
+ Addedminimatch@10.0.1(transitive)
+ Addedpath-scurry@2.0.0(transitive)
- Removed@pkgjs/parseargs@0.11.0(transitive)
- Removedglob@10.4.5(transitive)
- Removedjackspeak@3.4.3(transitive)
- Removedlru-cache@10.4.3(transitive)
- Removedminimatch@9.0.5(transitive)
- Removedpath-scurry@1.11.1(transitive)
Updateddebug@^4.3.7
Updatedglob@^11.0.0