wingbot 3.61.0 → 3.61.2
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
|
@@ -109,6 +109,12 @@ const {
|
|
|
109
109
|
* @prop {string} [osName]
|
|
110
110
|
* @prop {string} [skill]
|
|
111
111
|
* @prop {string} [prevSkill]
|
|
112
|
+
* @prop {string|null} [cs]
|
|
113
|
+
* @prop {string|null} [cm]
|
|
114
|
+
* @prop {string|null} [cn]
|
|
115
|
+
* @prop {string|null} [ck]
|
|
116
|
+
* @prop {string|null} [cc]
|
|
117
|
+
* @prop {string|null} [dr]
|
|
112
118
|
*/
|
|
113
119
|
|
|
114
120
|
/**
|
|
@@ -333,6 +339,15 @@ function onInteractionHandler (
|
|
|
333
339
|
const useSkill = (skill && webalize(skill)) || noneAction;
|
|
334
340
|
const usePrevSkill = (prevSkill && webalize(prevSkill)) || noneAction;
|
|
335
341
|
|
|
342
|
+
const {
|
|
343
|
+
'§cs': cs = null,
|
|
344
|
+
'§cm': cm = null,
|
|
345
|
+
'§cn': cn = null,
|
|
346
|
+
'§ck': ck = null,
|
|
347
|
+
'§cc': cc = null,
|
|
348
|
+
'§dr': dr = null
|
|
349
|
+
} = req.state;
|
|
350
|
+
|
|
336
351
|
const metadata = {
|
|
337
352
|
sessionCount,
|
|
338
353
|
lang,
|
|
@@ -351,7 +366,16 @@ function onInteractionHandler (
|
|
|
351
366
|
deviceType: ua.device.type || null,
|
|
352
367
|
osName: ua.os.name || null,
|
|
353
368
|
skill: useSkill,
|
|
354
|
-
prevSkill: usePrevSkill
|
|
369
|
+
prevSkill: usePrevSkill,
|
|
370
|
+
|
|
371
|
+
cs,
|
|
372
|
+
cm,
|
|
373
|
+
cn,
|
|
374
|
+
ck,
|
|
375
|
+
cc,
|
|
376
|
+
dr: dr
|
|
377
|
+
? `${dr}`.toLowerCase().replace(/^[a-z0-9]:\/\//, '').replace(/(?<=\.[a-z]+)\/.*$/, '')
|
|
378
|
+
: null
|
|
355
379
|
};
|
|
356
380
|
|
|
357
381
|
let sessionPromise;
|