@nine-lab/nine-util 0.3.0 β†’ 0.6.0

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-util.js CHANGED
@@ -6,17 +6,19 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
6
6
  var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
7
7
  var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
8
8
  var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
9
- var _name, _color, _enabled, _timer, _queue, _delay, _TaskDebouncer_instances, flush_fn;
9
+ var _name, _color, _enabled, _Trace_instances, autoConfig_fn, _timer, _queue, _delay, _TaskDebouncer_instances, flush_fn;
10
10
  class Trace {
11
11
  // πŸ‘ˆ 이 μƒνƒœκ°’μ΄ 기쀀이 λ©λ‹ˆλ‹€.
12
- constructor(name = "nine-util", color = "#4CAF50") {
12
+ constructor(name = "nine-util", color = "green") {
13
+ __privateAdd(this, _Trace_instances);
13
14
  __privateAdd(this, _name);
14
15
  __privateAdd(this, _color);
15
16
  __privateAdd(this, _enabled, true);
16
17
  __privateSet(this, _name, name);
17
18
  __privateSet(this, _color, color);
19
+ __privateMethod(this, _Trace_instances, autoConfig_fn).call(this);
18
20
  }
19
- init(name, color = "#4CAF50") {
21
+ init(name, color = "green") {
20
22
  __privateSet(this, _name, name);
21
23
  __privateSet(this, _color, color);
22
24
  }
@@ -28,11 +30,11 @@ class Trace {
28
30
  }
29
31
  warn(...args) {
30
32
  if (!__privateGet(this, _enabled)) return;
31
- console.warn(`%c[${__privateGet(this, _name)}-WARN]`, "color: #ffeb3b; font-weight: bold;", ...args);
33
+ console.warn(`%c[${__privateGet(this, _name)}]`, "color: cyan; font-weight: bold;", ...args);
32
34
  }
33
35
  error(...args) {
34
36
  if (!__privateGet(this, _enabled)) return;
35
- console.error(`%c[${__privateGet(this, _name)}-ERR]`, "color: #ff4444; font-weight: bold;", ...args);
37
+ console.error(`%c[${__privateGet(this, _name)}]`, "color: red; font-weight: bold;", ...args);
36
38
  }
37
39
  enable() {
38
40
  __privateSet(this, _enabled, true);
@@ -44,6 +46,23 @@ class Trace {
44
46
  _name = new WeakMap();
45
47
  _color = new WeakMap();
46
48
  _enabled = new WeakMap();
49
+ _Trace_instances = new WeakSet();
50
+ autoConfig_fn = function() {
51
+ if (typeof window === "undefined") return;
52
+ const isLocal = window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1" || window.location.hostname.startsWith("192.168.");
53
+ if (isLocal) {
54
+ this.enable();
55
+ } else {
56
+ this.disable();
57
+ console.log(
58
+ `%c[${__privateGet(this, _name)}]%c 운영 λͺ¨λ“œ: λ‘œκ·Έκ°€ λΉ„ν™œμ„±ν™”λ˜μ—ˆμŠ΅λ‹ˆλ‹€. %ctrace.enable()%c 둜 μΌ€ 수 μžˆμŠ΅λ‹ˆλ‹€.`,
59
+ "color: #4CAF50; font-weight: bold;",
60
+ "",
61
+ "background: #333; color: yellow; padding: 2px 5px;",
62
+ ""
63
+ );
64
+ }
65
+ };
47
66
  const trace = new Trace();
48
67
  if (typeof window !== "undefined") {
49
68
  window.trace = trace;
@@ -1 +1 @@
1
- {"version":3,"file":"nine-util.js","sources":["../src/Trace.js","../src/TaskDebouncer.js"],"sourcesContent":["export class Trace {\r\n\t#name;\r\n\t#color;\r\n\t#enabled = true; // πŸ‘ˆ 이 μƒνƒœκ°’μ΄ 기쀀이 λ©λ‹ˆλ‹€.\r\n\r\n\tconstructor(name = \"nine-util\", color = \"#4CAF50\") {\r\n\t\tthis.#name = name;\r\n\t\tthis.#color = color;\r\n\t}\r\n\r\n\tinit(name, color = \"#4CAF50\") {\r\n\t\tthis.#name = name;\r\n\t\tthis.#color = color;\r\n\t}\r\n\r\n\t// πŸ”΄ 핡심: ν•¨μˆ˜λ₯Ό κ°ˆμ•„λΌμš°μ§€ μ•Šκ³ , 호좜될 λ•Œλ§ˆλ‹€ μƒνƒœλ₯Ό μ²΄ν¬ν•©λ‹ˆλ‹€.\r\n\tlog(...args) {\r\n\t\tif (!this.#enabled) return;\r\n\t\tconst style = `color: ${this.#color}; font-weight: bold;`;\r\n\t\tconsole.log(`%c[${this.#name}]`, style, ...args);\r\n\t}\r\n\r\n\twarn(...args) {\r\n\t\tif (!this.#enabled) return;\r\n\t\tconsole.warn(`%c[${this.#name}-WARN]`, \"color: #ffeb3b; font-weight: bold;\", ...args);\r\n\t}\r\n\r\n\terror(...args) {\r\n\t\tif (!this.#enabled) return;\r\n\t\tconsole.error(`%c[${this.#name}-ERR]`, \"color: #ff4444; font-weight: bold;\", ...args);\r\n\t}\r\n\r\n\tenable() { this.#enabled = true; }\r\n\tdisable() { this.#enabled = false; }\r\n}\r\n\r\nexport const trace = new Trace();\r\n\r\n// λΈŒλΌμš°μ € μ½˜μ†”μ—μ„œ μ¦‰μ‹œ μ œμ–΄ν•  수 μžˆλ„λ‘ window에 μ—°κ²°\r\nif (typeof window !== 'undefined') {\r\n\twindow.trace = trace;\r\n}","export class TaskDebouncer {\r\n\t#timer = null;\r\n\t#queue = [];\r\n\t#delay;\r\n\r\n\tconstructor(delay = 50) {\r\n\t\tthis.#delay = delay;\r\n\t}\r\n\r\n\t/**\r\n\t * @param {Function} func - μ‹€ν–‰ν•  ν•¨μˆ˜\r\n\t * @param {...any} args - ν•¨μˆ˜μ— 전달할 μž„μ˜μ˜ νŒŒλΌλ―Έν„°λ“€\r\n\t */\r\n\texec(func, ...args) {\r\n\t\t// 1. μ–΄λ–€ ν•¨μˆ˜μ™€ μ–΄λ–€ μΈμžλ“€μ΄ λ“€μ–΄μ™”λŠ”μ§€ 큐에 μ €μž₯\r\n\t\tthis.#queue.push({ func, args });\r\n\r\n\t\t// 2. λ””λ°”μš΄μŠ€ 타이머 μ„€μ •\r\n\t\tif (this.#timer) clearTimeout(this.#timer);\r\n\r\n\t\tthis.#timer = setTimeout(() => {\r\n\t\t\tthis.#flush();\r\n\t\t}, this.#delay);\r\n\t}\r\n\r\n\t#flush() {\r\n\t\tif (this.#queue.length === 0) return;\r\n\r\n\t\t// 3. ν˜„μž¬κΉŒμ§€ μŒ“μΈ 큐λ₯Ό 쏙 빼옴\r\n\t\tconst tasks = this.#queue.splice(0, this.#queue.length);\r\n\t\tconst seen = new Set();\r\n\r\n\t\ttasks.forEach(task => {\r\n\t\t\t// 4. 핡심: ν•¨μˆ˜ 이름과 μΈμžλ“€μ„ λ¬Έμžμ—΄λ‘œ ν•©μ³μ„œ μœ λ‹ˆν¬ ν‚€ 생성\r\n\t\t\t// JSON.stringifyλ₯Ό 톡해 [1, {a:1}] 같은 νŒŒλΌλ―Έν„°λ„ λ¬Έμžμ—΄λ‘œ 비ꡐ κ°€λŠ₯\r\n\t\t\tconst identifier = `${task.func.name}_${JSON.stringify(task.args)}`;\r\n\r\n\t\t\tif (!seen.has(identifier)) {\r\n\t\t\t\t// 5. 쀑볡이 아닐 λ•Œλ§Œ μ›λž˜ μΈμžλ“€(...args) κ·ΈλŒ€λ‘œ μ‹€ν–‰\r\n\t\t\t\ttask.func(...task.args);\r\n\t\t\t\tseen.add(identifier);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tthis.#timer = null;\r\n\t}\r\n}"],"names":[],"mappings":";;;;;;;;AAAO;AAAA,MAAM,MAAM;AAAA;AAAA,EAKlB,YAAY,OAAO,aAAa,QAAQ,WAAW;AAJnD;AACA;AACA,iCAAW;AAGV,uBAAK,OAAQ;AACb,uBAAK,QAAS;AAAA,EACf;AAAA,EAEA,KAAK,MAAM,QAAQ,WAAW;AAC7B,uBAAK,OAAQ;AACb,uBAAK,QAAS;AAAA,EACf;AAAA;AAAA,EAGA,OAAO,MAAM;AACZ,QAAI,CAAC,mBAAK,UAAU;AACpB,UAAM,QAAQ,UAAU,mBAAK,OAAM;AACnC,YAAQ,IAAI,MAAM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,KAAK,GAAG,KAAK,IAAI;AACtB,WAAK,IAAI,UAAU;AAAA,IACpB;AAAA,EACD,CAAC;AAED,qBAAK,QAAS;AACf;"}
1
+ {"version":3,"file":"nine-util.js","sources":["../src/Trace.js","../src/TaskDebouncer.js"],"sourcesContent":["export class Trace {\r\n\t#name;\r\n\t#color;\r\n\t#enabled = true; // πŸ‘ˆ 이 μƒνƒœκ°’μ΄ 기쀀이 λ©λ‹ˆλ‹€.\r\n\r\n\tconstructor(name = \"nine-util\", color = \"green\") {\r\n\t\tthis.#name = name;\r\n\t\tthis.#color = color;\r\n\r\n\t\t// μΈμŠ€ν„΄μŠ€κ°€ 생성될 λ•Œ μžλ™μœΌλ‘œ ν™˜κ²½μ„ μ²΄ν¬ν•΄μ„œ λ„κ±°λ‚˜ μΌ­λ‹ˆλ‹€.\r\n\t\tthis.#autoConfig();\r\n\t}\r\n\r\n\t#autoConfig() {\r\n\t\tif (typeof window === 'undefined') return;\r\n\r\n\t\tconst isLocal = window.location.hostname === 'localhost' ||\r\n\t\t\twindow.location.hostname === '127.0.0.1' ||\r\n\t\t\twindow.location.hostname.startsWith('192.168.'); // 둜컬 IP μΆ”κ°€\r\n\r\n\t\tif (isLocal) {\r\n\t\t\tthis.enable();\r\n\t\t\t// 둜컬일 λ•ŒλŠ” ν™˜μ˜ λ©”μ‹œμ§€ (λ”± ν•œ 번만 λ‚˜μ˜€κ²Œ ν•˜λ €λ©΄ 클래슀 λ³€μˆ˜ ν™œμš© κ°€λŠ₯)\r\n\t\t} else {\r\n\t\t\tthis.disable();\r\n\t\t\t// 운영 ν™˜κ²½ μ•ˆλ‚΄ λ©”μ‹œμ§€λŠ” console.log둜 직접 좜λ ₯\r\n\t\t\tconsole.log(\r\n\t\t\t\t`%c[${this.#name}]%c 운영 λͺ¨λ“œ: λ‘œκ·Έκ°€ λΉ„ν™œμ„±ν™”λ˜μ—ˆμŠ΅λ‹ˆλ‹€. %ctrace.enable()%c 둜 μΌ€ 수 μžˆμŠ΅λ‹ˆλ‹€.`,\r\n\t\t\t\t\"color: #4CAF50; font-weight: bold;\", \"\",\r\n\t\t\t\t\"background: #333; color: yellow; padding: 2px 5px;\", \"\"\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\r\n\tinit(name, color = \"green\") {\r\n\t\tthis.#name = name;\r\n\t\tthis.#color = color;\r\n\t}\r\n\r\n\t// πŸ”΄ 핡심: ν•¨μˆ˜λ₯Ό κ°ˆμ•„λΌμš°μ§€ μ•Šκ³ , 호좜될 λ•Œλ§ˆλ‹€ μƒνƒœλ₯Ό μ²΄ν¬ν•©λ‹ˆλ‹€.\r\n\tlog(...args) {\r\n\t\tif (!this.#enabled) return;\r\n\t\tconst style = `color: ${this.#color}; font-weight: bold;`;\r\n\t\tconsole.log(`%c[${this.#name}]`, style, ...args);\r\n\t}\r\n\r\n\twarn(...args) {\r\n\t\tif (!this.#enabled) return;\r\n\t\tconsole.warn(`%c[${this.#name}]`, \"color: cyan; font-weight: bold;\", ...args);\r\n\t}\r\n\r\n\terror(...args) {\r\n\t\tif (!this.#enabled) return;\r\n\t\tconsole.error(`%c[${this.#name}]`, \"color: red; font-weight: bold;\", ...args);\r\n\t}\r\n\r\n\tenable() { this.#enabled = true; }\r\n\tdisable() { this.#enabled = false; }\r\n}\r\n\r\nexport const trace = new Trace();\r\n\r\n// λΈŒλΌμš°μ € μ½˜μ†”μ—μ„œ μ¦‰μ‹œ μ œμ–΄ν•  수 μžˆλ„λ‘ window에 μ—°κ²°\r\nif (typeof window !== 'undefined') {\r\n\twindow.trace = trace;\r\n}","export class TaskDebouncer {\r\n\t#timer = null;\r\n\t#queue = [];\r\n\t#delay;\r\n\r\n\tconstructor(delay = 50) {\r\n\t\tthis.#delay = delay;\r\n\t}\r\n\r\n\t/**\r\n\t * @param {Function} func - μ‹€ν–‰ν•  ν•¨μˆ˜\r\n\t * @param {...any} args - ν•¨μˆ˜μ— 전달할 μž„μ˜μ˜ νŒŒλΌλ―Έν„°λ“€\r\n\t */\r\n\texec(func, ...args) {\r\n\t\t// 1. μ–΄λ–€ ν•¨μˆ˜μ™€ μ–΄λ–€ μΈμžλ“€μ΄ λ“€μ–΄μ™”λŠ”μ§€ 큐에 μ €μž₯\r\n\t\tthis.#queue.push({ func, args });\r\n\r\n\t\t// 2. λ””λ°”μš΄μŠ€ 타이머 μ„€μ •\r\n\t\tif (this.#timer) clearTimeout(this.#timer);\r\n\r\n\t\tthis.#timer = setTimeout(() => {\r\n\t\t\tthis.#flush();\r\n\t\t}, this.#delay);\r\n\t}\r\n\r\n\t#flush() {\r\n\t\tif (this.#queue.length === 0) return;\r\n\r\n\t\t// 3. ν˜„μž¬κΉŒμ§€ μŒ“μΈ 큐λ₯Ό 쏙 빼옴\r\n\t\tconst tasks = this.#queue.splice(0, this.#queue.length);\r\n\t\tconst seen = new Set();\r\n\r\n\t\ttasks.forEach(task => {\r\n\t\t\t// 4. 핡심: ν•¨μˆ˜ 이름과 μΈμžλ“€μ„ λ¬Έμžμ—΄λ‘œ ν•©μ³μ„œ μœ λ‹ˆν¬ ν‚€ 생성\r\n\t\t\t// JSON.stringifyλ₯Ό 톡해 [1, {a:1}] 같은 νŒŒλΌλ―Έν„°λ„ λ¬Έμžμ—΄λ‘œ 비ꡐ κ°€λŠ₯\r\n\t\t\tconst identifier = `${task.func.name}_${JSON.stringify(task.args)}`;\r\n\r\n\t\t\tif (!seen.has(identifier)) {\r\n\t\t\t\t// 5. 쀑볡이 아닐 λ•Œλ§Œ μ›λž˜ μΈμžλ“€(...args) κ·ΈλŒ€λ‘œ μ‹€ν–‰\r\n\t\t\t\ttask.func(...task.args);\r\n\t\t\t\tseen.add(identifier);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tthis.#timer = null;\r\n\t}\r\n}"],"names":[],"mappings":";;;;;;;;AAAO;AAAA,MAAM,MAAM;AAAA;AAAA,EAKlB,YAAY,OAAO,aAAa,QAAQ,SAAS;AAL3C;AACN;AACA;AACA,iCAAW;AAGV,uBAAK,OA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;AACT;AAGC,uBAAK,QAAS;AAAA,EACf;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,KAAK,SAAS,MAAM;AAEnB,uBAAK,QAAO,KAAK,EAAE,MAAM,KAAI,CAAE;AAG/B,QAAI,mBAAK,QAAQ,cAAa,mBAAK,OAAM;AAEzC,uBAAK,QAAS,WAAW,MAAM;AAC9B,4BAAK,oCAAL;AAAA,IACD,GAAG,mBAAK,OAAM;AAAA,EACf;AAuBD;AA7CC;AACA;AACA;AAHM;AAyBN,WAAM,WAAG;AACR,MAAI,mBAAK,QAAO,WAAW,EAAG;AAG9B,QAAM,QAAQ,mBAAK,QAAO,OAAO,GAAG,mBAAK,QAAO,MAAM;AACtD,QAAM,OAAO,oBAAI;AAEjB,QAAM,QAAQ,UAAQ;AAGrB,UAAM,aAAa,GAAG,KAAK,KAAK,IAAI,IAAI,KAAK,UAAU,KAAK,IAAI,CAAC;AAEjE,QAAI,CAAC,KAAK,IAAI,UAAU,GAAG;AAE1B,WAAK,KAAK,GAAG,KAAK,IAAI;AACtB,WAAK,IAAI,UAAU;AAAA,IACpB;AAAA,EACD,CAAC;AAED,qBAAK,QAAS;AACf;"}
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).NineUtil={})}(this,function(e){"use strict";var t,i,s,n,o,a,r,h,c=e=>{throw TypeError(e)},l=(e,t,i)=>t.has(e)||c("Cannot "+i),f=(e,t,i)=>(l(e,t,"read from private field"),i?i.call(e):t.get(e)),d=(e,t,i)=>t.has(e)?c("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),u=(e,t,i,s)=>(l(e,t,"write to private field"),s?s.call(e,i):t.set(e,i),i);class p{constructor(e="nine-util",n="#4CAF50"){d(this,t),d(this,i),d(this,s,!0),u(this,t,e),u(this,i,n)}init(e,s="#4CAF50"){u(this,t,e),u(this,i,s)}log(...e){if(!f(this,s))return;const n=`color: ${f(this,i)}; font-weight: bold;`;console.log(`%c[${f(this,t)}]`,n,...e)}warn(...e){f(this,s)&&console.warn(`%c[${f(this,t)}-WARN]`,"color: #ffeb3b; font-weight: bold;",...e)}error(...e){f(this,s)&&console.error(`%c[${f(this,t)}-ERR]`,"color: #ff4444; font-weight: bold;",...e)}enable(){u(this,s,!0)}disable(){u(this,s,!1)}}t=new WeakMap,i=new WeakMap,s=new WeakMap;const w=new p;"undefined"!=typeof window&&(window.trace=w);n=new WeakMap,o=new WeakMap,a=new WeakMap,r=new WeakSet,h=function(){if(0===f(this,o).length)return;const e=f(this,o).splice(0,f(this,o).length),t=new Set;e.forEach(e=>{const i=`${e.func.name}_${JSON.stringify(e.args)}`;t.has(i)||(e.func(...e.args),t.add(i))}),u(this,n,null)},e.TaskDebouncer=class{constructor(e=50){d(this,r),d(this,n,null),d(this,o,[]),d(this,a),u(this,a,e)}exec(e,...t){f(this,o).push({func:e,args:t}),f(this,n)&&clearTimeout(f(this,n)),u(this,n,setTimeout(()=>{var e,t,i;(e=this,t=r,i=h,l(e,t,"access private method"),i).call(this)},f(this,a)))}},e.Trace=p,e.trace=w,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).NineUtil={})}(this,function(e){"use strict";var t,i,n,o,s,a,h,c,r,l,d=e=>{throw TypeError(e)},f=(e,t,i)=>t.has(e)||d("Cannot "+i),w=(e,t,i)=>(f(e,t,"read from private field"),i?i.call(e):t.get(e)),u=(e,t,i)=>t.has(e)?d("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),p=(e,t,i,n)=>(f(e,t,"write to private field"),n?n.call(e,i):t.set(e,i),i),g=(e,t,i)=>(f(e,t,"access private method"),i);class b{constructor(e="nine-util",a="green"){u(this,o),u(this,t),u(this,i),u(this,n,!0),p(this,t,e),p(this,i,a),g(this,o,s).call(this)}init(e,n="green"){p(this,t,e),p(this,i,n)}log(...e){if(!w(this,n))return;const o=`color: ${w(this,i)}; font-weight: bold;`;console.log(`%c[${w(this,t)}]`,o,...e)}warn(...e){w(this,n)&&console.warn(`%c[${w(this,t)}]`,"color: cyan; font-weight: bold;",...e)}error(...e){w(this,n)&&console.error(`%c[${w(this,t)}]`,"color: red; font-weight: bold;",...e)}enable(){p(this,n,!0)}disable(){p(this,n,!1)}}t=new WeakMap,i=new WeakMap,n=new WeakMap,o=new WeakSet,s=function(){if("undefined"==typeof window)return;"localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname||window.location.hostname.startsWith("192.168.")?this.enable():(this.disable(),console.log(`%c[${w(this,t)}]%c 운영 λͺ¨λ“œ: λ‘œκ·Έκ°€ λΉ„ν™œμ„±ν™”λ˜μ—ˆμŠ΅λ‹ˆλ‹€. %ctrace.enable()%c 둜 μΌ€ 수 μžˆμŠ΅λ‹ˆλ‹€.`,"color: #4CAF50; font-weight: bold;","","background: #333; color: yellow; padding: 2px 5px;",""))};const m=new b;"undefined"!=typeof window&&(window.trace=m);a=new WeakMap,h=new WeakMap,c=new WeakMap,r=new WeakSet,l=function(){if(0===w(this,h).length)return;const e=w(this,h).splice(0,w(this,h).length),t=new Set;e.forEach(e=>{const i=`${e.func.name}_${JSON.stringify(e.args)}`;t.has(i)||(e.func(...e.args),t.add(i))}),p(this,a,null)},e.TaskDebouncer=class{constructor(e=50){u(this,r),u(this,a,null),u(this,h,[]),u(this,c),p(this,c,e)}exec(e,...t){w(this,h).push({func:e,args:t}),w(this,a)&&clearTimeout(w(this,a)),p(this,a,setTimeout(()=>{g(this,r,l).call(this)},w(this,c)))}},e.Trace=b,e.trace=m,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
2
2
  //# sourceMappingURL=nine-util.umd.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"nine-util.umd.cjs","sources":["../src/Trace.js","../src/TaskDebouncer.js"],"sourcesContent":["export class Trace {\r\n\t#name;\r\n\t#color;\r\n\t#enabled = true; // πŸ‘ˆ 이 μƒνƒœκ°’μ΄ 기쀀이 λ©λ‹ˆλ‹€.\r\n\r\n\tconstructor(name = \"nine-util\", color = \"#4CAF50\") {\r\n\t\tthis.#name = name;\r\n\t\tthis.#color = color;\r\n\t}\r\n\r\n\tinit(name, color = \"#4CAF50\") {\r\n\t\tthis.#name = name;\r\n\t\tthis.#color = color;\r\n\t}\r\n\r\n\t// πŸ”΄ 핡심: ν•¨μˆ˜λ₯Ό κ°ˆμ•„λΌμš°μ§€ μ•Šκ³ , 호좜될 λ•Œλ§ˆλ‹€ μƒνƒœλ₯Ό μ²΄ν¬ν•©λ‹ˆλ‹€.\r\n\tlog(...args) {\r\n\t\tif (!this.#enabled) return;\r\n\t\tconst style = `color: ${this.#color}; font-weight: bold;`;\r\n\t\tconsole.log(`%c[${this.#name}]`, style, ...args);\r\n\t}\r\n\r\n\twarn(...args) {\r\n\t\tif (!this.#enabled) return;\r\n\t\tconsole.warn(`%c[${this.#name}-WARN]`, \"color: #ffeb3b; font-weight: bold;\", ...args);\r\n\t}\r\n\r\n\terror(...args) {\r\n\t\tif (!this.#enabled) return;\r\n\t\tconsole.error(`%c[${this.#name}-ERR]`, \"color: #ff4444; font-weight: bold;\", ...args);\r\n\t}\r\n\r\n\tenable() { this.#enabled = true; }\r\n\tdisable() { this.#enabled = false; }\r\n}\r\n\r\nexport const trace = new Trace();\r\n\r\n// λΈŒλΌμš°μ € μ½˜μ†”μ—μ„œ μ¦‰μ‹œ μ œμ–΄ν•  수 μžˆλ„λ‘ window에 μ—°κ²°\r\nif (typeof window !== 'undefined') {\r\n\twindow.trace = trace;\r\n}","export class TaskDebouncer {\r\n\t#timer = null;\r\n\t#queue = [];\r\n\t#delay;\r\n\r\n\tconstructor(delay = 50) {\r\n\t\tthis.#delay = delay;\r\n\t}\r\n\r\n\t/**\r\n\t * @param {Function} func - μ‹€ν–‰ν•  ν•¨μˆ˜\r\n\t * @param {...any} args - ν•¨μˆ˜μ— 전달할 μž„μ˜μ˜ νŒŒλΌλ―Έν„°λ“€\r\n\t */\r\n\texec(func, ...args) {\r\n\t\t// 1. μ–΄λ–€ ν•¨μˆ˜μ™€ μ–΄λ–€ μΈμžλ“€μ΄ λ“€μ–΄μ™”λŠ”μ§€ 큐에 μ €μž₯\r\n\t\tthis.#queue.push({ func, args });\r\n\r\n\t\t// 2. λ””λ°”μš΄μŠ€ 타이머 μ„€μ •\r\n\t\tif (this.#timer) clearTimeout(this.#timer);\r\n\r\n\t\tthis.#timer = setTimeout(() => {\r\n\t\t\tthis.#flush();\r\n\t\t}, this.#delay);\r\n\t}\r\n\r\n\t#flush() {\r\n\t\tif (this.#queue.length === 0) return;\r\n\r\n\t\t// 3. ν˜„μž¬κΉŒμ§€ μŒ“μΈ 큐λ₯Ό 쏙 빼옴\r\n\t\tconst tasks = this.#queue.splice(0, this.#queue.length);\r\n\t\tconst seen = new Set();\r\n\r\n\t\ttasks.forEach(task => {\r\n\t\t\t// 4. 핡심: ν•¨μˆ˜ 이름과 μΈμžλ“€μ„ λ¬Έμžμ—΄λ‘œ ν•©μ³μ„œ μœ λ‹ˆν¬ ν‚€ 생성\r\n\t\t\t// JSON.stringifyλ₯Ό 톡해 [1, {a:1}] 같은 νŒŒλΌλ―Έν„°λ„ λ¬Έμžμ—΄λ‘œ 비ꡐ κ°€λŠ₯\r\n\t\t\tconst identifier = `${task.func.name}_${JSON.stringify(task.args)}`;\r\n\r\n\t\t\tif (!seen.has(identifier)) {\r\n\t\t\t\t// 5. 쀑볡이 아닐 λ•Œλ§Œ μ›λž˜ μΈμžλ“€(...args) κ·ΈλŒ€λ‘œ μ‹€ν–‰\r\n\t\t\t\ttask.func(...task.args);\r\n\t\t\t\tseen.add(identifier);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tthis.#timer = null;\r\n\t}\r\n}"],"names":["Trace","constructor","name","color","__privateAdd","this","_name","_color","_enabled","__privateSet","init","log","args","__privateGet","style","console","warn","error","enable","disable","WeakMap","trace","window","_timer","_queue","_delay","_TaskDebouncer_instances","WeakSet","flush_fn","length","tasks","splice","seen","Set","forEach","task","identifier","func","JSON","stringify","has","add","delay","exec","push","clearTimeout","setTimeout","call"],"mappings":"kkBAAO,MAAMA,EAKZ,WAAAC,CAAYC,EAAO,YAAaC,EAAQ,WAJxCC,EAAAC,KAAAC,GACAF,EAAAC,KAAAE,GACAH,EAAAC,KAAAG,GAAW,GAGVC,EAAAJ,KAAKC,EAAQJ,GACbO,EAAAJ,KAAKE,EAASJ,EACf,CAEA,IAAAO,CAAKR,EAAMC,EAAQ,WAClBM,EAAAJ,KAAKC,EAAQJ,GACbO,EAAAJ,KAAKE,EAASJ,EACf,CAGA,GAAAQ,IAAOC,GACN,IAAKC,OAAKL,GAAU,OACpB,MAAMM,EAAQ,UAAUD,EAAAR,KAAKE,yBAC7BQ,QAAQJ,IAAI,MAAME,EAAAR,KAAKC,MAAUQ,KAAUF,EAC5C,CAEA,IAAAI,IAAQJ,GACFC,OAAKL,IACVO,QAAQC,KAAK,MAAMH,EAAAR,KAAKC,WAAe,wCAAyCM,EACjF,CAEA,KAAAK,IAASL,GACHC,OAAKL,IACVO,QAAQE,MAAM,MAAMJ,EAAAR,KAAKC,UAAc,wCAAyCM,EACjF,CAEA,MAAAM,GAAWT,EAAAJ,KAAKG,GAAW,EAAM,CACjC,OAAAW,GAAYV,EAAAJ,KAAKG,GAAW,EAAO,EAhCnCF,EAAA,IAAAc,QACAb,EAAA,IAAAa,QACAZ,EAAA,IAAAY,QAiCW,MAACC,EAAQ,IAAIrB,EAGH,oBAAXsB,SACVA,OAAOD,MAAQA,GCvCfE,EAAA,IAAAH,QACAI,EAAA,IAAAJ,QACAK,EAAA,IAAAL,QAHMM,EAAA,IAAAC,QAyBNC,EAAM,WACL,GAA2B,IAAvBf,EAAAR,KAAKmB,GAAOK,OAAc,OAG9B,MAAMC,EAAQjB,EAAAR,KAAKmB,GAAOO,OAAO,EAAGlB,EAAAR,KAAKmB,GAAOK,QAC1CG,MAAWC,IAEjBH,EAAMI,QAAQC,IAGb,MAAMC,EAAa,GAAGD,EAAKE,KAAKnC,QAAQoC,KAAKC,UAAUJ,EAAKvB,QAEvDoB,EAAKQ,IAAIJ,KAEbD,EAAKE,QAAQF,EAAKvB,MAClBoB,EAAKS,IAAIL,MAIX3B,EAAAJ,KAAKkB,EAAS,KACf,kBA7CM,MAKN,WAAAtB,CAAYyC,EAAQ,IALdtC,EAAAC,KAAAqB,GACNtB,EAAAC,KAAAkB,EAAS,MACTnB,EAAAC,KAAAmB,EAAS,IACTpB,EAAAC,KAAAoB,GAGChB,EAAAJ,KAAKoB,EAASiB,EACf,CAMA,IAAAC,CAAKN,KAASzB,GAEbC,EAAAR,KAAKmB,GAAOoB,KAAK,CAAEP,OAAMzB,SAGrBC,EAAAR,KAAKkB,IAAQsB,aAAahC,EAAAR,KAAKkB,IAEnCd,EAAAJ,KAAKkB,EAASuB,WAAW,kBACxBzC,OAAKqB,IAAAE,oCAALmB,KAAA1C,OACEQ,OAAKY,IACT"}
1
+ {"version":3,"file":"nine-util.umd.cjs","sources":["../src/Trace.js","../src/TaskDebouncer.js"],"sourcesContent":["export class Trace {\r\n\t#name;\r\n\t#color;\r\n\t#enabled = true; // πŸ‘ˆ 이 μƒνƒœκ°’μ΄ 기쀀이 λ©λ‹ˆλ‹€.\r\n\r\n\tconstructor(name = \"nine-util\", color = \"green\") {\r\n\t\tthis.#name = name;\r\n\t\tthis.#color = color;\r\n\r\n\t\t// μΈμŠ€ν„΄μŠ€κ°€ 생성될 λ•Œ μžλ™μœΌλ‘œ ν™˜κ²½μ„ μ²΄ν¬ν•΄μ„œ λ„κ±°λ‚˜ μΌ­λ‹ˆλ‹€.\r\n\t\tthis.#autoConfig();\r\n\t}\r\n\r\n\t#autoConfig() {\r\n\t\tif (typeof window === 'undefined') return;\r\n\r\n\t\tconst isLocal = window.location.hostname === 'localhost' ||\r\n\t\t\twindow.location.hostname === '127.0.0.1' ||\r\n\t\t\twindow.location.hostname.startsWith('192.168.'); // 둜컬 IP μΆ”κ°€\r\n\r\n\t\tif (isLocal) {\r\n\t\t\tthis.enable();\r\n\t\t\t// 둜컬일 λ•ŒλŠ” ν™˜μ˜ λ©”μ‹œμ§€ (λ”± ν•œ 번만 λ‚˜μ˜€κ²Œ ν•˜λ €λ©΄ 클래슀 λ³€μˆ˜ ν™œμš© κ°€λŠ₯)\r\n\t\t} else {\r\n\t\t\tthis.disable();\r\n\t\t\t// 운영 ν™˜κ²½ μ•ˆλ‚΄ λ©”μ‹œμ§€λŠ” console.log둜 직접 좜λ ₯\r\n\t\t\tconsole.log(\r\n\t\t\t\t`%c[${this.#name}]%c 운영 λͺ¨λ“œ: λ‘œκ·Έκ°€ λΉ„ν™œμ„±ν™”λ˜μ—ˆμŠ΅λ‹ˆλ‹€. %ctrace.enable()%c 둜 μΌ€ 수 μžˆμŠ΅λ‹ˆλ‹€.`,\r\n\t\t\t\t\"color: #4CAF50; font-weight: bold;\", \"\",\r\n\t\t\t\t\"background: #333; color: yellow; padding: 2px 5px;\", \"\"\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\r\n\tinit(name, color = \"green\") {\r\n\t\tthis.#name = name;\r\n\t\tthis.#color = color;\r\n\t}\r\n\r\n\t// πŸ”΄ 핡심: ν•¨μˆ˜λ₯Ό κ°ˆμ•„λΌμš°μ§€ μ•Šκ³ , 호좜될 λ•Œλ§ˆλ‹€ μƒνƒœλ₯Ό μ²΄ν¬ν•©λ‹ˆλ‹€.\r\n\tlog(...args) {\r\n\t\tif (!this.#enabled) return;\r\n\t\tconst style = `color: ${this.#color}; font-weight: bold;`;\r\n\t\tconsole.log(`%c[${this.#name}]`, style, ...args);\r\n\t}\r\n\r\n\twarn(...args) {\r\n\t\tif (!this.#enabled) return;\r\n\t\tconsole.warn(`%c[${this.#name}]`, \"color: cyan; font-weight: bold;\", ...args);\r\n\t}\r\n\r\n\terror(...args) {\r\n\t\tif (!this.#enabled) return;\r\n\t\tconsole.error(`%c[${this.#name}]`, \"color: red; font-weight: bold;\", ...args);\r\n\t}\r\n\r\n\tenable() { this.#enabled = true; }\r\n\tdisable() { this.#enabled = false; }\r\n}\r\n\r\nexport const trace = new Trace();\r\n\r\n// λΈŒλΌμš°μ € μ½˜μ†”μ—μ„œ μ¦‰μ‹œ μ œμ–΄ν•  수 μžˆλ„λ‘ window에 μ—°κ²°\r\nif (typeof window !== 'undefined') {\r\n\twindow.trace = trace;\r\n}","export class TaskDebouncer {\r\n\t#timer = null;\r\n\t#queue = [];\r\n\t#delay;\r\n\r\n\tconstructor(delay = 50) {\r\n\t\tthis.#delay = delay;\r\n\t}\r\n\r\n\t/**\r\n\t * @param {Function} func - μ‹€ν–‰ν•  ν•¨μˆ˜\r\n\t * @param {...any} args - ν•¨μˆ˜μ— 전달할 μž„μ˜μ˜ νŒŒλΌλ―Έν„°λ“€\r\n\t */\r\n\texec(func, ...args) {\r\n\t\t// 1. μ–΄λ–€ ν•¨μˆ˜μ™€ μ–΄λ–€ μΈμžλ“€μ΄ λ“€μ–΄μ™”λŠ”μ§€ 큐에 μ €μž₯\r\n\t\tthis.#queue.push({ func, args });\r\n\r\n\t\t// 2. λ””λ°”μš΄μŠ€ 타이머 μ„€μ •\r\n\t\tif (this.#timer) clearTimeout(this.#timer);\r\n\r\n\t\tthis.#timer = setTimeout(() => {\r\n\t\t\tthis.#flush();\r\n\t\t}, this.#delay);\r\n\t}\r\n\r\n\t#flush() {\r\n\t\tif (this.#queue.length === 0) return;\r\n\r\n\t\t// 3. ν˜„μž¬κΉŒμ§€ μŒ“μΈ 큐λ₯Ό 쏙 빼옴\r\n\t\tconst tasks = this.#queue.splice(0, this.#queue.length);\r\n\t\tconst seen = new Set();\r\n\r\n\t\ttasks.forEach(task => {\r\n\t\t\t// 4. 핡심: ν•¨μˆ˜ 이름과 μΈμžλ“€μ„ λ¬Έμžμ—΄λ‘œ ν•©μ³μ„œ μœ λ‹ˆν¬ ν‚€ 생성\r\n\t\t\t// JSON.stringifyλ₯Ό 톡해 [1, {a:1}] 같은 νŒŒλΌλ―Έν„°λ„ λ¬Έμžμ—΄λ‘œ 비ꡐ κ°€λŠ₯\r\n\t\t\tconst identifier = `${task.func.name}_${JSON.stringify(task.args)}`;\r\n\r\n\t\t\tif (!seen.has(identifier)) {\r\n\t\t\t\t// 5. 쀑볡이 아닐 λ•Œλ§Œ μ›λž˜ μΈμžλ“€(...args) κ·ΈλŒ€λ‘œ μ‹€ν–‰\r\n\t\t\t\ttask.func(...task.args);\r\n\t\t\t\tseen.add(identifier);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tthis.#timer = null;\r\n\t}\r\n}"],"names":["Trace","constructor","name","color","__privateAdd","this","_Trace_instances","_name","_color","_enabled","__privateSet","__privateMethod","autoConfig_fn","call","init","log","args","__privateGet","style","console","warn","error","enable","disable","WeakMap","WeakSet","window","location","hostname","startsWith","trace","_timer","_queue","_delay","_TaskDebouncer_instances","flush_fn","length","tasks","splice","seen","Set","forEach","task","identifier","func","JSON","stringify","has","add","delay","exec","push","clearTimeout","setTimeout"],"mappings":"onBAAO,MAAMA,EAKZ,WAAAC,CAAYC,EAAO,YAAaC,EAAQ,SALlCC,EAAAC,KAAAC,GACNF,EAAAC,KAAAE,GACAH,EAAAC,KAAAG,GACAJ,EAAAC,KAAAI,GAAW,GAGVC,EAAAL,KAAKE,EAAQL,GACbQ,EAAAL,KAAKG,EAASL,GAGdQ,EAAAN,KAAKC,EAAAM,GAALC,KAAAR,KACD,CAuBA,IAAAS,CAAKZ,EAAMC,EAAQ,SAClBO,EAAAL,KAAKE,EAAQL,GACbQ,EAAAL,KAAKG,EAASL,EACf,CAGA,GAAAY,IAAOC,GACN,IAAKC,OAAKR,GAAU,OACpB,MAAMS,EAAQ,UAAUD,EAAAZ,KAAKG,yBAC7BW,QAAQJ,IAAI,MAAME,EAAAZ,KAAKE,MAAUW,KAA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B,EAAS,MACT3B,EAAAC,KAAA2B,EAAS,IACT5B,EAAAC,KAAA4B,GAGCvB,EAAAL,KAAK4B,EAASgB,EACf,CAMA,IAAAC,CAAKN,KAAS5B,GAEbC,EAAAZ,KAAK2B,GAAOmB,KAAK,CAAEP,OAAM5B,SAGrBC,EAAAZ,KAAK0B,IAAQqB,aAAanC,EAAAZ,KAAK0B,IAEnCrB,EAAAL,KAAK0B,EAASsB,WAAW,KACxB1C,EAAAN,KAAK6B,EAAAC,GAALtB,KAAAR,OACEY,OAAKgB,IACT"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nine-lab/nine-util",
3
- "version": "0.3.0",
3
+ "version": "0.6.0",
4
4
  "description": "Custom Element based Util Component for Real-time Collaboration",
5
5
  "type": "module",
6
6
  "main": "./dist/nine-util.umd.cjs",