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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { defineCommand, runMain } from 'citty';
3
3
 
4
- const version = "0.25.10";
4
+ const version = "0.25.12";
5
5
  const packageJson = {
6
6
  version: version};
7
7
 
@@ -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, silgi)
247
+ .callHookParallel('error', silgi, error, context)
248
248
  .catch((error_) => {
249
249
  console.error('Error while capturing another error', error_)
250
250
  })
@@ -506,7 +506,7 @@ async function runSilgiPlugins(silgi) {
506
506
  try {
507
507
  await plugin(silgi);
508
508
  } catch (error) {
509
- silgi.captureError(error, { tags: ["plugin"] }, silgi);
509
+ silgi.captureError(silgi, error, { tags: ["plugin"] });
510
510
  throw error;
511
511
  }
512
512
  }
@@ -1051,7 +1051,7 @@ interface CapturedErrorContext {
1051
1051
  event?: SilgiEvents;
1052
1052
  [key: string]: unknown;
1053
1053
  }
1054
- type CaptureError = (error: Error, context: CapturedErrorContext, silgi: Silgi) => void;
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.10",
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
  },