bananass-utils-console 0.4.0 → 0.4.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/README.md CHANGED
@@ -142,7 +142,7 @@ npm create bananass@latest
142
142
 
143
143
  ## 버전 정책<sup>Versioning</sup>
144
144
 
145
- 바나나 프레임워크는 [유의적 버전 정책<sup>Sementic Versioning</sup>](https://semver.org/lang/ko/)을 따릅니다. 모든 릴리즈 버전은 `주(MAJOR).부(MINOR).수(PATCH)` 형식을 따릅니다.
145
+ 바나나 프레임워크는 [유의적 버전 정책<sup>Semantic Versioning</sup>](https://semver.org/lang/ko/)을 따릅니다. 모든 릴리즈 버전은 `주(MAJOR).부(MINOR).수(PATCH)` 형식을 따릅니다.
146
146
 
147
147
  ## 기여자 행동 강령 규약<sup>Code of Conduct</sup>
148
148
 
@@ -56,10 +56,10 @@ declare class Logger {
56
56
  * - `quiet === true`: output X
57
57
  * - `quiet === false`: output O
58
58
  *
59
- * @param {...any} params
59
+ * @param {...unknown} params
60
60
  * @returns {Logger}
61
61
  */
62
- log(...params: any[]): Logger;
62
+ log(...params: unknown[]): Logger;
63
63
  /**
64
64
  * Log a message or executes a callback in debug mode.
65
65
  *
@@ -72,10 +72,10 @@ declare class Logger {
72
72
  * - `quiet === false && debug === true`: output O
73
73
  * - `quiet === false && debug === false`: output X
74
74
  *
75
- * @param {...any} params
75
+ * @param {...unknown} params
76
76
  * @returns {Logger}
77
77
  */
78
- debug(...params: any[]): Logger;
78
+ debug(...params: unknown[]): Logger;
79
79
  /**
80
80
  * Ends the current line by logging an empty line using the last method called.
81
81
  *
@@ -88,7 +88,6 @@ declare class Logger {
88
88
  eol(): Logger;
89
89
  /**
90
90
  * Get the last method called.
91
- *
92
91
  * @returns {'log' | 'debug'}
93
92
  */
94
93
  get lastMethodCalled(): "log" | "debug";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bananass-utils-console",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "type": "module",
5
5
  "description": "Console Utilities for Bananass Framework.🍌",
6
6
  "exports": {
@@ -98,5 +98,5 @@
98
98
  "build": "npx tsc && node ../../scripts/cp.mjs ../../LICENSE.md LICENSE.md ../../README.md README.md",
99
99
  "test": "node --test"
100
100
  },
101
- "gitHead": "9ef4b5d85c599fd179cd90de4619668d6ee6867f"
101
+ "gitHead": "8bf9720224d0ee59eedd738ef3da1c8713520701"
102
102
  }
@@ -24,9 +24,10 @@ import isUnicodeSupported from '../is-unicode-supported/index.js';
24
24
  // --------------------------------------------------------------------------------
25
25
 
26
26
  /**
27
- * @param {string | string[]} unicode Used when Unicode is supported.
28
- * @param {string | string[]} ascii Used when Unicode is not supported.
29
- * @returns {any}
27
+ * @template {string | string[]} T
28
+ * @param {T} unicode Used when Unicode is supported.
29
+ * @param {T} ascii Used when Unicode is not supported.
30
+ * @returns {T}
30
31
  */
31
32
  const choose = (unicode, ascii) => (isUnicodeSupported() ? unicode : ascii);
32
33
 
@@ -69,7 +69,7 @@ class Logger {
69
69
  * - `quiet === true`: output X
70
70
  * - `quiet === false`: output O
71
71
  *
72
- * @param {...any} params
72
+ * @param {...unknown} params
73
73
  * @returns {Logger}
74
74
  */
75
75
  log(...params) {
@@ -111,7 +111,7 @@ class Logger {
111
111
  * - `quiet === false && debug === true`: output O
112
112
  * - `quiet === false && debug === false`: output X
113
113
  *
114
- * @param {...any} params
114
+ * @param {...unknown} params
115
115
  * @returns {Logger}
116
116
  */
117
117
  debug(...params) {
@@ -172,7 +172,6 @@ class Logger {
172
172
 
173
173
  /**
174
174
  * Get the last method called.
175
- *
176
175
  * @returns {'log' | 'debug'}
177
176
  */
178
177
  get lastMethodCalled() {