@xapp/stentor-lex-connect 1.37.37 → 1.37.43

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/Guards.js CHANGED
@@ -11,6 +11,8 @@ exports.isLexConnectRequest = void 0;
11
11
  */
12
12
  function isLexConnectRequest(requestBody) {
13
13
  return requestBody !== undefined
14
+ && requestBody.bot !== undefined
15
+ && requestBody.bot.alias !== undefined // V2: alias (not id)
14
16
  && requestBody.invocationSource !== undefined
15
17
  && requestBody.invocationSource === "FulfillmentCodeHook";
16
18
  }
package/lib/Guards.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Guards.js","sourceRoot":"","sources":["../src/Guards.ts"],"names":[],"mappings":";AAAA,oCAAoC;;;AAIpC;;;;;;GAMG;AACH,SAAgB,mBAAmB,CAAC,WAAgB;IAChD,OAAO,WAAW,KAAK,SAAS;WACzB,WAAW,CAAC,gBAAgB,KAAK,SAAS;WAC1C,WAAW,CAAC,gBAAgB,KAAK,qBAAqB,CAAC;AAClE,CAAC;AAJD,kDAIC"}
1
+ {"version":3,"file":"Guards.js","sourceRoot":"","sources":["../src/Guards.ts"],"names":[],"mappings":";AAAA,oCAAoC;;;AAIpC;;;;;;GAMG;AACH,SAAgB,mBAAmB,CAAC,WAAgB;IAChD,OAAO,WAAW,KAAK,SAAS;WACzB,WAAW,CAAC,GAAG,KAAK,SAAS;WAC7B,WAAW,CAAC,GAAG,CAAC,KAAK,KAAK,SAAS,CAAC,qBAAqB;WACzD,WAAW,CAAC,gBAAgB,KAAK,SAAS;WAC1C,WAAW,CAAC,gBAAgB,KAAK,qBAAqB,CAAC;AAClE,CAAC;AAND,kDAMC"}
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "1.37.37",
7
+ "version": "1.37.43",
8
8
  "description": "Stentor Lex Connect channel for stentor",
9
9
  "types": "lib/index",
10
10
  "main": "lib/index",
@@ -21,21 +21,21 @@
21
21
  "chai": "4.3.4",
22
22
  "mocha": "9.1.3",
23
23
  "sinon": "9.0.1",
24
- "stentor-channel": "1.46.6",
25
- "stentor-constants": "1.46.6",
26
- "stentor-interaction-model": "1.46.6",
27
- "stentor-media": "1.46.6",
28
- "stentor-models": "1.46.6",
29
- "stentor-request": "1.46.6",
30
- "stentor-response": "1.46.6",
31
- "stentor-utils": "1.46.6",
24
+ "stentor-channel": "1.48.8",
25
+ "stentor-constants": "1.48.7",
26
+ "stentor-interaction-model": "1.48.8",
27
+ "stentor-media": "1.48.8",
28
+ "stentor-models": "1.48.7",
29
+ "stentor-request": "1.48.8",
30
+ "stentor-response": "1.48.8",
31
+ "stentor-utils": "1.48.8",
32
32
  "ts-node": "9.1.1",
33
33
  "typescript": "4.4.4"
34
34
  },
35
35
  "dependencies": {
36
36
  "@xapp/patterns": "1.37.29",
37
- "@xapp/stentor-alexa-lib": "1.37.37",
38
- "@xapp/stentor-lex-lib": "1.37.37",
37
+ "@xapp/stentor-alexa-lib": "1.37.43",
38
+ "@xapp/stentor-lex-lib": "1.37.43",
39
39
  "actions-on-google": "2.14.0"
40
40
  },
41
41
  "peerDependencies": {
@@ -53,5 +53,5 @@
53
53
  "clean": "rm -rf ./lib/*",
54
54
  "test": "mocha --recursive -r ts-node/register \"./src/**/*.test.ts\""
55
55
  },
56
- "gitHead": "60533fe4ebcffb6ae4a2b511997f4cc8298e1d55"
56
+ "gitHead": "10f97bc786df3bef87245e8065210437b088aa17"
57
57
  }