@wmfs/cardscript-extract-defaults
Advanced tools
Comparing version 1.30.0 to 1.30.1
@@ -0,1 +1,14 @@ | ||
## [1.30.1](https://github.com/wmfs/cardscript-extract-defaults/compare/v1.30.0...v1.30.1) (2021-05-12) | ||
### 🐛 Bug Fixes | ||
* handle if default value is already an array ([f40f34d](https://github.com/wmfs/cardscript-extract-defaults/commit/f40f34db6545c72a8022f24fa8ddf3a046d11686)) | ||
### 🛠 Builds | ||
* **deps-dev:** bump codecov from 3.8.1 to 3.8.2 ([f39176f](https://github.com/wmfs/cardscript-extract-defaults/commit/f39176f8c5d0e15b2a5f4d8ba4d6a6233152c32e)) | ||
* **deps-dev:** bump mocha from 8.3.2 to 8.4.0 ([ebdea0c](https://github.com/wmfs/cardscript-extract-defaults/commit/ebdea0c7c2cbace2c3149177fcb8df04c04fcf06)) | ||
# [1.30.0](https://github.com/wmfs/cardscript-extract-defaults/compare/v1.29.0...v1.30.0) (2021-04-30) | ||
@@ -2,0 +15,0 @@ |
@@ -193,3 +193,11 @@ const marked = require('marked') | ||
if (isMultiSelect) { | ||
defaultValue = value ? value.split(',') : [] | ||
let values = [] | ||
if (Array.isArray(value)) { | ||
values = value | ||
} else if (typeof value === 'string') { | ||
values = value.split(',') | ||
} | ||
defaultValue = values | ||
} | ||
@@ -196,0 +204,0 @@ |
{ | ||
"name": "@wmfs/cardscript-extract-defaults", | ||
"description": "Extracts sensible defaults from some Cardscript.", | ||
"version": "1.30.0", | ||
"version": "1.30.1", | ||
"author": "West Midlands Fire Service", | ||
@@ -17,6 +17,6 @@ "keywords": [ | ||
"chai": "4.3.4", | ||
"codecov": "3.8.1", | ||
"codecov": "3.8.2", | ||
"conventional-changelog-metahub": "4.0.1", | ||
"cz-conventional-changelog": "3.3.0", | ||
"mocha": "8.3.2", | ||
"mocha": "8.4.0", | ||
"nyc": "15.1.0", | ||
@@ -23,0 +23,0 @@ "semantic-release": "17.4.2", |
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
54278
479