rads-db 3.2.40 → 3.2.41
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/integrations/node.cjs +1 -1
- package/integrations/node.mjs +1 -1
- package/package.json +1 -1
package/integrations/node.cjs
CHANGED
|
@@ -178,7 +178,7 @@ function getEntityTypesStrFromSchema(schema) {
|
|
|
178
178
|
if (f.isArray) fieldTypeStr = `${fieldTypeStr}[]`;
|
|
179
179
|
const fieldStr = ` ${f.name}${f.isRequired ? "" : "?"}: ${fieldTypeStr}`;
|
|
180
180
|
const commentStr2 = f.comment ? ` /** ${f.comment} */` : "";
|
|
181
|
-
return [
|
|
181
|
+
return [commentStr2, fieldStr].filter(x => x).join("\n");
|
|
182
182
|
}).filter(x => x).join("\n");
|
|
183
183
|
const commentStr = type.comment ? `/** ${type.comment} */
|
|
184
184
|
` : "";
|
package/integrations/node.mjs
CHANGED
|
@@ -190,7 +190,7 @@ export function getEntityTypesStrFromSchema(schema) {
|
|
|
190
190
|
if (f.isArray) fieldTypeStr = `${fieldTypeStr}[]`;
|
|
191
191
|
const fieldStr = ` ${f.name}${f.isRequired ? "" : "?"}: ${fieldTypeStr}`;
|
|
192
192
|
const commentStr2 = f.comment ? ` /** ${f.comment} */` : "";
|
|
193
|
-
return [
|
|
193
|
+
return [commentStr2, fieldStr].filter((x) => x).join("\n");
|
|
194
194
|
}).filter((x) => x).join("\n");
|
|
195
195
|
const commentStr = type.comment ? `/** ${type.comment} */
|
|
196
196
|
` : "";
|