@abtnode/logger 1.16.21-beta-2e75c75c → 1.16.21-beta-da3f852a
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/util.js +4 -4
- package/package.json +3 -3
package/lib/util.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
const path = require('path');
|
|
2
2
|
|
|
3
3
|
const getPreDate = (date) => {
|
|
4
|
-
date.
|
|
4
|
+
date.setUTCDate(date.getUTCDate() - 1);
|
|
5
5
|
|
|
6
|
-
const year = date.
|
|
7
|
-
const month = (date.
|
|
8
|
-
const day = date.
|
|
6
|
+
const year = date.getUTCFullYear().toString();
|
|
7
|
+
const month = (date.getUTCMonth() + 1).toString().padStart(2, 0);
|
|
8
|
+
const day = date.getUTCDate().toString().padStart(2, 0);
|
|
9
9
|
|
|
10
10
|
return { year, month, day };
|
|
11
11
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abtnode/logger",
|
|
3
|
-
"version": "1.16.21-beta-
|
|
3
|
+
"version": "1.16.21-beta-da3f852a",
|
|
4
4
|
"description": "ABT Node logger lib",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"logger",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"url": "https://github.com/ArcBlock/blocklet-server/issues"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@abtnode/constant": "1.16.21-beta-
|
|
37
|
+
"@abtnode/constant": "1.16.21-beta-da3f852a",
|
|
38
38
|
"debug": "^4.3.4",
|
|
39
39
|
"fast-safe-stringify": "^2.1.1",
|
|
40
40
|
"fs-extra": "^10.1.0",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"express": "^4.18.2"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "57b315bdb59f2125c5f0595d5cb21c92196710ba"
|
|
51
51
|
}
|