@wuchale/astro 0.2.1 → 0.2.2

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.
@@ -205,7 +205,7 @@ export class AstroTransformer extends Transformer {
205
205
  this.frontMatterStart = this.content.indexOf('---', start) + 3;
206
206
  return this._parseAndVisitExpr(node.value, this.frontMatterStart, true);
207
207
  };
208
- visitroot = (node) => this._visitChildren(node.children);
208
+ visitroot = (node) => this._visitChildren(node.children ?? []); // can be undefined!
209
209
  visitAs = (node) => this.visit(node);
210
210
  transformAs = async () => {
211
211
  const { ast } = await parse(this.content);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wuchale/astro",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Wuchale i18n adapter for Astro files",
5
5
  "scripts": {
6
6
  "dev": "tsc --watch",