test-entity-library-asm 1.2.1 → 1.2.2

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,6 @@
1
+ import { BaseEntity } from 'typeorm';
1
2
  import { Region } from './Region';
2
- export declare class Country {
3
+ export declare class Country extends BaseEntity {
3
4
  id: number;
4
5
  code: string;
5
6
  name: string;
@@ -1,4 +1,19 @@
1
1
  "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
2
17
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
18
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
19
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -12,8 +27,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
27
  exports.Country = void 0;
13
28
  var typeorm_1 = require("typeorm");
14
29
  var Region_1 = require("./Region");
15
- var Country = /** @class */ (function () {
30
+ var Country = /** @class */ (function (_super) {
31
+ __extends(Country, _super);
16
32
  function Country() {
33
+ return _super !== null && _super.apply(this, arguments) || this;
17
34
  }
18
35
  __decorate([
19
36
  (0, typeorm_1.PrimaryGeneratedColumn)({
@@ -69,5 +86,5 @@ var Country = /** @class */ (function () {
69
86
  (0, typeorm_1.Entity)({ comment: 'Países donde está disponible la plataforma.' })
70
87
  ], Country);
71
88
  return Country;
72
- }());
89
+ }(typeorm_1.BaseEntity));
73
90
  exports.Country = Country;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "test-entity-library-asm",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Entidades de ejemplo para una base de datos",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,8 +1,14 @@
1
- import { Column, Entity, OneToMany, PrimaryGeneratedColumn } from 'typeorm'
1
+ import {
2
+ Entity,
3
+ Column,
4
+ PrimaryGeneratedColumn,
5
+ OneToMany,
6
+ BaseEntity,
7
+ } from 'typeorm'
2
8
  import { Region } from './Region'
3
9
 
4
10
  @Entity({ comment: 'Países donde está disponible la plataforma.' })
5
- export class Country {
11
+ export class Country extends BaseEntity {
6
12
  @PrimaryGeneratedColumn({
7
13
  comment: 'Número de identificación (ID) único de cada registro.',
8
14
  })