servicestack-client
Advanced tools
Comparing version 0.0.34 to 0.0.35
{ | ||
"name": "servicestack-client", | ||
"title": "ServiceStack JavaScript Utils", | ||
"version": "0.0.34", | ||
"version": "0.0.35", | ||
"description": "ServiceStack's TypeScript library providing convenience utilities in developing web apps. Integrates with ServiceStack's Server features including ServiceClient, Server Events, Error Handling and Validation", | ||
@@ -46,6 +46,9 @@ "homepage": "https://github.com/ServiceStack/servicestack-client", | ||
"devDependencies": { | ||
"@types/chai": "^3.5.2", | ||
"@types/mocha": "^2.2.41", | ||
"chai": "^3.5.0", | ||
"fetch-everywhere": "^1.0.5", | ||
"mocha": "^2.5.3", | ||
"typescript": "^2.2.1" | ||
"typescript": "^2.3.2" | ||
} | ||
} |
@@ -232,4 +232,4 @@ import 'fetch-everywhere'; | ||
oneWayBaseUrl: string; | ||
mode: string; | ||
credentials: string; | ||
mode: RequestMode; | ||
credentials: RequestCredentials; | ||
headers: Headers; | ||
@@ -236,0 +236,0 @@ userName: string; |
@@ -678,2 +678,7 @@ "use strict"; | ||
throw this.raiseError(res, createErrorResponse(res.status, res.statusText)); | ||
if (typeof res.json == "undefined" && res.responseStatus) { | ||
return new Promise(function (resolve, reject) { | ||
return reject(_this.raiseError(null, res)); | ||
}); | ||
} | ||
return res.json().then(function (o) { | ||
@@ -680,0 +685,0 @@ var errorDto = exports.sanitize(o); |
@@ -667,4 +667,4 @@ import 'fetch-everywhere'; | ||
oneWayBaseUrl: string; | ||
mode: string; | ||
credentials: string; | ||
mode: RequestMode; | ||
credentials: RequestCredentials; | ||
headers: Headers; | ||
@@ -877,2 +877,8 @@ userName: string; | ||
if (typeof res.json == "undefined" && res.responseStatus) { | ||
return new Promise((resolve,reject) => | ||
reject(this.raiseError(null, res)) | ||
); | ||
} | ||
return res.json().then(o => { | ||
@@ -879,0 +885,0 @@ var errorDto = sanitize(o); |
Sorry, the diff of this file is not supported yet
148489
2320
6