@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 +9 -0
- package/dist/index.js +1 -2
- package/dist/index.mjs +1 -2
- package/package.json +1 -1
- package/src/OrbitSignal.ts +2 -3
package/CHANGELOG.md
CHANGED
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
package/package.json
CHANGED
package/src/OrbitSignal.ts
CHANGED
|
@@ -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
|
|