silgi 0.25.8 → 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,8 +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 = {}) => {
|
|
246
|
-
const silgi = useSilgi()
|
|
245
|
+
data._silgiConfigs.push(`captureError: (silgi, error, context = {}) => {
|
|
247
246
|
const promise = silgi.hooks
|
|
248
247
|
.callHookParallel('error', error, context)
|
|
249
248
|
.catch((error_) => {
|
|
@@ -1835,10 +1834,6 @@ async function prepareCoreFile(data, frameworkContext, silgi) {
|
|
|
1835
1834
|
{
|
|
1836
1835
|
name: "createSilgi",
|
|
1837
1836
|
key: "createSilgi"
|
|
1838
|
-
},
|
|
1839
|
-
{
|
|
1840
|
-
name: "useSilgi",
|
|
1841
|
-
key: "useSilgi"
|
|
1842
1837
|
}
|
|
1843
1838
|
],
|
|
1844
1839
|
from: "silgi"
|
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
|