@wmfs/cardscript-extract-defaults
Advanced tools
Comparing version 1.31.0 to 1.32.0
@@ -0,1 +1,15 @@ | ||
# [1.32.0](https://github.com/wmfs/cardscript-extract-defaults/compare/v1.31.0...v1.32.0) (2021-06-22) | ||
### ✨ Features | ||
* apply default values for markers in Input.Map ([f559be2](https://github.com/wmfs/cardscript-extract-defaults/commit/f559be2e99bda130d8d4e1bdc06a95cdc7100e43)) | ||
### 🛠 Builds | ||
* **deps-dev:** bump mocha from 8.4.0 to 9.0.0 ([b518a0d](https://github.com/wmfs/cardscript-extract-defaults/commit/b518a0dab4700ad5571bde4862b1511a90eec6ed)) | ||
* **deps-dev:** bump mocha from 9.0.0 to 9.0.1 ([69e688d](https://github.com/wmfs/cardscript-extract-defaults/commit/69e688d64203e10fad84aa46b9cd65adbfaf71f0)) | ||
* **deps-dev:** bump semantic-release from 17.4.3 to 17.4.4 ([07adbc4](https://github.com/wmfs/cardscript-extract-defaults/commit/07adbc4e59c4fe64759e8fe0871938bbef1c26fc)) | ||
# [1.31.0](https://github.com/wmfs/cardscript-extract-defaults/compare/v1.30.1...v1.31.0) (2021-05-19) | ||
@@ -2,0 +16,0 @@ |
@@ -155,2 +155,15 @@ const marked = require('marked') | ||
for (const [idx, m] of markers.entries()) { | ||
if (element.type === 'Input.Map') { | ||
const applyDefaultMapMarkerValue = (id, val) => { | ||
if (id !== undefined) { | ||
applyDefaultValue(defaultValues, val || 0, apiLookupPath, cardListPath, id) | ||
} | ||
} | ||
applyDefaultMapMarkerValue(m.latitude) | ||
applyDefaultMapMarkerValue(m.longitude) | ||
applyDefaultMapMarkerValue(m.x, 433938.00) | ||
applyDefaultMapMarkerValue(m.y, 288128.00) | ||
} | ||
const id_ = `MAP_PROMPT_${idx}` | ||
@@ -157,0 +170,0 @@ const defaultValue_ = { |
{ | ||
"name": "@wmfs/cardscript-extract-defaults", | ||
"description": "Extracts sensible defaults from some Cardscript.", | ||
"version": "1.31.0", | ||
"version": "1.32.0", | ||
"author": "West Midlands Fire Service", | ||
@@ -20,5 +20,5 @@ "keywords": [ | ||
"cz-conventional-changelog": "3.3.0", | ||
"mocha": "8.4.0", | ||
"mocha": "9.0.1", | ||
"nyc": "15.1.0", | ||
"semantic-release": "17.4.3", | ||
"semantic-release": "17.4.4", | ||
"standard": "16.0.3", | ||
@@ -25,0 +25,0 @@ "@semantic-release/changelog": "5.0.1", |
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
56023
490