@esportsplus/template 0.16.6 → 0.16.8

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.
@@ -79,7 +79,7 @@ function generateNodeBinding(ctx, anchor, exprText, exprNode) {
79
79
  case TYPES.Effect:
80
80
  return `new ${NAMESPACE}.EffectSlot(${anchor}, ${exprText});`;
81
81
  case TYPES.Static:
82
- return `${anchor}.textContent = ${exprText};`;
82
+ return `${anchor}.after(${NAMESPACE}.text(${exprText}));`;
83
83
  default:
84
84
  return `${NAMESPACE}.slot(${anchor}, ${exprText});`;
85
85
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "dependencies": {
4
4
  "@esportsplus/pipeline": "^1.2.2",
5
5
  "@esportsplus/queue": "^0.2.0",
6
- "@esportsplus/reactivity": "^0.30.1",
6
+ "@esportsplus/reactivity": "^0.30.2",
7
7
  "@esportsplus/typescript": "^0.29.0",
8
8
  "@esportsplus/utilities": "^0.27.2"
9
9
  },
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "type": "module",
41
41
  "types": "./build/index.d.ts",
42
- "version": "0.16.6",
42
+ "version": "0.16.8",
43
43
  "scripts": {
44
44
  "build": "tsc",
45
45
  "test": "vitest run",
@@ -135,7 +135,7 @@ function generateNodeBinding(ctx: CodegenContext, anchor: string, exprText: stri
135
135
  return `new ${NAMESPACE}.EffectSlot(${anchor}, ${exprText});`;
136
136
 
137
137
  case TYPES.Static:
138
- return `${anchor}.textContent = ${exprText};`;
138
+ return `${anchor}.after(${NAMESPACE}.text(${exprText}));`;
139
139
 
140
140
  default:
141
141
  return `${NAMESPACE}.slot(${anchor}, ${exprText});`;