silgi 0.25.7 → 0.25.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli/index.mjs
CHANGED
|
@@ -242,7 +242,7 @@ async function h3Framework(silgi, skip = false) {
|
|
|
242
242
|
);
|
|
243
243
|
});
|
|
244
244
|
silgi.hook("prepare:core.ts", (data) => {
|
|
245
|
-
data._silgiConfigs.push(`captureError: (error, context = {}) => {
|
|
245
|
+
data._silgiConfigs.push(`captureError: (silgi, error, context = {}) => {
|
|
246
246
|
const promise = silgi.hooks
|
|
247
247
|
.callHookParallel('error', error, context)
|
|
248
248
|
.catch((error_) => {
|
package/dist/core/index.mjs
CHANGED
package/dist/types/index.d.mts
CHANGED
|
@@ -1051,7 +1051,7 @@ interface CapturedErrorContext {
|
|
|
1051
1051
|
event?: SilgiEvents;
|
|
1052
1052
|
[key: string]: unknown;
|
|
1053
1053
|
}
|
|
1054
|
-
type CaptureError = (error: Error, context: CapturedErrorContext) => void;
|
|
1054
|
+
type CaptureError = (error: Error, context: CapturedErrorContext, silgi: Silgi) => void;
|
|
1055
1055
|
|
|
1056
1056
|
/**
|
|
1057
1057
|
* The listeners to Silgi
|