@wmfs/cardscript-to-vuelidate 1.39.0 → 1.39.1
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 +7 -0
- package/lib/index.js +5 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.39.1](https://github.com/wmfs/cardscript-to-vuelidate/compare/v1.39.0...v1.39.1) (2022-08-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### 🐛 Bug Fixes
|
|
5
|
+
|
|
6
|
+
* ensure collection data is array before iterating over ([26dc5be](https://github.com/wmfs/cardscript-to-vuelidate/commit/26dc5be41ef3eedb297f3626e649de46718b20da))
|
|
7
|
+
|
|
1
8
|
# [1.39.0](https://github.com/wmfs/cardscript-to-vuelidate/compare/v1.38.0...v1.39.0) (2022-07-06)
|
|
2
9
|
|
|
3
10
|
|
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)
|
|
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