From 33a89d9da4c5fcf976c9f87a1875eabad90d0146 Mon Sep 17 00:00:00 2001 From: kric_jspark Date: Wed, 9 Sep 2026 11:38:47 +0900 Subject: [PATCH] =?UTF-8?q?260909=5F01=5FENH:=20patchForm=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/http/http-client.ts | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 65dabdf..5cbd087 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kri/common", - "version": "0.18.3", + "version": "0.18.4", "description": "KRI 프런트엔드 공통 유틸리티", "type": "module", "main": "./dist/index.js", diff --git a/src/http/http-client.ts b/src/http/http-client.ts index 6f3dbf9..0a541cc 100644 --- a/src/http/http-client.ts +++ b/src/http/http-client.ts @@ -751,6 +751,18 @@ export const createHttpClient = ( }); }; + const patchForm = ( + path: string, + form: FormData, + requestOptions?: RequestOptionsWithoutBody, + ): Promise => { + return request(path, { + ...(requestOptions ?? {}), + method: "PATCH", + form, + }); + }; + return { request, get, @@ -760,6 +772,7 @@ export const createHttpClient = ( del, postForm, putForm, + patchForm, }; };