diff --git a/package-lock.json b/package-lock.json index 16b3654..f113679 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "lhisp-oauth-client", - "version": "1.0.15", + "version": "1.0.16", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "lhisp-oauth-client", - "version": "1.0.15", + "version": "1.0.16", "license": "MIT", "dependencies": { "axios": "^1.4.0", diff --git a/package.json b/package.json index 5058bd5..0fcac67 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lhisp-oauth-client", - "version": "1.0.15", + "version": "1.0.16", "main": "src/index", "types": "src/index.d.ts", "repository": "git@bitbucket.org:leandro_costa/lhisp-oauth-client.git", diff --git a/src/lhisp-oauth-client.ts b/src/lhisp-oauth-client.ts index 8c63e33..a8920e1 100644 --- a/src/lhisp-oauth-client.ts +++ b/src/lhisp-oauth-client.ts @@ -191,6 +191,15 @@ export class LhispOauthClient { }); } + async patch({ path, data, contentType = ContentType.APPLICATION_JSON }: ExecutarRequestParams) { + return this.executarRequest({ + method: "PATCH", + path, + data, + contentType, + }); + } + async post({ path, data, contentType = ContentType.APPLICATION_JSON }: ExecutarRequestParams) { return this.executarRequest({ method: "POST",