Comparing version 60.0.0 to 61.0.0
@@ -11,3 +11,4 @@ import { reverse } from "./array.js"; | ||
const errorBoundry = (f) => { | ||
const augment = augmentException(currentLocation(4)); | ||
const location = currentLocation(4); | ||
const augment = augmentException(location); | ||
return ((...x) => { | ||
@@ -18,2 +19,6 @@ try { | ||
? result.catch((e) => { | ||
if (e === undefined) { | ||
console.error(`undefined error within ${location}`); | ||
throw e; | ||
} | ||
throw augment(e); | ||
@@ -24,2 +29,6 @@ }) | ||
catch (e) { | ||
if (e === undefined) { | ||
console.error(`undefined error within ${location}`); | ||
throw e; | ||
} | ||
throw augment(e); | ||
@@ -26,0 +35,0 @@ } |
{ | ||
"name": "gamla", | ||
"version": "60.0.0", | ||
"version": "61.0.0", | ||
"description": "Functional programming with async and type safety", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -14,3 +14,4 @@ "use strict"; | ||
const errorBoundry = (f) => { | ||
const augment = augmentException((0, trace_js_1.currentLocation)(4)); | ||
const location = (0, trace_js_1.currentLocation)(4); | ||
const augment = augmentException(location); | ||
return ((...x) => { | ||
@@ -21,2 +22,6 @@ try { | ||
? result.catch((e) => { | ||
if (e === undefined) { | ||
console.error(`undefined error within ${location}`); | ||
throw e; | ||
} | ||
throw augment(e); | ||
@@ -27,2 +32,6 @@ }) | ||
catch (e) { | ||
if (e === undefined) { | ||
console.error(`undefined error within ${location}`); | ||
throw e; | ||
} | ||
throw augment(e); | ||
@@ -29,0 +38,0 @@ } |
227543
2290