@stackql/provider-utils 0.4.8 → 0.4.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackql/provider-utils",
3
- "version": "0.4.8",
3
+ "version": "0.4.9",
4
4
  "description": "Utilities for building StackQL providers from OpenAPI specifications.",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -161,9 +161,17 @@ export function createInsertExamples(providerName, serviceName, resourceName, re
161
161
  content += ' value: ' + type + '\n';
162
162
 
163
163
  if (description) {
164
- // Format multi-line descriptions
165
- const wrappedDesc = description.replace(/(.{1,80})(\\s+|$)/g, '$1\n ');
166
- content += ' description: >\n ' + wrappedDesc + '\n';
164
+ content += ' description: |\n';
165
+
166
+ // Split by lines and remove empty lines
167
+ const lines = description
168
+ .split(/\n/)
169
+ .filter(line => line.trim() !== ''); // Remove completely empty lines
170
+
171
+ // Process each line with proper indentation
172
+ lines.forEach(line => {
173
+ content += ' ' + line.trim() + '\n'; // trim each line to remove extra spaces
174
+ });
167
175
  }
168
176
 
169
177
  // Add enum values if available