@carbonorm/carbonnode 1.2.8 → 1.2.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": "@carbonorm/carbonnode",
3
- "version": "1.2.8",
3
+ "version": "1.2.9",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "browser": "dist/index.umd.js",
@@ -107,6 +107,7 @@ function capitalizeFirstLetter(string) {
107
107
  return string.charAt(0).toUpperCase() + string.slice(1);
108
108
  }
109
109
  function determineTypeScriptType(mysqlType) {
110
+ console.log(mysqlType);
110
111
  switch (mysqlType.toLowerCase()) {
111
112
  case 'varchar':
112
113
  case 'text':
@@ -121,9 +122,9 @@ function determineTypeScriptType(mysqlType) {
121
122
  case 'decimal':
122
123
  case 'float':
123
124
  case 'double':
125
+ case 'tinyint':
124
126
  return 'number';
125
127
  case 'boolean':
126
- case 'tinyint(1)':
127
128
  return 'boolean';
128
129
  case 'json':
129
130
  return 'any'; // or 'object' based on usage
@@ -151,6 +151,9 @@ function capitalizeFirstLetter(string) {
151
151
  }
152
152
 
153
153
  function determineTypeScriptType(mysqlType) {
154
+
155
+ console.log(mysqlType)
156
+
154
157
  switch (mysqlType.toLowerCase()) {
155
158
  case 'varchar':
156
159
  case 'text':
@@ -165,9 +168,9 @@ function determineTypeScriptType(mysqlType) {
165
168
  case 'decimal':
166
169
  case 'float':
167
170
  case 'double':
171
+ case 'tinyint':
168
172
  return 'number';
169
173
  case 'boolean':
170
- case 'tinyint(1)':
171
174
  return 'boolean';
172
175
  case 'json':
173
176
  return 'any'; // or 'object' based on usage