Socket
Socket
Sign inDemoInstall

@simplysm/sd-core-common

Package Overview
Dependencies
Maintainers
1
Versions
605
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 3.1.135 to 3.1.136

dist/index.browser.js

14

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

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