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.
@@ -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
- if (field.name.toLowerCase() === 'id')
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);
@@ -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
- if (field.name.toLowerCase() === 'id')
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zitejs",
3
- "version": "0.9.11",
3
+ "version": "0.9.12",
4
4
  "description": "The Zite framework — build apps on Zite Database",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/runtime/index.js",