@mx-cartographer/common
Advanced tools
Comparing version
@@ -63,12 +63,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
.then((response) => { | ||
if (response.ok) { | ||
return response.text(); | ||
if (!response.ok) { | ||
throw new Error(`${response.status}`); | ||
} | ||
else { | ||
return response.text().then((text) => { | ||
throw new Error(text); | ||
}); | ||
} | ||
return response.json(); | ||
}) | ||
.then((text) => (text.length ? JSON.parse(text) : {})) | ||
.then((data) => data) | ||
@@ -75,0 +70,0 @@ .catch((err) => { |
{ | ||
"name": "@mx-cartographer/common", | ||
"version": "8.0.6-alpha.sms24", | ||
"version": "8.0.6-alpha.sms25", | ||
"description": "Common components used within Cartographer", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
385977
-0.11%5611
-0.09%