@dreamkit/app 0.0.15 → 0.0.16
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/lib/App.js +2 -2
- package/package.json +3 -3
package/lib/App.js
CHANGED
|
@@ -269,9 +269,9 @@ export class App {
|
|
|
269
269
|
value: new RequestUrl(request.url, `http://${host}`),
|
|
270
270
|
})
|
|
271
271
|
.register(Session, {
|
|
272
|
-
useFactory: (ctx, Session) => {
|
|
272
|
+
useFactory: async (ctx, Session) => {
|
|
273
273
|
const sessionHandler = ctx.resolve(SessionHandler);
|
|
274
|
-
const data = sessionHandler.get(Session);
|
|
274
|
+
const data = await sessionHandler.get(Session);
|
|
275
275
|
if (!data)
|
|
276
276
|
return;
|
|
277
277
|
return new Session(data);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dreamkit/app",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.16",
|
|
4
4
|
"description": "Set of utils to create applications.",
|
|
5
5
|
"homepage": "https://dreamkit.dev",
|
|
6
6
|
"repository": {
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"debug": "^4.4.1",
|
|
30
|
-
"@dreamkit/func": "0.0.
|
|
31
|
-
"@dreamkit/ioc": "0.
|
|
30
|
+
"@dreamkit/func": "0.0.9",
|
|
31
|
+
"@dreamkit/ioc": "0.3.0",
|
|
32
32
|
"@dreamkit/kind": "0.0.4",
|
|
33
33
|
"@dreamkit/schema": "0.0.7",
|
|
34
34
|
"@dreamkit/utils": "0.0.7"
|