@wmfs/cardscript-to-vuelidate 1.38.0 → 1.40.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,26 @@
1
+ # [1.40.0](https://github.com/wmfs/cardscript-to-vuelidate/compare/v1.39.1...v1.40.0) (2022-09-08)
2
+
3
+
4
+ ### 🛠 Builds
5
+
6
+ * **deps-dev:** update dependency semantic-release to v19.0.4 ([f558209](https://github.com/wmfs/cardscript-to-vuelidate/commit/f55820915c2c1e31042d8bdac4e025f3fd67d2cf))
7
+ * **deps-dev:** update dependency semantic-release to v19.0.5 ([4526a63](https://github.com/wmfs/cardscript-to-vuelidate/commit/4526a63f75809334dba3d42bcb0acb34830cf735))
8
+ * **deps:** update dependency [@wmfs](https://github.com/wmfs)/json-to-vuelidate to v1.27.1 ([f25c505](https://github.com/wmfs/cardscript-to-vuelidate/commit/f25c505e004e6cdf8289caa58f6f61c81c558d21))
9
+
10
+ ## [1.39.1](https://github.com/wmfs/cardscript-to-vuelidate/compare/v1.39.0...v1.39.1) (2022-08-18)
11
+
12
+
13
+ ### 🐛 Bug Fixes
14
+
15
+ * ensure collection data is array before iterating over ([26dc5be](https://github.com/wmfs/cardscript-to-vuelidate/commit/26dc5be41ef3eedb297f3626e649de46718b20da))
16
+
17
+ # [1.39.0](https://github.com/wmfs/cardscript-to-vuelidate/compare/v1.38.0...v1.39.0) (2022-07-06)
18
+
19
+
20
+ ### 🛠 Builds
21
+
22
+ * **deps:** update dependency [@wmfs](https://github.com/wmfs)/cardscript-schema to v1.32.0 ([994a6da](https://github.com/wmfs/cardscript-to-vuelidate/commit/994a6da86b6b28310eaff2337cec1dc347b5da11))
23
+
1
24
  # [1.38.0](https://github.com/wmfs/cardscript-to-vuelidate/compare/v1.37.0...v1.38.0) (2022-07-06)
2
25
 
3
26
 
package/lib/index.js CHANGED
@@ -98,7 +98,11 @@ module.exports = function (cardscript) {
98
98
 
99
99
  for (const [type, path] of Object.entries(collections)) {
100
100
  if (element.type === type) {
101
- dottie.get(element, path).forEach(parseElement)
101
+ const dataSet = dottie.get(element, path)
102
+
103
+ if (Array.isArray(dataSet)) {
104
+ dataSet.forEach(parseElement)
105
+ }
102
106
  }
103
107
  }
104
108
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wmfs/cardscript-to-vuelidate",
3
3
  "description": "Takes in a Cardscript JSON object and converts it into a vuelidate object.",
4
- "version": "1.38.0",
4
+ "version": "1.40.0",
5
5
  "author": "West Midlands Fire Service",
6
6
  "keywords": [
7
7
  "tymly",
@@ -9,8 +9,8 @@
9
9
  ],
10
10
  "main": "./lib/index.js",
11
11
  "dependencies": {
12
- "@wmfs/json-to-vuelidate": "1.26.0",
13
- "@wmfs/cardscript-schema": "1.31.0",
12
+ "@wmfs/json-to-vuelidate": "1.27.1",
13
+ "@wmfs/cardscript-schema": "1.32.0",
14
14
  "dottie": "2.0.2"
15
15
  },
16
16
  "devDependencies": {
@@ -20,7 +20,7 @@
20
20
  "cz-conventional-changelog": "3.3.0",
21
21
  "mocha": "10.0.0",
22
22
  "nyc": "15.1.0",
23
- "semantic-release": "19.0.3",
23
+ "semantic-release": "19.0.5",
24
24
  "standard": "17.0.0",
25
25
  "@semantic-release/changelog": "6.0.1",
26
26
  "@semantic-release/git": "10.0.1"