@botmock-api/utils
Advanced tools
Comparing version 2.2.1 to 2.3.0
@@ -26,7 +26,5 @@ "use strict"; | ||
message.message_id, | ||
[ | ||
intents.find(function (intent) { | ||
return intent.id === message.intent.value; | ||
}) | ||
].concat(messages.reduce(function (acc, _a) { | ||
(intents.filter(function (intent) { | ||
return intent.id === message.intent.value; | ||
}) || []).concat(messages.reduce(function (acc, _a) { | ||
var next_message_ids = _a.next_message_ids; | ||
@@ -33,0 +31,0 @@ return acc.concat(next_message_ids |
{ | ||
"name": "@botmock-api/utils", | ||
"version": "2.2.1", | ||
"version": "2.3.0", | ||
"description": "utilities for handling data from the Botmock API", | ||
@@ -37,3 +37,3 @@ "main": "dist/index.js", | ||
"@types/jest": "24.0.15", | ||
"@types/node": "12.0.10", | ||
"@types/node": "12.6.8", | ||
"jest": "24.8.0", | ||
@@ -40,0 +40,0 @@ "ts-jest": "^24.0.2", |
@@ -60,5 +60,5 @@ type Utterance = { | ||
[ | ||
intents.find(intent => { | ||
...(intents.filter(intent => { | ||
return intent.id === message.intent.value; | ||
}), | ||
}) || []), | ||
// spread across the intent on any next message ids connected | ||
@@ -65,0 +65,0 @@ // to this message |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17208
408