Socket
Socket
Sign inDemoInstall

@wmfs/cardscript-extract-defaults

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wmfs/cardscript-extract-defaults - npm Package Compare versions

Comparing version 1.30.0 to 1.30.1

13

CHANGELOG.md

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

10

lib/index.js

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

6

package.json
{
"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",

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