Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

botbuilder-instrumentation

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

botbuilder-instrumentation - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

14

dist/events.js

@@ -62,2 +62,16 @@ "use strict";

},
Entity: {
name: 'MBFEvent.Entity',
format: {
intent: 'intent name / id / string',
entityType: 'entity type',
entityValue: 'entity value',
state: 'current session state',
channel: 'address.channelId',
conversationId: 'conversation.id',
callstack_length: 'callstack.length',
userId: 'user.id',
userName: 'user.name'
}
},
Sentiment: {

@@ -64,0 +78,0 @@ name: 'MBFEvent.Sentiment',

28

dist/main.js

@@ -11,3 +11,3 @@ "use strict";

constructor(settings) {
this.appInsightsClient = null;
this.appInsightsClient = ApplicationInsights.client;
this.console = {};

@@ -238,11 +238,2 @@ this.methods = {

_recognize.apply(_dialog, [context, (err, result) => {
var entities = [];
if (result && result.entities) {
result.entities.forEach(value => {
entities.push({
type: value.type,
entity: value.entity
});
});
}
let message = context.message;

@@ -258,3 +249,2 @@ let address = message.address || {};

score: result && result.score,
entities: entities,
withError: !err,

@@ -267,9 +257,11 @@ error: err,

self.appInsightsClient.trackEvent(events_1.default.Intent.name, item);
// transactions.forEach(cc => {
// if (cc.intent == item.intent) {
// startConverting(context, null);
// context.dialogData['transaction.started'] = true;
// context.dialogData['transaction.id'] = cc.intent;
// }
// });
// Tracking entities for the event
if (result && result.entities) {
result.entities.forEach(value => {
let entityItem = _.clone(item);
entityItem.entityType = value.type;
entityItem.entityValue = value.entity;
self.appInsightsClient.trackEvent(events_1.default.Entity.name, entityItem);
});
}
self.collectSentiment(context, message.text);

@@ -276,0 +268,0 @@ // Todo: on "set alarm" utterence, failiure

{
"name": "botbuilder-instrumentation",
"version": "1.0.8",
"version": "1.0.9",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/main.js",

@@ -60,2 +60,16 @@ export default {

},
Entity: {
name: 'MBFEvent.Entity',
format: {
intent: 'intent name / id / string',
entityType: 'entity type',
entityValue: 'entity value',
state: 'current session state',
channel: 'address.channelId',
conversationId: 'conversation.id',
callstack_length: 'callstack.length',
userId: 'user.id',
userName: 'user.name'
}
},
Sentiment: {

@@ -62,0 +76,0 @@ name: 'MBFEvent.Sentiment',

@@ -21,3 +21,3 @@ import * as util from 'util';

private appInsightsClient = null;
private appInsightsClient = ApplicationInsights.client;

@@ -294,12 +294,2 @@ private console = {};

var entities = [];
if (result && result.entities) {
result.entities.forEach(value => {
entities.push({
type: value.type,
entity: value.entity
})
});
}
let message = context.message;

@@ -310,3 +300,3 @@ let address = message.address || {};

let item = {
let item: any = {
text: message.text,

@@ -317,3 +307,2 @@ timestamp: message.timestamp,

score: result && result.score,
entities: entities,
withError: !err,

@@ -328,10 +317,14 @@ error: err,

// transactions.forEach(cc => {
// if (cc.intent == item.intent) {
// startConverting(context, null);
// context.dialogData['transaction.started'] = true;
// context.dialogData['transaction.id'] = cc.intent;
// }
// });
// Tracking entities for the event
if (result && result.entities) {
result.entities.forEach(value => {
let entityItem = _.clone(item);
entityItem.entityType = value.type;
entityItem.entityValue = value.entity
self.appInsightsClient.trackEvent(Events.Entity.name, entityItem);
});
}
self.collectSentiment(context, message.text);

@@ -338,0 +331,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc