wingbot 3.67.6 → 3.67.8
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wingbot",
|
|
3
|
-
"version": "3.67.
|
|
3
|
+
"version": "3.67.8",
|
|
4
4
|
"description": "Enterprise Messaging Bot Conversation Engine",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"eslint-plugin-jsx-a11y": "^6.7.1",
|
|
45
45
|
"eslint-plugin-mocha": "^10.1.0",
|
|
46
46
|
"eslint-plugin-react": "^7.32.2",
|
|
47
|
-
"graphql-markdown": "^
|
|
47
|
+
"graphql-markdown": "^7.0.0",
|
|
48
48
|
"jsdoc-to-markdown": "^8.0.0",
|
|
49
49
|
"mocha": "^10.2.0",
|
|
50
50
|
"nyc": "^15.1.0",
|
|
@@ -307,6 +307,16 @@ function onInteractionHandler (
|
|
|
307
307
|
[userAgentVar]: userAgent
|
|
308
308
|
} = req.state;
|
|
309
309
|
|
|
310
|
+
const customDimensions = {};
|
|
311
|
+
for (let i = 1; i <= 8; i++) {
|
|
312
|
+
const k = `cd${i}`;
|
|
313
|
+
if (!['undefined', 'object'].includes(typeof req.state[k])) {
|
|
314
|
+
Object.assign(customDimensions, {
|
|
315
|
+
[k]: req.state[k]
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
|
|
310
320
|
const ua = uaParserJs(userAgent);
|
|
311
321
|
|
|
312
322
|
const pageCategory = pathCategoryExtractor(pagePath);
|
|
@@ -493,6 +503,7 @@ function onInteractionHandler (
|
|
|
493
503
|
skill: useSkill,
|
|
494
504
|
isGoto: false,
|
|
495
505
|
withUser,
|
|
506
|
+
...customDimensions,
|
|
496
507
|
...langsExtension,
|
|
497
508
|
...actionMeta
|
|
498
509
|
});
|
|
@@ -513,6 +524,7 @@ function onInteractionHandler (
|
|
|
513
524
|
skill: useSkill,
|
|
514
525
|
isGoto: true,
|
|
515
526
|
withUser,
|
|
527
|
+
...customDimensions,
|
|
516
528
|
...langsExtension
|
|
517
529
|
};
|
|
518
530
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
6
|
const PHONE_REGEX = /((00|\+)[\s-]?[0-9]{1,4}[\s-]?)?([0-9]{3,4}[\s-]?([0-9]{2,3}[\s-]?[0-9]{2}[\s-]?[0-9]{2,3}|[0-9]{3,4}[\s-]?[0-9]{3,4}))(?=(\s|$|[,!.?\-:]))/;
|
|
7
|
-
const EMAIL_REGEX = /(?<=(\s
|
|
7
|
+
const EMAIL_REGEX = /(?<=(\s|^|:|,))[a-zA-Z0-9!#$%&'*+\-=?^_`{|}~"][^@:\s]*@[^.@\s]+\.[^@\s,]+/;
|
|
8
8
|
|
|
9
9
|
module.exports = {
|
|
10
10
|
PHONE_REGEX,
|