servicestack-client
Advanced tools
Comparing version 0.0.40 to 0.0.41
{ | ||
"name": "servicestack-client", | ||
"title": "ServiceStack JavaScript Utils", | ||
"version": "0.0.40", | ||
"version": "0.0.41", | ||
"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", | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/ServiceStack/servicestack-client", |
@@ -713,3 +713,3 @@ "use strict"; | ||
// No responseStatus body, set from `res` Body object | ||
if (error instanceof Error) | ||
if (error instanceof Error || error instanceof DOMException /*MS Edge*/) | ||
throw _this.raiseError(res, createErrorResponse(res.status, res.statusText, type)); | ||
@@ -1020,2 +1020,6 @@ throw _this.raiseError(res, error); | ||
to.expires = new Date(value); | ||
// MS Edge returns Invalid Date when using '-' in "12-Mar-2037" | ||
if (to.expires.toString() === "Invalid Date") { | ||
to.expires = new Date(value.replace(/-/g, " ")); | ||
} | ||
} | ||
@@ -1022,0 +1026,0 @@ else { |
@@ -928,3 +928,3 @@ import 'fetch-everywhere'; | ||
// No responseStatus body, set from `res` Body object | ||
if (error instanceof Error) | ||
if (error instanceof Error || error instanceof DOMException /*MS Edge*/) | ||
throw this.raiseError(res, createErrorResponse(res.status, res.statusText, type)); | ||
@@ -1261,2 +1261,7 @@ throw this.raiseError(res, error); | ||
to.expires = new Date(value); | ||
// MS Edge returns Invalid Date when using '-' in "12-Mar-2037" | ||
if (to.expires.toString() === "Invalid Date") { | ||
to.expires = new Date(value.replace(/-/g, " ")); | ||
} | ||
} else { | ||
@@ -1263,0 +1268,0 @@ to[name] = value; |
Sorry, the diff of this file is not supported yet
160741
2512