itivrutaha 2.0.13 → 2.0.14
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/dist/itivrutaha.js +2 -2
- package/package.json +16 -15
package/dist/itivrutaha.js
CHANGED
|
@@ -13,7 +13,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
13
13
|
};
|
|
14
14
|
import chalk from 'chalk';
|
|
15
15
|
import merge from 'deepmerge';
|
|
16
|
-
import
|
|
16
|
+
import { deleteAsync } from 'del';
|
|
17
17
|
import { DateTime } from 'luxon';
|
|
18
18
|
import { readPackageUpSync } from 'read-pkg-up';
|
|
19
19
|
import { Logger } from './class/index.js';
|
|
@@ -100,7 +100,7 @@ const createNewLogger = (config = defaults) => __awaiter(void 0, void 0, void 0,
|
|
|
100
100
|
// return a new LoggerClass instance
|
|
101
101
|
return new Logger(config, data);
|
|
102
102
|
});
|
|
103
|
-
const clearLogs = (logger) => __awaiter(void 0, void 0, void 0, function* () { return yield
|
|
103
|
+
const clearLogs = (logger) => __awaiter(void 0, void 0, void 0, function* () { return yield deleteAsync(logger.config.logs.dir, { force: true }); });
|
|
104
104
|
// Export the above two functions
|
|
105
105
|
export default {
|
|
106
106
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "itivrutaha",
|
|
3
3
|
"description": "( इतिवृत्तः ) — Logging system ✍ for Node.js with 🍬 theming and file 🗃 logging support.",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.14",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/itivrutaha.js",
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"scripts": {
|
|
20
20
|
"dev": "tsc --watch",
|
|
21
21
|
"build": "rimraf ./dist && tsc --incremental false",
|
|
22
|
-
"docs": "rimraf docs/ && node scripts/docs.js"
|
|
22
|
+
"docs": "rimraf docs/ && node scripts/docs.js",
|
|
23
|
+
"clean": "rimraf dist"
|
|
23
24
|
},
|
|
24
25
|
"keywords": [
|
|
25
26
|
"cli",
|
|
@@ -33,13 +34,13 @@
|
|
|
33
34
|
"command-line"
|
|
34
35
|
],
|
|
35
36
|
"dependencies": {
|
|
36
|
-
"chalk": "^5.0.
|
|
37
|
+
"chalk": "^5.0.1",
|
|
37
38
|
"clear-terminal-line": "^0.0.1",
|
|
38
39
|
"deepmerge": "^4.2.2",
|
|
39
|
-
"del": "^
|
|
40
|
+
"del": "^7.0.0",
|
|
40
41
|
"env-paths": "^3.0.0",
|
|
41
42
|
"joi": "^17.6.0",
|
|
42
|
-
"luxon": "^
|
|
43
|
+
"luxon": "^3.0.1",
|
|
43
44
|
"mkdirp": "^1.0.4",
|
|
44
45
|
"node-cleanup": "^2.1.2",
|
|
45
46
|
"node-emoji": "^1.11.0",
|
|
@@ -47,21 +48,21 @@
|
|
|
47
48
|
"strip-ansi": "^7.0.1"
|
|
48
49
|
},
|
|
49
50
|
"devDependencies": {
|
|
50
|
-
"@types/luxon": "^
|
|
51
|
+
"@types/luxon": "^3.0.0",
|
|
51
52
|
"@types/mkdirp": "^1.0.2",
|
|
52
|
-
"@types/node": "^
|
|
53
|
+
"@types/node": "^18.6.1",
|
|
53
54
|
"@types/node-cleanup": "^2.1.2",
|
|
54
55
|
"@types/node-emoji": "^1.8.1",
|
|
55
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
56
|
-
"@typescript-eslint/parser": "^5.
|
|
56
|
+
"@typescript-eslint/eslint-plugin": "^5.30.7",
|
|
57
|
+
"@typescript-eslint/parser": "^5.30.7",
|
|
57
58
|
"es-dirname": "^0.1.0",
|
|
58
|
-
"eslint": "^8.
|
|
59
|
-
"eslint-config-prettier": "^8.
|
|
60
|
-
"eslint-plugin-import": "^2.
|
|
61
|
-
"eslint-plugin-prettier": "^4.
|
|
59
|
+
"eslint": "^8.20.0",
|
|
60
|
+
"eslint-config-prettier": "^8.5.0",
|
|
61
|
+
"eslint-plugin-import": "^2.26.0",
|
|
62
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
62
63
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
63
|
-
"prettier": "^2.
|
|
64
|
+
"prettier": "^2.7.1",
|
|
64
65
|
"rimraf": "^3.0.2",
|
|
65
|
-
"typescript": "^4.
|
|
66
|
+
"typescript": "^4.7.4"
|
|
66
67
|
}
|
|
67
68
|
}
|