@nine-lab/nine-mu 0.1.112 → 0.1.113
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/nine-mu.js +15 -8
- package/dist/nine-mu.js.map +1 -1
- package/dist/nine-mu.umd.js +3 -3
- package/dist/nine-mu.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/external/NoPeer.js +14 -4
package/package.json
CHANGED
package/src/external/NoPeer.js
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
import { trace as traceOrigin } from '@nine-lab/nine-util';
|
|
2
2
|
|
|
3
|
-
export class
|
|
3
|
+
export class NineMuTrace extends traceOrigin.constructor {
|
|
4
|
+
#logger;
|
|
5
|
+
|
|
4
6
|
constructor() {
|
|
5
|
-
super();
|
|
6
|
-
|
|
7
|
+
super();
|
|
8
|
+
// 🟢 부모의 init을 이용해 '나만의 리모컨'을 생성해서 딱 보관합니다.
|
|
9
|
+
this.#logger = this.init("nine-mu", "#0969da");
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// 🔴 부모의 log를 내 리모컨의 log로 덮어씌웁니다 (Override)
|
|
13
|
+
get log() {
|
|
14
|
+
return this.#logger.log;
|
|
7
15
|
}
|
|
16
|
+
|
|
17
|
+
// 필요하다면 warn, error도 똑같이...
|
|
8
18
|
}
|
|
9
19
|
|
|
10
|
-
export const trace = new
|
|
20
|
+
export const trace = new NineMuTrace();
|