Skip to content

Commit

Permalink
feat: use approximate-now
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Dec 25, 2020
1 parent f0cf25e commit a09b427
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -16,6 +16,7 @@
]
},
"dependencies": {
"approximate-now": "^1.0.0",
"boolean": "^3.0.2",
"detect-node": "^2.0.4",
"fast-json-stringify": "^2.3.0",
Expand Down
5 changes: 4 additions & 1 deletion src/factories/createLogger.ts
@@ -1,3 +1,6 @@
import {
approximateTime,
} from 'approximate-now';
import environmentIsNode from 'detect-node';
import createGlobalThis from 'globalthis';
import isCircular from 'is-circular';
Expand Down Expand Up @@ -101,7 +104,7 @@ const createLogger = (
i: any,
j: any,
) => {
const time = Date.now();
const time = approximateTime.now;
const sequence = globalThis.ROARR.sequence++;

let context;
Expand Down

0 comments on commit a09b427

Please sign in to comment.