@ilokesto/utilinent 1.0.13 → 1.0.14

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.
@@ -29,12 +29,18 @@ export const For = new Proxy(Object.assign(BaseFor, tagEntries), {
29
29
  // 'for' 카테고리에서 먼저 찾기
30
30
  if (PluginManager.has('for', propName)) {
31
31
  const component = PluginManager.get('for', propName);
32
- return renderForTag(component);
32
+ const specialized = renderForTag(component);
33
+ // 캐싱하여 다음 조회 시 동일한 참조 반환
34
+ target[prop] = specialized;
35
+ return specialized;
33
36
  }
34
37
  // 'base' 카테고리에서 찾기
35
38
  if (PluginManager.has('base', propName)) {
36
39
  const component = PluginManager.get('base', propName);
37
- return renderForTag(component);
40
+ const specialized = renderForTag(component);
41
+ // 캐싱하여 다음 조회 시 동일한 참조 반환
42
+ target[prop] = specialized;
43
+ return specialized;
38
44
  }
39
45
  // 찾지 못하면 undefined 반환
40
46
  return undefined;
@@ -33,12 +33,18 @@ export const Repeat = new Proxy(Object.assign(BaseRepeat, tagEntries), {
33
33
  // 'repeat' 카테고리에서 먼저 찾기
34
34
  if (PluginManager.has('repeat', propName)) {
35
35
  const component = PluginManager.get('repeat', propName);
36
- return renderForTag(component);
36
+ const specialized = renderForTag(component);
37
+ // 캐싱하여 다음 조회 시 동일한 참조 반환
38
+ target[prop] = specialized;
39
+ return specialized;
37
40
  }
38
41
  // 'base' 카테고리에서 찾기
39
42
  if (PluginManager.has('base', propName)) {
40
43
  const component = PluginManager.get('base', propName);
41
- return renderForTag(component);
44
+ const specialized = renderForTag(component);
45
+ // 캐싱하여 다음 조회 시 동일한 참조 반환
46
+ target[prop] = specialized;
47
+ return specialized;
42
48
  }
43
49
  // 찾지 못하면 undefined 반환
44
50
  return undefined;
@@ -36,12 +36,18 @@ export const Show = new Proxy(Object.assign(BaseShow, tagEntries), {
36
36
  // 'show' 카테고리에서 먼저 찾기
37
37
  if (PluginManager.has('show', propName)) {
38
38
  const component = PluginManager.get('show', propName);
39
- return renderForTag(component);
39
+ const specialized = renderForTag(component);
40
+ // 캐싱하여 다음 조회 시 동일한 참조 반환
41
+ target[prop] = specialized;
42
+ return specialized;
40
43
  }
41
44
  // 'base' 카테고리에서 찾기
42
45
  if (PluginManager.has('base', propName)) {
43
46
  const component = PluginManager.get('base', propName);
44
- return renderForTag(component);
47
+ const specialized = renderForTag(component);
48
+ // 캐싱하여 다음 조회 시 동일한 참조 반환
49
+ target[prop] = specialized;
50
+ return specialized;
45
51
  }
46
52
  // 찾지 못하면 undefined 반환
47
53
  return undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ilokesto/utilinent",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ilokesto/utilinent.git"