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.
@@ -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 [fieldStr, commentStr2].filter(x => x).join("\n");
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
  ` : "";
@@ -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 [fieldStr, commentStr2].filter((x) => x).join("\n");
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
  ` : "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rads-db",
3
- "version": "3.2.40",
3
+ "version": "3.2.41",
4
4
  "description": "Say goodbye to boilerplate code and hello to efficient and elegant syntax.",
5
5
  "author": "",
6
6
  "license": "ISC",