From f57f42baff3510c207580663539d44d61d1ab560 Mon Sep 17 00:00:00 2001 From: kric_jspark Date: Wed, 1 Jul 2026 09:29:47 +0900 Subject: [PATCH] =?UTF-8?q?260701=5F02=5FENH:=20=EC=84=B8=ED=8C=85=20?= =?UTF-8?q?=EC=A4=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 4 ++-- package.json | 11 ++--------- src/index.ts | 9 +++++++++ 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index 51e501c..d1fd90f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@kri/common", - "version": "0.1.0", + "version": "0.1.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@kri/common", - "version": "0.1.0", + "version": "0.1.1", "license": "UNLICENSED", "devDependencies": { "typescript": "^6.0.3" diff --git a/package.json b/package.json index 5eddf62..fd6423c 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,10 @@ { "name": "@kri/common", - "version": "0.1.0", + "version": "0.1.1", "description": "KRI 프런트엔드 공통 유틸리티", "type": "module", "main": "./dist/index.js", "types": "./dist/index.d.ts", - "exports": { ".": { "types": "./dist/index.d.ts", @@ -13,32 +12,26 @@ "default": "./dist/index.js" } }, - "files": [ "dist" ], - "scripts": { "build": "tsc", "typecheck": "tsc --noEmit", "prepack": "npm run build" }, - "keywords": [ "kri", "common", "typescript" ], - "author": "KRI", "license": "UNLICENSED", "private": false, - "publishConfig": { "registry": "https://gitea.kric.com/api/packages/KRi/npm/" }, - "devDependencies": { "typescript": "^6.0.3" } -} \ No newline at end of file +} diff --git a/src/index.ts b/src/index.ts index 8b5ffd7..f54bb1c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,4 +7,13 @@ export function isBlank( return value === null || value === undefined || value.trim().length === 0; +} + +/** + * 문자열에 공백이 아닌 문자가 있는지 확인한다. + */ +export function isNotBlank( + value: string | null | undefined, +): boolean { + return !isBlank(value); } \ No newline at end of file