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

utilities for handling data from the Botmock API

  • 0.5.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
3
Weekly downloads
 
Created
Source

utils

npm i @botmock-api/utils

utilities for handling data from the Botmock API

API

import * as utils from '@botmock-api/utils';
enumeratePaths
utils.enumeratePaths(messages: Message[]): Set<Array<string>>

Function that returns a Set which contains arrays with the message ids of each possible journey in the provided messages

createIntentMap
utils.createIntentMap(messages: []): Map<messageId: string, intentIds: string[]>

Function that returns a Map which associates message ids with the list of intent ids connected to them

createNodeCollector
utils.createNodeCollector(map: Map, get: (id: string) => ({}): (arr: string[]) => string[]

Creates function that turns next_messages into a collection of all reachable messages that are not connected by an intent

Keywords

FAQs

Package last updated on 30 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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