@wuchale/astro 0.2.6 → 0.2.7
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/transformer.js +4 -2
- package/package.json +2 -2
package/dist/transformer.js
CHANGED
|
@@ -233,8 +233,10 @@ export class AstroTransformer extends Transformer {
|
|
|
233
233
|
return this._parseAndVisitExpr(node.value, this.frontMatterStart, true);
|
|
234
234
|
};
|
|
235
235
|
visitroot = (node) => {
|
|
236
|
-
|
|
237
|
-
|
|
236
|
+
// node.children can be undefined!
|
|
237
|
+
const children = node.children ?? [];
|
|
238
|
+
this._saveCorrectedRanges(children, this.content.length);
|
|
239
|
+
return this._visitChildren(children);
|
|
238
240
|
};
|
|
239
241
|
visitAs = (node) => this.visit(node);
|
|
240
242
|
transformAs = async () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wuchale/astro",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"description": "Wuchale i18n adapter for Astro files",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "tsc --watch",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@sveltejs/acorn-typescript": "^1.0.8",
|
|
53
53
|
"acorn": "^8.15.0",
|
|
54
54
|
"magic-string": "^0.30.21",
|
|
55
|
-
"wuchale": "^0.19.
|
|
55
|
+
"wuchale": "^0.19.4"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@types/estree-jsx": "^1.0.5",
|