zitejs 0.9.11 → 0.9.12
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/dist/cjs/sync/lib.js +2 -1
- package/dist/esm/sync/lib.js +2 -1
- package/package.json +1 -1
package/dist/cjs/sync/lib.js
CHANGED
|
@@ -177,7 +177,8 @@ function generateUserTs(usersTableFields) {
|
|
|
177
177
|
lines.push(' id: string;');
|
|
178
178
|
lines.push(' email: string;');
|
|
179
179
|
for (const field of usersTableFields) {
|
|
180
|
-
|
|
180
|
+
const lowerName = field.name.toLowerCase();
|
|
181
|
+
if (lowerName === 'id' || lowerName === 'email')
|
|
181
182
|
continue;
|
|
182
183
|
const fieldName = toCamelCase(field.name);
|
|
183
184
|
const tsType = tsTypeForField(field);
|
package/dist/esm/sync/lib.js
CHANGED
|
@@ -166,7 +166,8 @@ export function generateUserTs(usersTableFields) {
|
|
|
166
166
|
lines.push(' id: string;');
|
|
167
167
|
lines.push(' email: string;');
|
|
168
168
|
for (const field of usersTableFields) {
|
|
169
|
-
|
|
169
|
+
const lowerName = field.name.toLowerCase();
|
|
170
|
+
if (lowerName === 'id' || lowerName === 'email')
|
|
170
171
|
continue;
|
|
171
172
|
const fieldName = toCamelCase(field.name);
|
|
172
173
|
const tsType = tsTypeForField(field);
|