@kithinji/pod 1.0.16 → 1.0.17
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/main.js
CHANGED
|
@@ -1672,8 +1672,9 @@ var ElementTransformer = class {
|
|
|
1672
1672
|
);
|
|
1673
1673
|
}
|
|
1674
1674
|
if (hasDangerousHTML && dangerousHTMLValue) {
|
|
1675
|
-
|
|
1676
|
-
this.t.
|
|
1675
|
+
const effectCall = this.t.callExpression(this.t.identifier("$effect"), [
|
|
1676
|
+
this.t.arrowFunctionExpression(
|
|
1677
|
+
[],
|
|
1677
1678
|
this.t.assignmentExpression(
|
|
1678
1679
|
"=",
|
|
1679
1680
|
this.t.memberExpression(elId, this.t.identifier("innerHTML")),
|
|
@@ -1683,7 +1684,12 @@ var ElementTransformer = class {
|
|
|
1683
1684
|
)
|
|
1684
1685
|
)
|
|
1685
1686
|
)
|
|
1687
|
+
]);
|
|
1688
|
+
const cleanupStatements = this.astUtils.addEffectCleanup(
|
|
1689
|
+
scope,
|
|
1690
|
+
effectCall
|
|
1686
1691
|
);
|
|
1692
|
+
statements.push(...cleanupStatements);
|
|
1687
1693
|
}
|
|
1688
1694
|
if (!hasDangerousHTML) {
|
|
1689
1695
|
this.processDOMChildren(
|
|
@@ -4710,7 +4716,7 @@ function printNextSteps(projectName, env, services) {
|
|
|
4710
4716
|
|
|
4711
4717
|
// src/main.ts
|
|
4712
4718
|
var program = new Command();
|
|
4713
|
-
program.name("pod").description("Pod cli tool").version("1.0.
|
|
4719
|
+
program.name("pod").description("Pod cli tool").version("1.0.17");
|
|
4714
4720
|
program.command("new <name>").description("Start a new Pod Project").action(async (name) => {
|
|
4715
4721
|
await addNew(name);
|
|
4716
4722
|
const appDir = path13.resolve(process.cwd(), name);
|