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

@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 1.4.0 to 1.4.1

4

dist/index.js

@@ -89,4 +89,2 @@ "use strict";

*/
// export const topoSort = (messages: Message[]) => {
// return [];
// };
// export const topoSort = (messages: Message[]) => {};
{
"name": "@botmock-api/utils",
"version": "1.4.0",
"version": "1.4.1",
"description": "utilities for handling data from the Botmock API",

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

@@ -20,6 +20,17 @@ type Utterance = {

type Message = {
message_id: string;
message_type: string;
next_message_ids: NextMessage[];
is_root: boolean;
payload: {
nodeName: string;
context: any[];
text: string;
workflow_column_id: string;
assigned_to: string;
};
previous_message_ids: { message_id: string; action: string | {} }[];
};
type IntentMap = Map<string, Intent[]>;
type IntentMap = Map<string, string[]>;

@@ -40,3 +51,3 @@ /**

): IntentMap => {
return new Map<string, Intent[]>(
return new Map<string, string[]>(
messages.reduce((acc, { next_message_ids }) => {

@@ -119,4 +130,2 @@ return [

*/
// export const topoSort = (messages: Message[]) => {
// return [];
// };
// export const topoSort = (messages: 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