silgi 0.25.10 → 0.25.12
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
|
@@ -244,7 +244,7 @@ async function h3Framework(silgi, skip = false) {
|
|
|
244
244
|
silgi.hook("prepare:core.ts", (data) => {
|
|
245
245
|
data._silgiConfigs.push(`captureError: (silgi, error, context = {}) => {
|
|
246
246
|
const promise = silgi.hooks
|
|
247
|
-
.callHookParallel('error', error, context
|
|
247
|
+
.callHookParallel('error', silgi, error, context)
|
|
248
248
|
.catch((error_) => {
|
|
249
249
|
console.error('Error while capturing another error', error_)
|
|
250
250
|
})
|
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
|
|
1054
|
+
type CaptureError = (silgi: Silgi, error: Error, context: CapturedErrorContext) => void;
|
|
1055
1055
|
|
|
1056
1056
|
/**
|
|
1057
1057
|
* The listeners to Silgi
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "silgi",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.25.
|
|
4
|
+
"version": "0.25.12",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"exports": {
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"./runtime/internal/*": "./dist/runtime/internal/*.mjs",
|
|
22
22
|
"./runtime/meta": "./lib/runtime-meta.mjs"
|
|
23
23
|
},
|
|
24
|
-
"main": "./dist/index.mjs",
|
|
25
|
-
"types": "./dist/index.d.mts",
|
|
24
|
+
"main": "./dist/core/index.mjs",
|
|
25
|
+
"types": "./dist/types/index.d.mts",
|
|
26
26
|
"bin": {
|
|
27
27
|
"silgi": "./dist/cli/index.mjs"
|
|
28
28
|
},
|