Socket
Socket
Sign inDemoInstall

@botmock-api/utils

Package Overview
Dependencies
Maintainers
3
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@botmock-api/utils - npm Package Compare versions

Comparing version 2.2.1 to 2.3.0

8

dist/index.js

@@ -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

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