loggj 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/handlers/rotating.js +4 -3
- package/lib/utils/re-glob.js +2 -2
- package/package.json +1 -1
package/lib/handlers/rotating.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const fs = require('fs')
|
|
3
|
+
const fs = require('fs');
|
|
4
|
+
const fsPromises = fs.promises;
|
|
4
5
|
var util = require('util');
|
|
5
6
|
var lockFile = require('lockfile');
|
|
6
7
|
var path = require('path');
|
|
7
8
|
|
|
8
|
-
var stat =
|
|
9
|
-
var readdir =
|
|
9
|
+
var stat = fsPromises.stat;
|
|
10
|
+
var readdir = fsPromises.readdir;
|
|
10
11
|
|
|
11
12
|
var compileFormat = require('../utils/compileFormat');
|
|
12
13
|
|
package/lib/utils/re-glob.js
CHANGED
|
@@ -68,9 +68,9 @@ function Minimatch(pattern, options) {
|
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
|
|
71
|
-
module.exports = glob
|
|
71
|
+
module.exports = glob;
|
|
72
72
|
|
|
73
|
-
const fs = require('fs')
|
|
73
|
+
const fs = require('fs');
|
|
74
74
|
var inherits = require("util").inherits
|
|
75
75
|
, EE = require("events").EventEmitter
|
|
76
76
|
, path = require("path")
|