test-entity-library-asm 1.2.0 → 1.2.1
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/dist/entities/Country.js
CHANGED
|
@@ -1,19 +1,4 @@
|
|
|
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
|
-
})();
|
|
17
2
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -27,10 +12,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
27
12
|
exports.Country = void 0;
|
|
28
13
|
var typeorm_1 = require("typeorm");
|
|
29
14
|
var Region_1 = require("./Region");
|
|
30
|
-
var Country = /** @class */ (function (
|
|
31
|
-
__extends(Country, _super);
|
|
15
|
+
var Country = /** @class */ (function () {
|
|
32
16
|
function Country() {
|
|
33
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
34
17
|
}
|
|
35
18
|
__decorate([
|
|
36
19
|
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
@@ -86,5 +69,5 @@ var Country = /** @class */ (function (_super) {
|
|
|
86
69
|
(0, typeorm_1.Entity)({ comment: 'Países donde está disponible la plataforma.' })
|
|
87
70
|
], Country);
|
|
88
71
|
return Country;
|
|
89
|
-
}(
|
|
72
|
+
}());
|
|
90
73
|
exports.Country = Country;
|
package/package.json
CHANGED
package/src/entities/Country.ts
CHANGED
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Entity,
|
|
3
|
-
Column,
|
|
4
|
-
PrimaryGeneratedColumn,
|
|
5
|
-
OneToMany,
|
|
6
|
-
BaseEntity,
|
|
7
|
-
} from 'typeorm'
|
|
1
|
+
import { Column, Entity, OneToMany, PrimaryGeneratedColumn } from 'typeorm'
|
|
8
2
|
import { Region } from './Region'
|
|
9
3
|
|
|
10
4
|
@Entity({ comment: 'Países donde está disponible la plataforma.' })
|
|
11
|
-
export class Country
|
|
5
|
+
export class Country {
|
|
12
6
|
@PrimaryGeneratedColumn({
|
|
13
7
|
comment: 'Número de identificación (ID) único de cada registro.',
|
|
14
8
|
})
|