@simplysm/sd-orm-common
Advanced tools
Comparing version 3.1.133 to 3.1.134
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const DbDefinitionUtil_1 = require("./util/DbDefinitionUtil"); | ||
var tslib_1 = require("tslib"); | ||
var DbDefinitionUtil_1 = require("./util/DbDefinitionUtil"); | ||
function Table(def) { | ||
return (classType) => { | ||
DbDefinitionUtil_1.DbDefinitionUtil.mergeTableDef(classType, { | ||
name: classType.name, | ||
...def | ||
}); | ||
return function (classType) { | ||
DbDefinitionUtil_1.DbDefinitionUtil.mergeTableDef(classType, tslib_1.__assign({ name: classType.name }, def)); | ||
}; | ||
@@ -14,7 +12,7 @@ } | ||
function Column(columnDef) { | ||
return (object, propertyKey) => { | ||
return function (object, propertyKey) { | ||
var _a; | ||
const classType = object.constructor; | ||
var classType = object.constructor; | ||
DbDefinitionUtil_1.DbDefinitionUtil.addColumnDef(classType, { | ||
propertyKey, | ||
propertyKey: propertyKey, | ||
name: (_a = columnDef.name, (_a !== null && _a !== void 0 ? _a : propertyKey)), | ||
@@ -26,3 +24,3 @@ dataType: columnDef.dataType, | ||
description: columnDef.description, | ||
typeFwd: () => Reflect.getMetadata("design:type", object, propertyKey) | ||
typeFwd: function () { return Reflect.getMetadata("design:type", object, propertyKey); } | ||
}); | ||
@@ -33,10 +31,10 @@ }; | ||
function ForeignKey(columnNames, targetTypeFwd, description) { | ||
return (object, propertyKey) => { | ||
const classType = object.constructor; | ||
return function (object, propertyKey) { | ||
var classType = object.constructor; | ||
DbDefinitionUtil_1.DbDefinitionUtil.addForeignKeyDef(classType, { | ||
propertyKey, | ||
propertyKey: propertyKey, | ||
name: propertyKey, | ||
columnPropertyKeys: columnNames, | ||
description, | ||
targetTypeFwd | ||
description: description, | ||
targetTypeFwd: targetTypeFwd | ||
}); | ||
@@ -47,9 +45,9 @@ }; | ||
function ForeignKeyTarget(sourceTypeFwd, foreignKeyPropertyKey, description) { | ||
return (object, propertyKey) => { | ||
const classType = object.constructor; | ||
return function (object, propertyKey) { | ||
var classType = object.constructor; | ||
DbDefinitionUtil_1.DbDefinitionUtil.addForeignKeyTargetDef(classType, { | ||
propertyKey, | ||
propertyKey: propertyKey, | ||
name: propertyKey, | ||
sourceTypeFwd, | ||
description, | ||
sourceTypeFwd: sourceTypeFwd, | ||
description: description, | ||
foreignKeyPropertyKey: foreignKeyPropertyKey | ||
@@ -61,5 +59,5 @@ }); | ||
function Index(def) { | ||
return (object, propertyKey) => { | ||
return function (object, propertyKey) { | ||
var _a, _b, _c; | ||
const classType = object.constructor; | ||
var classType = object.constructor; | ||
DbDefinitionUtil_1.DbDefinitionUtil.addIndexDef(classType, { | ||
@@ -66,0 +64,0 @@ name: (_a = def.name, (_a !== null && _a !== void 0 ? _a : propertyKey)), |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
var tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./query/DbContext"), exports); | ||
@@ -5,0 +5,0 @@ tslib_1.__exportStar(require("./query/IDbContextExecutor"), exports); |
{ | ||
"name": "@simplysm/sd-orm-common", | ||
"version": "3.1.133", | ||
"version": "3.1.134", | ||
"description": "심플리즘 패키지 - ORM 모듈 (browser/node)", | ||
@@ -13,3 +13,3 @@ "author": "김석래", | ||
"dependencies": { | ||
"@simplysm/sd-core-common": "3.1.133" | ||
"@simplysm/sd-core-common": "3.1.134" | ||
}, | ||
@@ -16,0 +16,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
326141
0
5518
+ Added@simplysm/sd-core-common@3.1.134(transitive)
- Removed@simplysm/sd-core-common@3.1.133(transitive)