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.140 to 3.1.142

2

dist/commons.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=module.js.map
//# sourceMappingURL=commons.js.map

@@ -12,2 +12,2 @@ "use strict";

exports.NotifyPropertyChange = NotifyPropertyChange;
//# sourceMappingURL=module.js.map
//# sourceMappingURL=NotifyPropertyChange.js.map

@@ -48,2 +48,2 @@ "use strict";

exports.PropertyGetSetDecoratorBase = PropertyGetSetDecoratorBase;
//# sourceMappingURL=module.js.map
//# sourceMappingURL=PropertyGetSetDecoratorBase.js.map
import { TValidateDef } from "../util/ObjectUtil";
export declare function PropertyValidate(def: TValidateDef<any>): (target: any, propertyName: string, inputDescriptor?: PropertyDescriptor) => void;
export declare function PropertyValidate(def: TValidateDef<any>, replacer?: (value: any) => any): (target: any, propertyName: string, inputDescriptor?: PropertyDescriptor) => void;

@@ -5,6 +5,7 @@ "use strict";

const ObjectUtil_1 = require("../util/ObjectUtil");
function PropertyValidate(def) {
function PropertyValidate(def, replacer) {
return PropertyGetSetDecoratorBase_1.PropertyGetSetDecoratorBase({
beforeSet: (target, propertyName, prevValue, nextValue) => {
const error = ObjectUtil_1.ObjectUtil.validate(nextValue, def);
const replacedNextValue = replacer ? replacer(nextValue) : nextValue;
const error = ObjectUtil_1.ObjectUtil.validate(replacedNextValue, def);
if (error) {

@@ -22,2 +23,2 @@ throw new Error(`입력값이 잘못되었습니다: ${JSON.stringify({

exports.PropertyValidate = PropertyValidate;
//# sourceMappingURL=module.js.map
//# sourceMappingURL=PropertyValidate.js.map

@@ -10,2 +10,2 @@ "use strict";

exports.ArgumentError = ArgumentError;
//# sourceMappingURL=module.js.map
//# sourceMappingURL=ArgumentError.js.map

@@ -30,2 +30,2 @@ "use strict";

exports.CustomError = CustomError;
//# sourceMappingURL=module.js.map
//# sourceMappingURL=CustomError.js.map

@@ -10,2 +10,2 @@ "use strict";

exports.NotImplementError = NotImplementError;
//# sourceMappingURL=module.js.map
//# sourceMappingURL=NotImplementError.js.map

@@ -10,2 +10,2 @@ "use strict";

exports.TimeoutError = TimeoutError;
//# sourceMappingURL=module.js.map
//# sourceMappingURL=TimeoutError.js.map

@@ -224,2 +224,2 @@ "use strict";

};
//# sourceMappingURL=module.js.map
//# sourceMappingURL=ArrayExtension.js.map
import "core-js";
import "./extension/ArrayExtension";
export * from "./commons";
export * from "./decorator/NotifyPropertyChange";

@@ -10,3 +10,4 @@ export * from "./decorator/PropertyGetSetDecoratorBase";

export * from "./error/TimeoutError";
export * from "./commons";
import "./extension/ArrayExtension";
export * from "./index";
export * from "./type/DateOnly";

@@ -16,2 +17,3 @@ export * from "./type/DateTime";

export * from "./type/Uuid";
export * from "./util/DateTimeFormatUtil";
export * from "./util/FunctionUtil";

@@ -18,0 +20,0 @@ export * from "./util/JsonConvert";

@@ -5,3 +5,3 @@ "use strict";

require("core-js");
require("./extension/ArrayExtension");
tslib_1.__exportStar(require("./commons"), exports);
tslib_1.__exportStar(require("./decorator/NotifyPropertyChange"), exports);

@@ -14,3 +14,4 @@ tslib_1.__exportStar(require("./decorator/PropertyGetSetDecoratorBase"), exports);

tslib_1.__exportStar(require("./error/TimeoutError"), exports);
tslib_1.__exportStar(require("./commons"), exports);
require("./extension/ArrayExtension");
tslib_1.__exportStar(require("./index"), exports);
tslib_1.__exportStar(require("./type/DateOnly"), exports);

@@ -20,2 +21,3 @@ tslib_1.__exportStar(require("./type/DateTime"), exports);

tslib_1.__exportStar(require("./type/Uuid"), exports);
tslib_1.__exportStar(require("./util/DateTimeFormatUtil"), exports);
tslib_1.__exportStar(require("./util/FunctionUtil"), exports);

@@ -26,2 +28,2 @@ tslib_1.__exportStar(require("./util/JsonConvert"), exports);

tslib_1.__exportStar(require("./util/Wait"), exports);
//# sourceMappingURL=module.js.map
//# sourceMappingURL=index.js.map

@@ -86,2 +86,2 @@ "use strict";

exports.DateOnly = DateOnly;
//# sourceMappingURL=module.js.map
//# sourceMappingURL=DateOnly.js.map

@@ -149,2 +149,2 @@ "use strict";

exports.DateTime = DateTime;
//# sourceMappingURL=module.js.map
//# sourceMappingURL=DateTime.js.map

@@ -102,2 +102,2 @@ "use strict";

exports.Time = Time;
//# sourceMappingURL=module.js.map
//# sourceMappingURL=Time.js.map

@@ -32,2 +32,2 @@ "use strict";

Uuid._prevUuids = [];
//# sourceMappingURL=module.js.map
//# sourceMappingURL=Uuid.js.map

@@ -68,2 +68,2 @@ "use strict";

exports.DateTimeFormatUtil = DateTimeFormatUtil;
//# sourceMappingURL=module.js.map
//# sourceMappingURL=DateTimeFormatUtil.js.map

@@ -36,2 +36,2 @@ "use strict";

exports.FunctionUtil = FunctionUtil;
//# sourceMappingURL=module.js.map
//# sourceMappingURL=FunctionUtil.js.map

@@ -83,2 +83,2 @@ "use strict";

exports.JsonConvert = JsonConvert;
//# sourceMappingURL=module.js.map
//# sourceMappingURL=JsonConvert.js.map

@@ -9,2 +9,2 @@ "use strict";

exports.MathUtil = MathUtil;
//# sourceMappingURL=module.js.map
//# sourceMappingURL=MathUtil.js.map

@@ -247,2 +247,2 @@ "use strict";

exports.ObjectUtil = ObjectUtil;
//# sourceMappingURL=module.js.map
//# sourceMappingURL=ObjectUtil.js.map

@@ -29,2 +29,2 @@ "use strict";

exports.Wait = Wait;
//# sourceMappingURL=module.js.map
//# sourceMappingURL=Wait.js.map
{
"name": "@simplysm/sd-core-common",
"version": "3.1.140",
"version": "3.1.142",
"description": "심플리즘 패키지 - 코어 모듈 (browser/node)",

@@ -16,4 +16,4 @@ "author": "김석래",

"devDependencies": {
"@types/core-js": "^2.5.2",
"@types/node": "^13.1.8",
"@types/core-js": "^2.5.2",
"tslint": "^5.20.1",

@@ -23,2 +23,2 @@ "typescript": "^3.7.4",

}
}
}

@@ -1,2 +0,1 @@

const symbol = `sd-type-validate`;

@@ -3,0 +2,0 @@

import {PropertyGetSetDecoratorBase} from "./PropertyGetSetDecoratorBase";
import {ObjectUtil, TValidateDef} from "../util/ObjectUtil";
export function PropertyValidate(def: TValidateDef<any>): (target: any, propertyName: string, inputDescriptor?: PropertyDescriptor) => void {
export function PropertyValidate(def: TValidateDef<any>, replacer?: (value: any) => any): (target: any, propertyName: string, inputDescriptor?: PropertyDescriptor) => void {
return PropertyGetSetDecoratorBase({
beforeSet: (target, propertyName, prevValue, nextValue) => {
const error = ObjectUtil.validate(nextValue, def);
const replacedNextValue = replacer ? replacer(nextValue) : nextValue;
const error = ObjectUtil.validate(replacedNextValue, def);
if (error) {

@@ -9,0 +10,0 @@ throw new Error(`입력값이 잘못되었습니다: ${JSON.stringify({

@@ -19,9 +19,6 @@ import {Type, TypeWrap} from "../commons";

//TODO: UnitTest
mapAsync<R>(selector: (item: T, index: number) => Promise<R>): Promise<R[]>;
//TODO: UnitTest
mapManyAsync<R>(selector: (item: T, index: number) => Promise<R[]>): Promise<R[]>;
//TODO: UnitTest
parallelAsync(fn: (item: T, index: number) => Promise<void>): Promise<void>;

@@ -37,6 +34,4 @@

// TODO: UnitTest
toObject(keySelector: (item: T, index: number) => string): { [key: string]: T };
// TODO: UnitTest
toObject<V>(keySelector: (item: T, index: number) => string, valueSelector: (item: T, index: number) => V): { [key: string]: V };

@@ -43,0 +38,0 @@

import "core-js";
import "./extension/ArrayExtension";
export * from "./commons";
export * from "./decorator/NotifyPropertyChange";
export * from "./decorator/PropertyGetSetDecoratorBase";
export * from "./decorator/PropertyValidate";
export * from "./error/ArgumentError";

@@ -12,5 +10,4 @@ export * from "./error/CustomError";

export * from "./error/TimeoutError";
export * from "./commons";
import "./extension/ArrayExtension";
export * from "./index";
export * from "./type/DateOnly";

@@ -20,3 +17,3 @@ export * from "./type/DateTime";

export * from "./type/Uuid";
export * from "./util/DateTimeFormatUtil";
export * from "./util/FunctionUtil";

@@ -26,3 +23,2 @@ export * from "./util/JsonConvert";

export * from "./util/ObjectUtil";
export * from "./util/Wait";
export * from "./util/Wait";

@@ -14,2 +14,2 @@ {

"compileOnSave": false
}
}

@@ -15,2 +15,2 @@ {

"compileOnSave": false
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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