@vesk/vesk-cli 0.2.85 → 0.2.86

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.
Files changed (2) hide show
  1. package/dist/cli.js +2 -1
  2. package/package.json +5 -5
package/dist/cli.js CHANGED
@@ -50707,7 +50707,8 @@ function generateApiFunction(apiNode, _apiDir, outDir, options) {
50707
50707
  } catch {
50708
50708
  }
50709
50709
  }
50710
- const urlParts = apiNode.fullPath.split("/").filter(Boolean);
50710
+ const routeParts = apiNode.fullPath.split("/").filter(Boolean);
50711
+ const urlParts = routeParts[0] === "api" ? routeParts.slice(1) : routeParts;
50711
50712
  const extracts = [];
50712
50713
  let partIdx = 0;
50713
50714
  for (let i = 0; i < urlParts.length; i++) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vesk/vesk-cli",
3
- "version": "0.2.85",
3
+ "version": "0.2.86",
4
4
  "type": "module",
5
5
  "description": "Vesk — compiler-first framework for the post-VDOM web. vesk dev, vesk build.",
6
6
  "bin": {
@@ -8,10 +8,10 @@
8
8
  },
9
9
  "main": "./dist/cli.js",
10
10
  "dependencies": {
11
- "@vesk/adapter": "^0.2.85",
12
- "@vesk/compiler": "^0.2.85",
13
- "@vesk/plugin-tailwind": "^0.2.85",
14
- "@vesk/runtime": "^0.2.85",
11
+ "@vesk/adapter": "^0.2.86",
12
+ "@vesk/compiler": "^0.2.86",
13
+ "@vesk/plugin-tailwind": "^0.2.86",
14
+ "@vesk/runtime": "^0.2.86",
15
15
  "esrap": "^2.3.0",
16
16
  "typescript": "^5.8.0",
17
17
  "ws": "^8.18.0",