nestjs-http-manager
Advanced tools
Comparing version 0.1.18 to 0.1.19
@@ -70,3 +70,5 @@ "use strict"; | ||
async delete(path, options = {}) { | ||
const { data } = await (0, rxjs_1.firstValueFrom)(this.httpService.delete(path, { headers: options.headers }).pipe((0, rxjs_1.catchError)((error) => { | ||
const { data } = await (0, rxjs_1.firstValueFrom)(this.httpService | ||
.delete(path, { headers: options.headers, data: options.data }) | ||
.pipe((0, rxjs_1.catchError)((error) => { | ||
throw new common_1.HttpException(error.response.data, error.response.status); | ||
@@ -73,0 +75,0 @@ }))); |
@@ -21,4 +21,6 @@ import { AxiosHeaders } from 'axios'; | ||
export type DeleteRequestOpt<D> = { | ||
/** Необязательно. Тело запроса */ | ||
data?: D; | ||
/** Необязательно. Заголовки запроса */ | ||
headers?: object; | ||
}; |
{ | ||
"name": "nestjs-http-manager", | ||
"version": "0.1.18", | ||
"version": "0.1.19", | ||
"author": "byteflowstudio", | ||
@@ -5,0 +5,0 @@ "description": "Обертка над http-модулем с использованием реактивного программирования и отловом ошибок для nestjs", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
94131
249