@marcopeg/utils
Advanced tools
Comparing version 1.8.3 to 1.8.4
@@ -53,3 +53,3 @@ 'use strict'; | ||
_context.t0 = _context['catch'](0); | ||
throw _context.t0; | ||
throw new Error(_context.t0); | ||
@@ -128,9 +128,5 @@ case 10: | ||
_context2.t1 = _context2['catch'](0); | ||
console.log('*** getJSON Error:', _context2.t1.message); | ||
// throw err | ||
// return err | ||
throw new Error(_context2.t1); | ||
case 29: | ||
case 28: | ||
case 'end': | ||
@@ -221,3 +217,3 @@ return _context2.stop(); | ||
_context3.t1 = _context3['catch'](0); | ||
throw _context3.t1; | ||
throw new Error(_context3.t1); | ||
@@ -311,3 +307,3 @@ case 28: | ||
_context4.t1 = _context4['catch'](0); | ||
throw _context4.t1; | ||
throw new Error(_context4.t1); | ||
@@ -314,0 +310,0 @@ case 28: |
{ | ||
"name": "@marcopeg/utils", | ||
"version": "1.8.3", | ||
"version": "1.8.4", | ||
"description": "Javascript utils for server and client projects", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -23,3 +23,3 @@ /* global fetch */ | ||
} catch (err) { | ||
throw err | ||
throw new Error(err) | ||
} | ||
@@ -55,5 +55,2 @@ } | ||
} catch (err) { | ||
console.log('*** getJSON Error:', err.message) | ||
// throw err | ||
// return err | ||
throw new Error(err) | ||
@@ -101,3 +98,3 @@ } | ||
} catch (err) { | ||
throw err | ||
throw new Error(err) | ||
} | ||
@@ -144,3 +141,3 @@ } | ||
} catch (err) { | ||
throw err | ||
throw new Error(err) | ||
} | ||
@@ -147,0 +144,0 @@ } |
73321
591