@gravito/signal 2.0.0 → 3.0.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @gravito/signal
2
2
 
3
+ ## 3.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @gravito/core@1.2.0
9
+ - @gravito/prism@3.0.0
10
+ - @gravito/stream@1.0.2
11
+
3
12
  ## 2.0.0
4
13
 
5
14
  ### Patch Changes
package/dist/index.js CHANGED
@@ -37996,8 +37996,7 @@ var OrbitSignal = class {
37996
37996
  core.container.singleton("mail", () => this);
37997
37997
  core.adapter.use("*", async (c, next) => {
37998
37998
  c.set("mail", this);
37999
- await next();
38000
- return void 0;
37999
+ return await next();
38001
38000
  });
38002
38001
  }
38003
38002
  /**
package/dist/index.mjs CHANGED
@@ -653,8 +653,7 @@ var OrbitSignal = class {
653
653
  core.container.singleton("mail", () => this);
654
654
  core.adapter.use("*", async (c, next) => {
655
655
  c.set("mail", this);
656
- await next();
657
- return void 0;
656
+ return await next();
658
657
  });
659
658
  }
660
659
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravito/signal",
3
- "version": "2.0.0",
3
+ "version": "3.0.0",
4
4
  "description": "Powerful email framework for Gravito applications with Dev UI and multi-renderer support.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -46,10 +46,9 @@ export class OrbitSignal implements GravitoOrbit {
46
46
  core.container.singleton('mail', () => this)
47
47
 
48
48
  // 4. Inject mail service into context for easy access in routes
49
- core.adapter.use('*', async (c, next) => {
49
+ core.adapter.use('*', async (c: any, next) => {
50
50
  c.set('mail', this)
51
- await next()
52
- return undefined
51
+ return await next()
53
52
  })
54
53
  }
55
54