@microsoft/paris
Advanced tools
Comparing version 1.7.2 to 1.7.3
@@ -136,2 +136,5 @@ 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; | ||
@@ -138,0 +141,0 @@ var apiCall$ = this.makeApiCall(apiCallType.config, apiCallType.config.method || "GET", httpOptions, undefined, requestOptions) |
import 'reflect-metadata'; | ||
(<any>global)['Reflect'] = Reflect; |
{ | ||
"name": "@microsoft/paris", | ||
"version": "1.7.2", | ||
"version": "1.7.3", | ||
"description": "Library for the implementation of Domain Driven Design with TypeScript + RxJS", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -0,0 +0,0 @@ # Paris |
@@ -0,0 +0,0 @@ import {Paris} from '../../lib/paris'; |
@@ -0,0 +0,0 @@ import {Paris} from '../../lib/paris'; |
@@ -0,0 +0,0 @@ import {TodoList} from "./todo-list.entity"; |
@@ -361,2 +361,19 @@ import { Observable, of, forkJoin } from 'rxjs'; | ||
it('should call Http.request with correct params', () => { }); | ||
it('should pass the timeout property as part of the options if it exists', () => { | ||
const timeout = 123456; | ||
const createToDoListApiCall = { | ||
...CreateTodoListApiCall, | ||
config: { | ||
...(<any>CreateTodoListApiCall).config, | ||
timeout | ||
} | ||
}; | ||
paris.apiCall(<any>createToDoListApiCall, undefined, { allowCache: false }); | ||
const [config, _, httpOptions] = (<any>paris).makeApiCall.mock.calls[0]; | ||
expect(config.timeout).toBe(timeout); | ||
expect(httpOptions.timeout).toBe(timeout); | ||
}); | ||
}); | ||
@@ -363,0 +380,0 @@ |
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
5282
259894