@microsoft/paris
Advanced tools
Comparing version 1.7.3 to 1.7.4
@@ -136,6 +136,6 @@ var __assign = (this && this.__assign) || Object.assign || function(t) { | ||
} | ||
if (apiCallType.config.timeout) { | ||
httpOptions.timeout = apiCallType.config.timeout; | ||
} | ||
var requestOptions = apiCallType.config.responseType ? { responseType: apiCallType.config.responseType } : null; | ||
var requestOptions = { | ||
responseType: apiCallType.config.responseType, | ||
timeout: apiCallType.config.timeout | ||
}; | ||
var apiCall$ = this.makeApiCall(apiCallType.config, apiCallType.config.method || "GET", httpOptions, undefined, requestOptions) | ||
@@ -142,0 +142,0 @@ .pipe(catchError(function (err) { |
{ | ||
"name": "@microsoft/paris", | ||
"version": "1.7.3", | ||
"version": "1.7.4", | ||
"description": "Library for the implementation of Domain Driven Design with TypeScript + RxJS", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -340,3 +340,3 @@ import { Observable, of, forkJoin } from 'rxjs'; | ||
undefined, | ||
null | ||
jasmine.any(Object) | ||
); | ||
@@ -354,3 +354,3 @@ }); | ||
undefined, | ||
null | ||
jasmine.any(Object) | ||
); | ||
@@ -376,5 +376,4 @@ }); | ||
const [config, _, httpOptions] = (<any>paris).makeApiCall.mock.calls[0]; | ||
expect(config.timeout).toBe(timeout); | ||
expect(httpOptions.timeout).toBe(timeout); | ||
const [ , , , , requestOptions] = (<any>paris).makeApiCall.mock.calls[0]; | ||
expect(requestOptions.timeout).toBe(timeout); | ||
}); | ||
@@ -381,0 +380,0 @@ }); |
259801
5281