@rvoh/psychic 0.38.1 → 0.38.3

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.
@@ -43,16 +43,12 @@ function generateResourceControllerSpecContent({ fullyQualifiedControllerName, r
43
43
  let datetimeAttributeIncluded = false;
44
44
  for (const attribute of columnsWithTypes) {
45
45
  const [rawAttributeName, attributeType, , enumValues] = attribute.split(':');
46
- if (rawAttributeName === 'type')
47
- continue;
48
46
  if (/(_type|_id)$/.test(rawAttributeName ?? ''))
49
47
  continue;
50
48
  const attributeName = (0, dream_1.camelize)(rawAttributeName ?? '');
51
49
  const dotNotationVariable = `${modelVariableName}.${attributeName}`;
52
50
  switch (attributeType) {
53
51
  case 'enum': {
54
- if (attribute === 'type')
55
- continue;
56
52
  const originalEnumValue = (enumValues ?? '').split(',').at(0);
57
53
  const updatedEnumValue = (enumValues ?? '').split(',').at(-1);
58
54
  attributeCreationKeyValues.push(`${attributeName}: '${originalEnumValue}',`);
@@ -37,16 +37,12 @@ export default function generateResourceControllerSpecContent({ fullyQualifiedCo
37
37
  let datetimeAttributeIncluded = false;
38
38
  for (const attribute of columnsWithTypes) {
39
39
  const [rawAttributeName, attributeType, , enumValues] = attribute.split(':');
40
- if (rawAttributeName === 'type')
41
- continue;
42
40
  if (/(_type|_id)$/.test(rawAttributeName ?? ''))
43
41
  continue;
44
42
  const attributeName = camelize(rawAttributeName ?? '');
45
43
  const dotNotationVariable = `${modelVariableName}.${attributeName}`;
46
44
  switch (attributeType) {
47
45
  case 'enum': {
48
- if (attribute === 'type')
49
- continue;
50
46
  const originalEnumValue = (enumValues ?? '').split(',').at(0);
51
47
  const updatedEnumValue = (enumValues ?? '').split(',').at(-1);
52
48
  attributeCreationKeyValues.push(`${attributeName}: '${originalEnumValue}',`);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "type": "module",
3
3
  "name": "@rvoh/psychic",
4
4
  "description": "Typescript web framework",
5
- "version": "0.38.1",
5
+ "version": "0.38.3",
6
6
  "author": "RVOHealth",
7
7
  "repository": {
8
8
  "type": "git",