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

utilities for handling data from the Botmock API


Version published
Weekly downloads
1
decreased by-98.67%
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';
utils.enumeratePaths({ messages: string[], connections: string[] }): Set<Array<string>>

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

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

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