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, }; };