Socket
Socket
Sign inDemoInstall

@wmfs/cardscript-extract-defaults

Package Overview
Dependencies
2
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.40.0 to 1.41.0

7

CHANGELOG.md

@@ -0,1 +1,8 @@

# [1.41.0](https://github.com/wmfs/cardscript-extract-defaults/compare/v1.40.0...v1.41.0) (2024-05-02)
### Features
* **(pin 262) crr dd:** [sc-22966] Input.ChoiceSet to store selected choices when using dynamic choices ([#279](https://github.com/wmfs/cardscript-extract-defaults/issues/279)) ([14162fd](https://github.com/wmfs/cardscript-extract-defaults/commit/14162fd131f5ff14e139024f787fec81488c7475))
# [1.40.0](https://github.com/wmfs/cardscript-extract-defaults/compare/v1.39.0...v1.40.0) (2024-01-16)

@@ -2,0 +9,0 @@

9

lib/index.js

@@ -116,3 +116,2 @@ const marked = require('marked')

case 'Input.Time':
case 'Input.ChoiceSet':
case 'Input.Toggle':

@@ -123,2 +122,10 @@ if (defaultValue !== undefined) {

break
case 'Input.ChoiceSet':
if (typeof element.choicesPath === 'string' && element.choicesPath.length) {
applyDefaultValue(defaultValues, [], apiLookupPath, cardListPath, `${element.id}SelectedChoices`)
}
if (defaultValue !== undefined) {
applyDefaultValue(defaultValues, defaultValue, apiLookupPath, cardListPath, element.id)
}
break
case 'Input.Address':

@@ -125,0 +132,0 @@ applyDefaultValue(defaultValues, [], apiLookupPath, cardListPath, `${element.id}SearchResults`)

8

package.json
{
"name": "@wmfs/cardscript-extract-defaults",
"description": "Extracts sensible defaults from some Cardscript.",
"version": "1.40.0",
"version": "1.41.0",
"author": "West Midlands Fire Service",

@@ -17,8 +17,8 @@ "keywords": [

"chai": "4.4.1",
"codecov": "3.8.3",
"codecov": "3.8.2",
"conventional-changelog-metahub": "4.0.1",
"cz-conventional-changelog": "3.3.0",
"mocha": "10.2.0",
"mocha": "10.4.0",
"nyc": "15.1.0",
"semantic-release": "23.0.0",
"semantic-release": "23.0.8",
"standard": "17.1.0",

@@ -25,0 +25,0 @@ "@semantic-release/changelog": "6.0.3",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc