test-entity-library-asm 2.4.3 → 2.4.4

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.
@@ -1,5 +1,5 @@
1
1
  import { ValueTransformer } from 'typeorm';
2
2
  export declare class DateTransformer implements ValueTransformer {
3
- to(value: Date | string): string;
3
+ to(value: any): string;
4
4
  from(value: string): string;
5
5
  }
@@ -7,7 +7,7 @@ var DateTransformer = /** @class */ (function () {
7
7
  function DateTransformer() {
8
8
  }
9
9
  DateTransformer.prototype.to = function (value) {
10
- return moment.utc(value).format('YYYY-MM-DD HH:mm:ss');
10
+ return value;
11
11
  };
12
12
  DateTransformer.prototype.from = function (value) {
13
13
  return moment.utc(value).tz((0, __1.getTimeZone)()).format('YYYY-MM-DD HH:mm:ss');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "test-entity-library-asm",
3
- "version": "2.4.3",
3
+ "version": "2.4.4",
4
4
  "description": "Entidades de ejemplo para una base de datos",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -3,8 +3,8 @@ import * as moment from 'moment-timezone'
3
3
  import { getTimeZone } from '..'
4
4
 
5
5
  export class DateTransformer implements ValueTransformer {
6
- to(value: Date | string): string {
7
- return moment.utc(value).format('YYYY-MM-DD HH:mm:ss')
6
+ to(value: any): string {
7
+ return value
8
8
  }
9
9
 
10
10
  from(value: string): string {