@sapphire/plugin-logger 3.0.1-next.c8e9c6f.0 โ 3.0.1
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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
# [@sapphire/plugin-logger@3.0.1](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-logger@3.0.0...@sapphire/plugin-logger@3.0.1) - (2022-09-18)
|
|
6
|
+
|
|
7
|
+
## ๐ Refactor
|
|
8
|
+
|
|
9
|
+
- **logger:** Switch from time-utilities to timestamp package ([345769b](https://github.com/sapphiredev/plugins/commit/345769b34fe7c3397d5f6cecbe2ab64cf89be600))
|
|
10
|
+
|
|
11
|
+
## ๐งช Testing
|
|
12
|
+
|
|
13
|
+
- Migrate to vitest ([94a182e](https://github.com/sapphiredev/plugins/commit/94a182ea0d03f79616c66983695caf64e93cb6c3))
|
|
14
|
+
|
|
5
15
|
# [@sapphire/plugin-logger@3.0.0](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-logger@2.2.3...@sapphire/plugin-logger@3.0.0) - (2022-08-20)
|
|
6
16
|
|
|
7
17
|
## ๐ Bug Fixes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoggerTimestamp.d.ts","sourceRoot":"","sources":["../../src/lib/LoggerTimestamp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"LoggerTimestamp.d.ts","sourceRoot":"","sources":["../../src/lib/LoggerTimestamp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAEnE;;;GAGG;AACH,qBAAa,eAAe;IAC3B;;;OAGG;IACI,SAAS,EAAE,SAAS,CAAC;IAE5B;;;OAGG;IACI,GAAG,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACI,KAAK,EAAE,WAAW,GAAG,IAAI,CAAC;IAEjC;;;OAGG;IACI,SAAS,EAAE,wBAAwB,CAAC;gBAExB,OAAO,GAAE,sBAA2B;IAOvD;;;OAGG;IACI,GAAG;CAKV;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACtC;;;;;;;;;OASG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IAEd;;;;OAIG;IACH,KAAK,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAAC;IAErC;;;;OAIG;IACH,SAAS,CAAC,EAAE,wBAAwB,CAAC;CACrC;AAED;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACxC;;;OAGG;IACH,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LoggerTimestamp = void 0;
|
|
4
|
-
const
|
|
4
|
+
const timestamp_1 = require("@sapphire/timestamp");
|
|
5
5
|
const LoggerStyle_1 = require("./LoggerStyle");
|
|
6
6
|
/**
|
|
7
7
|
* Logger utility that formats a timestamp.
|
|
@@ -49,7 +49,7 @@ class LoggerTimestamp {
|
|
|
49
49
|
writable: true,
|
|
50
50
|
value: void 0
|
|
51
51
|
});
|
|
52
|
-
this.timestamp = new
|
|
52
|
+
this.timestamp = new timestamp_1.Timestamp(options.pattern ?? 'YYYY-MM-DD HH:mm:ss');
|
|
53
53
|
this.utc = options.utc ?? false;
|
|
54
54
|
this.color = options.color === null ? null : new LoggerStyle_1.LoggerStyle(options.color);
|
|
55
55
|
this.formatter = options.formatter ?? ((timestamp) => `${timestamp} - `);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoggerTimestamp.js","sourceRoot":"","sources":["../../src/lib/LoggerTimestamp.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"LoggerTimestamp.js","sourceRoot":"","sources":["../../src/lib/LoggerTimestamp.ts"],"names":[],"mappings":";;;AAAA,mDAAgD;AAChD,+CAAmE;AAEnE;;;GAGG;AACH,MAAa,eAAe;IAyB3B,YAAmB,UAAkC,EAAE;QAxBvD;;;WAGG;QACH;;;;;WAA4B;QAE5B;;;WAGG;QACH;;;;;WAAoB;QAEpB;;;WAGG;QACH;;;;;WAAiC;QAEjC;;;WAGG;QACH;;;;;WAA2C;QAG1C,IAAI,CAAC,SAAS,GAAG,IAAI,qBAAS,CAAC,OAAO,CAAC,OAAO,IAAI,qBAAqB,CAAC,CAAC;QACzE,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,IAAI,KAAK,CAAC;QAChC,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,yBAAW,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAC5E,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,GAAG,SAAS,KAAK,CAAC,CAAC;IAC1E,CAAC;IAED;;;OAGG;IACI,GAAG;QACT,MAAM,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QACxB,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACzF,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;IACrE,CAAC;CACD;AAzCD,0CAyCC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sapphire/plugin-logger",
|
|
3
|
-
"version": "3.0.1
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "Plugin for @sapphire/framework to have pretty console output",
|
|
5
5
|
"author": "@sapphire",
|
|
6
6
|
"license": "MIT",
|
|
@@ -31,12 +31,13 @@
|
|
|
31
31
|
"build": "tsc -b src && yarn esm:register && yarn esm:default",
|
|
32
32
|
"esm:register": "gen-esm-wrapper dist/register.js dist/register.mjs",
|
|
33
33
|
"esm:default": "gen-esm-wrapper dist/index.js dist/index.mjs",
|
|
34
|
+
"docs": "typedoc-json-parser",
|
|
34
35
|
"prepack": "yarn build",
|
|
35
36
|
"bump": "cliff-jumper",
|
|
36
37
|
"check-update": "cliff-jumper --dry-run"
|
|
37
38
|
},
|
|
38
39
|
"dependencies": {
|
|
39
|
-
"@sapphire/
|
|
40
|
+
"@sapphire/timestamp": "^1.0.0",
|
|
40
41
|
"colorette": "^2.0.19",
|
|
41
42
|
"tslib": "^2.4.0"
|
|
42
43
|
},
|
|
@@ -74,6 +75,8 @@
|
|
|
74
75
|
"devDependencies": {
|
|
75
76
|
"@favware/cliff-jumper": "^1.8.7",
|
|
76
77
|
"gen-esm-wrapper": "^1.1.3",
|
|
77
|
-
"
|
|
78
|
+
"typedoc": "^0.23.14",
|
|
79
|
+
"typedoc-json-parser": "^4.0.0",
|
|
80
|
+
"typescript": "^4.8.3"
|
|
78
81
|
}
|
|
79
82
|
}
|