@wmfs/asl-choice-processor 1.24.0 → 1.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.releaserc.json +2 -2
- package/CHANGELOG.md +7 -0
- package/lib/operators/includes.js +1 -1
- package/package.json +6 -6
package/.releaserc.json
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.24.1](https://github.com/wmfs/asl-choice-processor/compare/v1.24.0...v1.24.1) (2023-12-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **includes:** check for array ([40c7698](https://github.com/wmfs/asl-choice-processor/commit/40c7698d716099d8f96aad7e1ec1be0a9a7f0a5e))
|
|
7
|
+
|
|
1
8
|
# [1.24.0](https://github.com/wmfs/asl-choice-processor/compare/v1.23.0...v1.24.0) (2022-09-15)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module.exports = function includesOperator (inputValue, comparisonValue, candidateStateName, cache) {
|
|
4
4
|
let nextState
|
|
5
|
-
if (inputValue.includes(comparisonValue)) {
|
|
5
|
+
if (Array.isArray(inputValue) && inputValue.includes(comparisonValue)) {
|
|
6
6
|
nextState = candidateStateName
|
|
7
7
|
}
|
|
8
8
|
return nextState
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wmfs/asl-choice-processor",
|
|
3
|
-
"version": "1.24.
|
|
3
|
+
"version": "1.24.1",
|
|
4
4
|
"description": "For determining the next state given an Amazon States Language 'Choices' definition and a set of values.",
|
|
5
5
|
"author": "West Midlands Fire Service",
|
|
6
6
|
"homepage": "https://github.com/wmfs/asl-choice-processor#readme",
|
|
@@ -23,15 +23,15 @@
|
|
|
23
23
|
"lodash": "4.17.21"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"chai": "4.3.
|
|
26
|
+
"chai": "4.3.10",
|
|
27
27
|
"codecov": "3.8.3",
|
|
28
28
|
"conventional-changelog-metahub": "4.0.1",
|
|
29
29
|
"cz-conventional-changelog": "3.3.0",
|
|
30
|
-
"mocha": "10.
|
|
30
|
+
"mocha": "10.2.0",
|
|
31
31
|
"nyc": "15.1.0",
|
|
32
|
-
"semantic-release": "
|
|
33
|
-
"standard": "17.
|
|
34
|
-
"@semantic-release/changelog": "6.0.
|
|
32
|
+
"semantic-release": "22.0.10",
|
|
33
|
+
"standard": "17.1.0",
|
|
34
|
+
"@semantic-release/changelog": "6.0.3",
|
|
35
35
|
"@semantic-release/git": "10.0.1"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|