@simplysm/sd-core-common
Advanced tools
Comparing version 3.1.135 to 3.1.136
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var PropertyGetSetDecoratorBase_1 = require("./PropertyGetSetDecoratorBase"); | ||
var ObjectUtil_1 = require("../util/ObjectUtil"); | ||
const PropertyGetSetDecoratorBase_1 = require("./PropertyGetSetDecoratorBase"); | ||
const ObjectUtil_1 = require("../util/ObjectUtil"); | ||
function PropertyValidate(def) { | ||
return PropertyGetSetDecoratorBase_1.PropertyGetSetDecoratorBase({ | ||
beforeSet: function (target, propertyName) { | ||
var error = ObjectUtil_1.ObjectUtil.validate(target[propertyName], def); | ||
beforeSet: (target, propertyName) => { | ||
const error = ObjectUtil_1.ObjectUtil.validate(target[propertyName], def); | ||
if (error) { | ||
throw new Error("\uC785\uB825\uAC12\uC774 \uC798\uBABB\uB418\uC5C8\uC2B5\uB2C8\uB2E4: " + JSON.stringify({ | ||
throw new Error(`입력값이 잘못되었습니다: ${JSON.stringify({ | ||
component: target.constructor.name, | ||
propertyName: propertyName, | ||
propertyName, | ||
value: error.value, | ||
errorKeys: Object.keys(error.invalidateDef) | ||
})); | ||
})}`); | ||
} | ||
@@ -17,0 +17,0 @@ } |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
const tslib_1 = require("tslib"); | ||
require("core-js"); | ||
@@ -5,0 +5,0 @@ require("./extension/ArrayExtension"); |
{ | ||
"name": "@simplysm/sd-core-common", | ||
"version": "3.1.135", | ||
"version": "3.1.136", | ||
"description": "심플리즘 패키지 - 코어 모듈 (browser/node)", | ||
@@ -5,0 +5,0 @@ "author": "김석래", |
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
171706
88
3099