test-entity-library-asm 2.4.9 → 2.5.0

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.
@@ -14,7 +14,7 @@ export declare class Master {
14
14
  city: City;
15
15
  address: string;
16
16
  password: string;
17
- profile: string;
17
+ profile: any;
18
18
  created: Date;
19
19
  updated: Date;
20
20
  status: number;
@@ -90,7 +90,7 @@ var Master = /** @class */ (function () {
90
90
  transformer: jsonTransformer_1.jsonTransformer,
91
91
  comment: 'Campo de tipo JSON donde se guarda información necesaria para el registro.',
92
92
  }),
93
- __metadata("design:type", String)
93
+ __metadata("design:type", Object)
94
94
  ], Master.prototype, "profile", void 0);
95
95
  __decorate([
96
96
  (0, typeorm_1.Column)({
@@ -11,7 +11,6 @@ exports.jsonTransformer = {
11
11
  return JSON.parse(value);
12
12
  }
13
13
  catch (error) {
14
- console.error('Error parsing JSON:', error);
15
14
  return null;
16
15
  }
17
16
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "test-entity-library-asm",
3
- "version": "2.4.9",
3
+ "version": "2.5.0",
4
4
  "description": "Entidades de ejemplo para una base de datos",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -80,7 +80,7 @@ export class Master {
80
80
  comment:
81
81
  'Campo de tipo JSON donde se guarda información necesaria para el registro.',
82
82
  })
83
- profile: string
83
+ profile: any
84
84
 
85
85
  @Column({
86
86
  type: 'datetime',
@@ -7,7 +7,6 @@ export const jsonTransformer = {
7
7
  try {
8
8
  return JSON.parse(value)
9
9
  } catch (error) {
10
- console.error('Error parsing JSON:', error)
11
10
  return null
12
11
  }
13
12
  },