@botmock-api/utils
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -16,2 +16,6 @@ import { enumeratePaths, createIntentMap, createNodeCollector } from '../src'; | ||
}); | ||
test.todo('handles loops'); | ||
test.todo('handles multi edges'); | ||
test.todo('handles simple graphs'); | ||
test.todo('flattened set has length exponential in the number of nodes'); | ||
}); | ||
@@ -23,2 +27,3 @@ | ||
}); | ||
test.todo('does not contain message not following an intent'); | ||
}); | ||
@@ -30,2 +35,3 @@ | ||
}); | ||
test.todo('returned function does not collect nodes connected by intents'); | ||
}); |
{ | ||
"name": "@botmock-api/utils", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "utilities for handling data from the Botmock API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -15,9 +15,13 @@ # utils | ||
#### enumeratePaths | ||
```js | ||
utils.enumeratePaths({ messages: string[], connections: string[] }): Set<Array<string>> | ||
utils.enumeratePaths(messages: Message[]): Set<Array<string>> | ||
``` | ||
Function that returns a [Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) | ||
which contains arrays with the message ids of each possible journey in the provided messages + connections | ||
which contains arrays with the message ids of each possible journey in the provided messages | ||
#### createIntentMap | ||
```js | ||
@@ -30,2 +34,4 @@ utils.createIntentMap(messages: []): Map<messageId: string, intentIds: string[]> | ||
#### createNodeCollector | ||
```js | ||
@@ -32,0 +38,0 @@ utils.createNodeCollector(map: Map, get: (id: string) => ({}): (arr: string[]) => string[] |
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
13586
10
121
41