@compas/stdlib
Advanced tools
Comparing version 0.10.3 to 0.10.4
{ | ||
"name": "@compas/stdlib", | ||
"version": "0.10.3", | ||
"version": "0.10.4", | ||
"description": "All kinds of utility functions", | ||
@@ -5,0 +5,0 @@ "exports": { |
@@ -104,2 +104,9 @@ import { lstatSync, realpathSync } from "node:fs"; | ||
_compasSentryExport.captureException(reason); | ||
return _compasSentryExport.close(1000).then(() => { | ||
unhandled({ | ||
type: "unhandledRejection", | ||
reason: AppError.format(reason), | ||
promise, | ||
}); | ||
}); | ||
} | ||
@@ -117,2 +124,9 @@ | ||
_compasSentryExport.captureException(error); | ||
return _compasSentryExport.close(1000).then(() => { | ||
unhandled({ | ||
type: "uncaughtException", | ||
error: AppError.format(error), | ||
origin, | ||
}); | ||
}); | ||
} | ||
@@ -137,2 +151,9 @@ | ||
_compasSentryExport.captureException(e); | ||
return _compasSentryExport.close(1000).then(() => { | ||
unhandled({ | ||
type: "error", | ||
message: "Error caught from callback passed in `mainFn`", | ||
error: AppError.format(e), | ||
}); | ||
}); | ||
} | ||
@@ -139,0 +160,0 @@ |
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
74913
2472