Skip to content

Commit

Permalink
DD-272 Updating dependencies and moving to Node 22
Browse files Browse the repository at this point in the history
  • Loading branch information
KLV96 committed Sep 26, 2024
1 parent b93ccd2 commit a5be1a4
Show file tree
Hide file tree
Showing 10 changed files with 907 additions and 635 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

25 changes: 0 additions & 25 deletions .eslintrc

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
node-version: [22.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
Expand Down
8 changes: 4 additions & 4 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ export default defineConfig([
{
languageOptions: {
globals: {
module: 'readonly', // Add other globals as needed
module: 'readonly',
},
parserOptions: {
ecmaVersion: 2021, // Specify ECMAScript version
sourceType: 'module', // Specify source type if using modules
ecmaVersion: 2021,
sourceType: 'module',
},
},
ignores: ['/coverage/**'], // Add your ignore pattern here
ignores: ['/coverage/**'],
rules: recommendedRules,
},
]);
2 changes: 1 addition & 1 deletion lib/formatters/json.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = function (options = {}) {
return function JSONFormatter(meta) {
try {
return JSON.stringify(meta, null, options.indent || 2 );
} catch (e) {
} catch {
return;
}
};
Expand Down
2 changes: 1 addition & 1 deletion lib/interpolate.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ interpolate.stringify = function (obj, {maxLength, maxObjects = 10, circular = '
};
try {
return JSON.stringify(obj, replacer, indent);
} catch (e) {
} catch {
return;
}
};
Expand Down
4 changes: 2 additions & 2 deletions lib/module-name.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ moduleName.getStack = function () {
Error.prepareStackTrace = function (err, stack) { return stack; };
const err = new Error();
stack = err.stack;
} catch (e) { /* eslint "no-empty":0 */ }
} catch { /* eslint "no-empty":0 */ }

Error.prepareStackTrace = prepareStackTrace;
return stack;
Expand Down Expand Up @@ -58,7 +58,7 @@ moduleName.getName = function (level) {

const packageData = require(packageFile);
return packageData.name;
} catch (e) {
} catch {
return UNKNOWN;
}
};
Expand Down
2 changes: 1 addition & 1 deletion lib/transports/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class FileTransport extends StreamTransport {
try {
logfileDate = fs.statSync(this._filename).mtime;
debug('Existing log file date', logfileDate);
} catch (e) {
} catch {
debug('No existing log file');
}
return logfileDate;
Expand Down
Loading

0 comments on commit a5be1a4

Please sign in to comment.