@marcopeg/utils
Advanced tools
Comparing version 1.8.8 to 1.8.9
@@ -91,3 +91,3 @@ 'use strict'; | ||
if (!(res.status !== 200)) { | ||
_context2.next = 20; | ||
_context2.next = 22; | ||
break; | ||
@@ -118,15 +118,19 @@ } | ||
case 20: | ||
_context2.next = 22; | ||
case 22: | ||
_context2.next = 24; | ||
return res.json(); | ||
case 22: | ||
case 24: | ||
return _context2.abrupt('return', _context2.sent); | ||
case 25: | ||
_context2.prev = 25; | ||
_context2.next = 30; | ||
break; | ||
case 27: | ||
_context2.prev = 27; | ||
_context2.t1 = _context2['catch'](0); | ||
throw _context2.t1; | ||
case 28: | ||
case 30: | ||
case 'end': | ||
@@ -136,3 +140,3 @@ return _context2.stop(); | ||
} | ||
}, _callee2, undefined, [[0, 25], [8, 14]]); | ||
}, _callee2, undefined, [[0, 27], [8, 14]]); | ||
})); | ||
@@ -139,0 +143,0 @@ |
{ | ||
"name": "@marcopeg/utils", | ||
"version": "1.8.8", | ||
"version": "1.8.9", | ||
"description": "Javascript utils for server and client projects", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -50,5 +50,6 @@ /* global fetch */ | ||
throw error | ||
} else { | ||
return await res.json() | ||
} | ||
return await res.json() | ||
} catch (err) { | ||
@@ -55,0 +56,0 @@ throw err |
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
73372
595