pasika 0.5.7 → 0.5.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.
@@ -123,8 +123,9 @@ function findSimpleRoot(component, _text, _filename) {
123
123
  ts.forEachChild(node, visit);
124
124
  };
125
125
  visit(body);
126
- if (returns.length !== 1) return void 0;
127
- const expression = returns[0]?.expression;
126
+ const rendered = returns.filter((statement) => statement.expression?.kind !== ts.SyntaxKind.NullKeyword);
127
+ if (rendered.length !== 1) return void 0;
128
+ const expression = rendered[0]?.expression;
128
129
  return expression && ts.isExpression(expression) ? rootFromExpression(expression) : void 0;
129
130
  }
130
131
  function getTestId(root) {
@@ -1861,16 +1862,25 @@ var namedExportsRule = {
1861
1862
  // eslint/rules/data-testid-case.ts
1862
1863
  import path15 from "path";
1863
1864
  var NEXT_ROUTING_FILES2 = /* @__PURE__ */ new Set([
1864
- "page",
1865
+ "default",
1866
+ "error",
1867
+ "global-error",
1868
+ "instrumentation",
1865
1869
  "layout",
1866
1870
  "loading",
1867
- "error",
1871
+ "middleware",
1868
1872
  "not-found",
1873
+ "page",
1869
1874
  "route",
1870
1875
  "template",
1871
- "default",
1872
- "middleware",
1873
- "instrumentation"
1876
+ // File conventions Next.js requires to keep their exact names in src/app/
1877
+ "apple-icon",
1878
+ "icon",
1879
+ "manifest",
1880
+ "opengraph-image",
1881
+ "robots",
1882
+ "sitemap",
1883
+ "twitter-image"
1874
1884
  ]);
1875
1885
  var isPascalCase5 = (value) => /^[A-Z][A-Za-z0-9]*$/.test(value);
1876
1886
  var isKebabCase3 = (value) => /^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/.test(value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pasika",
3
- "version": "0.5.7",
3
+ "version": "0.5.8",
4
4
  "description": "Reusable agent setup package",
5
5
  "repository": {
6
6
  "type": "git",