@miso.ai/client-sdk-core 1.9.5 → 1.9.6-beta.0
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.
|
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _commons = require("@miso.ai/commons");
|
|
8
|
+
var _version = _interopRequireDefault(require("../version.js"));
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
8
10
|
const ID = 'std:interactions';
|
|
9
11
|
class InteractionsPlugin {
|
|
10
12
|
static get id() {
|
|
@@ -39,7 +41,9 @@ function modifyInteractionRecord(record) {
|
|
|
39
41
|
const {
|
|
40
42
|
context = {}
|
|
41
43
|
} = record;
|
|
42
|
-
const custom_context = Object.assign({}, context.custom_context
|
|
44
|
+
const custom_context = Object.assign({}, context.custom_context, {
|
|
45
|
+
sdk_version: _version.default
|
|
46
|
+
});
|
|
43
47
|
if (!custom_context.uuid) {
|
|
44
48
|
custom_context.uuid = (0, _commons.uuidv4)();
|
|
45
49
|
}
|
package/dist/cjs/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { uuidv4 } from '@miso.ai/commons';
|
|
2
|
+
import sdk_version from '../version.js';
|
|
2
3
|
|
|
3
4
|
const ID = 'std:interactions';
|
|
4
5
|
|
|
@@ -28,7 +29,10 @@ export default class InteractionsPlugin {
|
|
|
28
29
|
|
|
29
30
|
function modifyInteractionRecord(record) {
|
|
30
31
|
const { context = {} } = record;
|
|
31
|
-
const custom_context = {
|
|
32
|
+
const custom_context = {
|
|
33
|
+
...context.custom_context,
|
|
34
|
+
sdk_version,
|
|
35
|
+
};
|
|
32
36
|
if (!custom_context.uuid) {
|
|
33
37
|
custom_context.uuid = uuidv4();
|
|
34
38
|
}
|
package/src/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '1.9.
|
|
1
|
+
export default '1.9.6-beta.0';
|