Socket
Socket
Sign inDemoInstall

@simplysm/sd-orm-common

Package Overview
Dependencies
Maintainers
1
Versions
584
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@simplysm/sd-orm-common - npm Package Compare versions

Comparing version 3.1.133 to 3.1.134

42

dist/decorator.js
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc