silgi 0.25.3 → 0.25.4

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.3";
4
+ const version = "0.25.4";
5
5
  const packageJson = {
6
6
  version: version};
7
7
 
@@ -720,13 +720,17 @@ function mergeShared(sharedOrArray) {
720
720
  function getEvent(event) {
721
721
  const silgi = useSilgi();
722
722
  if (silgi.options.present === "h3" || silgi.options.present === "nitro" || silgi.options.present === "nuxt") {
723
- return event.event;
723
+ return event;
724
724
  }
725
725
  return event;
726
726
  }
727
727
  function getEventContext(event) {
728
+ const silgi = useSilgi();
728
729
  const _event = getEvent(event);
729
- return _event.context;
730
+ if (silgi.options.present === "h3" || silgi.options.present === "nitro" || silgi.options.present === "nuxt") {
731
+ return _event.context;
732
+ }
733
+ return _event;
730
734
  }
731
735
 
732
736
  function createSchema(silgiType) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.25.3",
4
+ "version": "0.25.4",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {