Skip to content

Commit

Permalink
Remove dependency on moment.js
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Mar 24, 2022
1 parent a4401b7 commit 706055e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"properties": "never"
}],
"node/no-unpublished-require": ["error", {
"allowModules": ["chai", "rimraf", "moment"]
"allowModules": ["chai", "rimraf"]
}]
}
}
1 change: 0 additions & 1 deletion 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 @@ -39,7 +39,6 @@
"eslint": "^6.8.0",
"eslint-plugin-node": "^11.1.0",
"mocha": "^7.2.0",
"moment": "^2.29.1",
"rimraf": "^3.0.2",
"threads": "^1.7.0"
},
Expand Down
3 changes: 1 addition & 2 deletions test/transport-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ var fs = require('fs');
var path = require('path');
var expect = require('chai').expect;
var rimraf = require('rimraf');
var moment = require('moment');
var winston = require('winston');
// eslint-disable-next-line node/no-unpublished-require
var { spawn, Thread, Worker } = require('threads');
Expand Down Expand Up @@ -74,7 +73,7 @@ describe('winston/transports/daily-rotate-file', function () {

describe('when using a filename or dirname', function () {
var logDir = path.join(__dirname, 'logs');
var now = moment().utc().format('YYYY-MM-DD-HH');
var now = new Date().toISOString().replace('T', '-').slice(0, 13); // YYYY-MM-DD-HH
var filename = path.join(logDir, 'application-' + now + '.testlog');
var options = {
json: true,
Expand Down

0 comments on commit 706055e

Please sign in to comment.