stentor-models 1.56.18 → 1.56.25

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,4 +1,5 @@
1
1
  /*! Copyright (c) 2019, XAPPmedia */
2
+ import { Context } from "../Context";
2
3
  import { Request } from "../Request";
3
4
  import { AbstractResponseBuilder } from "../Response";
4
5
  import { Storage } from "../Storage";
@@ -34,6 +35,16 @@ export interface Hooks {
34
35
  * @returns Promise that passes back the request
35
36
  */
36
37
  postRequestTranslation?(request: Request): Promise<Request>;
38
+ /**
39
+ * This hook, if provided is called after the request is translated then immediately after the context is created. This happens immediately before the handler is deteremined.
40
+ *
41
+ * @param request
42
+ * @param context
43
+ */
44
+ postContextCreation?(request: Request, context: Context): Promise<{
45
+ request: Request;
46
+ context: Context;
47
+ }>;
37
48
  /**
38
49
  * This hook is called before the response is translated for the channel.
39
50
  *
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "1.56.18",
7
+ "version": "1.56.25",
8
8
  "description": "Models for 📣 stentor",
9
9
  "types": "lib/index",
10
10
  "typings": "lib/index",
@@ -17,10 +17,10 @@
17
17
  "node": "^10 || ^12 || ^14 || ^16.0.0"
18
18
  },
19
19
  "devDependencies": {
20
- "@microsoft/api-extractor": "7.28.0",
20
+ "@microsoft/api-extractor": "7.28.3",
21
21
  "@rollup/plugin-typescript": "8.3.3",
22
22
  "@xapp/config": "0.2.3",
23
- "rollup": "2.75.7",
23
+ "rollup": "2.76.0",
24
24
  "tslib": "2.4.0",
25
25
  "typescript": "4.7.4"
26
26
  },
@@ -33,5 +33,5 @@
33
33
  "dependencies": {
34
34
  "@xapp/patterns": "1.40.197"
35
35
  },
36
- "gitHead": "23f0d6d206643543fe0934b491e9e2e0ff40dd86"
36
+ "gitHead": "b5f59df4c4aad072f08f4b7b038097724220df70"
37
37
  }