@wix/ditto-codegen-public 1.0.200 → 1.0.201

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/out.js +7 -13
  2. package/package.json +2 -2
package/dist/out.js CHANGED
@@ -97465,20 +97465,14 @@ var require_sdkEnricher = __commonJS({
97465
97465
  console.warn(`No docsUrl for API ${api.api}, skipping documentation fetch`);
97466
97466
  return api;
97467
97467
  }
97468
- try {
97469
- const [docsResponse, schemaResponse] = await Promise.all([
97470
- mcpClient.readDocsArticle(api.docsUrl),
97471
- mcpClient.readMethodSchema(api.docsUrl)
97472
- ]);
97473
- return {
97474
- ...api,
97475
- documentation: docsResponse.content,
97476
- methodSchema: schemaResponse.schema
97477
- };
97478
- } catch (error) {
97479
- console.error(`Failed to fetch documentation for ${api.api}:`, error);
97480
- return api;
97468
+ const [documentation, methodSchema] = await Promise.all([
97469
+ mcpClient.readDocsArticle(api.docsUrl).then((r) => r.content).catch(() => void 0),
97470
+ mcpClient.readMethodSchema(api.docsUrl).then((r) => r.schema).catch(() => void 0)
97471
+ ]);
97472
+ if (!documentation && !methodSchema) {
97473
+ throw new Error(`Failed to fetch documentation for API: ${api.api}`);
97481
97474
  }
97475
+ return { ...api, documentation, methodSchema };
97482
97476
  }
97483
97477
  }
97484
97478
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.200",
3
+ "version": "1.0.201",
4
4
  "description": "AI-powered Wix CLI app generator - standalone executable",
5
5
  "scripts": {
6
6
  "build": "node build.mjs",
@@ -24,5 +24,5 @@
24
24
  "@wix/ditto-codegen": "1.0.0",
25
25
  "esbuild": "^0.27.2"
26
26
  },
27
- "falconPackageHash": "a18d6c271285cbe3546b0abdc363aa6adcc4542d009571186801a9b3"
27
+ "falconPackageHash": "8d034896942f8536f96c25ce069474b54ab4745cb22b248a130a2be7"
28
28
  }