lhisp-oauth-client 1.0.15 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lhisp-oauth-client",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "main": "src/index",
5
5
  "types": "src/index.d.ts",
6
6
  "repository": "git@bitbucket.org:leandro_costa/lhisp-oauth-client.git",
@@ -33,6 +33,7 @@ export declare class LhispOauthClient<iAccessToken extends AccessToken = AccessT
33
33
  executarRequest<ResponseType>({ method, path, data, params, contentType, }: ExecutarRequestParams): Promise<ResponseType>;
34
34
  get<ResponseType>({ path, contentType, params }: ExecutarRequestParams): Promise<ResponseType>;
35
35
  put<ResponseType>({ path, data, contentType }: ExecutarRequestParams): Promise<ResponseType>;
36
+ patch<ResponseType>({ path, data, contentType }: ExecutarRequestParams): Promise<ResponseType>;
36
37
  post<ResponseType>({ path, data, contentType }: ExecutarRequestParams): Promise<ResponseType>;
37
38
  delete<ResponseType>({ path, contentType }: ExecutarRequestParams): Promise<ResponseType>;
38
39
  }
@@ -173,6 +173,16 @@ class LhispOauthClient {
173
173
  });
174
174
  });
175
175
  }
176
+ patch({ path, data, contentType = lhisp_oauth_client_t_1.ContentType.APPLICATION_JSON }) {
177
+ return __awaiter(this, void 0, void 0, function* () {
178
+ return this.executarRequest({
179
+ method: "PATCH",
180
+ path,
181
+ data,
182
+ contentType,
183
+ });
184
+ });
185
+ }
176
186
  post({ path, data, contentType = lhisp_oauth_client_t_1.ContentType.APPLICATION_JSON }) {
177
187
  return __awaiter(this, void 0, void 0, function* () {
178
188
  return this.executarRequest({