node-ansi-logger 3.3.2-dev-20260921-3edd1cb → 3.3.2-dev-20260929-e6adf07
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 +10 -6
- package/dist/logger.js +2 -2
- package/dist/stringify.js +2 -2
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -27,16 +27,20 @@ If you like this project and find it useful, please consider giving it a star on
|
|
|
27
27
|
|
|
28
28
|
- [devcontainer]: Add [`Dev Container`](.devcontainer/README.md) v.2.2.0 with dual Node and Bun runtime support.
|
|
29
29
|
- [agents]: Add a [`shared setup`](.agents/README.md) for all agents: OpenAI Codex, Claude Code, GitHub Copilot and Google Gemini / Antigravity.
|
|
30
|
+
- [agents]: Add [`commit message instructions`](.github/commit-message-instructions.md) v.1.0.0 for the VS Code Copilot "Generate Commit Message" button (Conventional Commits).
|
|
30
31
|
|
|
31
32
|
### Changed
|
|
32
33
|
|
|
34
|
+
- [vscode]: Update `.vscode/settings.json` to v.1.0.13: point the Copilot "Generate Commit Message" button to `.github/commit-message-instructions.md`.
|
|
35
|
+
- [styleguide]: Update [`STYLEGUIDE.md`](STYLEGUIDE.md) to v.1.1.0: align it with the lint and format config and add the Commit Messages and Changelog sections.
|
|
36
|
+
- [scripts]: Update `scripts/clean.mjs` and `scripts/deep-clean.mjs` to v.1.3.0: log every removed path, add `--help` and `--version` and reject unknown arguments.
|
|
33
37
|
- [package]: Upgrade package.
|
|
34
|
-
- [package]: Bump `oxfmt` to v.0.
|
|
35
|
-
- [package]: Bump `oxlint` to v.1.
|
|
36
|
-
- [package]: Bump `oxlint-tsgolint` to v.7.0.
|
|
37
|
-
- [package]: Bump `vitest` to v.5.0.
|
|
38
|
-
- [package]: Bump `@vitest/coverage-v8` to v.5.0.
|
|
39
|
-
- [package]: Bump `@types/node` to v.26.6.
|
|
38
|
+
- [package]: Bump `oxfmt` to v.0.71.0.
|
|
39
|
+
- [package]: Bump `oxlint` to v.1.86.0.
|
|
40
|
+
- [package]: Bump `oxlint-tsgolint` to v.7.0.2003.
|
|
41
|
+
- [package]: Bump `vitest` to v.5.0.2.
|
|
42
|
+
- [package]: Bump `@vitest/coverage-v8` to v.5.0.2.
|
|
43
|
+
- [package]: Bump `@types/node` to v.26.6.3.
|
|
40
44
|
|
|
41
45
|
<a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
|
|
42
46
|
|
package/dist/logger.js
CHANGED
|
@@ -743,7 +743,7 @@ export class AnsiLogger {
|
|
|
743
743
|
const size = this.logToFile(this.logFilePath, level, message, ...parameters);
|
|
744
744
|
this.#logFileSize += size;
|
|
745
745
|
if (this.#logFileSize >= this.#maxFileSize) {
|
|
746
|
-
|
|
746
|
+
/* v8 ignore next */
|
|
747
747
|
appendFileSync(this.logFilePath, `Logging on file has been stoppped because the file size is greater then ${this.#maxFileSize}B.\n`);
|
|
748
748
|
}
|
|
749
749
|
}
|
|
@@ -761,7 +761,7 @@ export class AnsiLogger {
|
|
|
761
761
|
const size = this.logToFile(__AnsiLoggerFilePath__, level, message, ...parameters);
|
|
762
762
|
__AnsiLoggerFileLogSize__ += size;
|
|
763
763
|
if (__AnsiLoggerFileLogSize__ >= this.#maxFileSize) {
|
|
764
|
-
|
|
764
|
+
/* v8 ignore next */
|
|
765
765
|
appendFileSync(__AnsiLoggerFilePath__, `Logging on file has been stoppped because the file size is greater then ${this.#maxFileSize}B.\n`);
|
|
766
766
|
}
|
|
767
767
|
}
|
package/dist/stringify.js
CHANGED
|
@@ -123,7 +123,7 @@ export function stringify(payload, enableColors = false, colorPayload = 252, col
|
|
|
123
123
|
return `${clr(colorUndefined)}(function)${reset()}`;
|
|
124
124
|
// No Default
|
|
125
125
|
}
|
|
126
|
-
/*
|
|
126
|
+
/* v8 ignore next */
|
|
127
127
|
return `${clr(colorUndefined)}${String(value)}${reset()}`;
|
|
128
128
|
};
|
|
129
129
|
const isTrackable = typeof payload === 'object' && payload !== null;
|
|
@@ -156,7 +156,7 @@ export function stringify(payload, enableColors = false, colorPayload = 252, col
|
|
|
156
156
|
// @ts-expect-error -- The type of value is unknown, but we will handle it in the code below
|
|
157
157
|
newValue = value;
|
|
158
158
|
// console.log(typeof newValue, key, value);
|
|
159
|
-
|
|
159
|
+
/* v8 ignore next cause is unreachable code for typeof, but included for completeness */
|
|
160
160
|
if (value === null) {
|
|
161
161
|
newValue = `${clr(colorUndefined)}null${reset()}`;
|
|
162
162
|
}
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-ansi-logger",
|
|
3
|
-
"version": "3.3.2-dev-
|
|
3
|
+
"version": "3.3.2-dev-20260929-e6adf07",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "node-ansi-logger",
|
|
9
|
-
"version": "3.3.2-dev-
|
|
9
|
+
"version": "3.3.2-dev-20260929-e6adf07",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"engines": {
|
|
12
12
|
"node": ">=20.19.0 <21.0.0 || >=22.13.0 <23.0.0 || >=24.0.0 <25.0.0 || >=26.0.0 <27.0.0"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-ansi-logger",
|
|
3
|
-
"version": "3.3.2-dev-
|
|
3
|
+
"version": "3.3.2-dev-20260929-e6adf07",
|
|
4
4
|
"description": "Enhanced Ansi Color Logging and Stringify for Node.js in type script",
|
|
5
5
|
"author": "https://github.com/Luligu",
|
|
6
6
|
"license": "Apache-2.0",
|