@wmfs/cardscript-to-vuelidate 1.37.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 +21 -0
- package/lib/index.js +5 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
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
|
+
|
|
8
|
+
# [1.39.0](https://github.com/wmfs/cardscript-to-vuelidate/compare/v1.38.0...v1.39.0) (2022-07-06)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### 🛠 Builds
|
|
12
|
+
|
|
13
|
+
* **deps:** update dependency [@wmfs](https://github.com/wmfs)/cardscript-schema to v1.32.0 ([994a6da](https://github.com/wmfs/cardscript-to-vuelidate/commit/994a6da86b6b28310eaff2337cec1dc347b5da11))
|
|
14
|
+
|
|
15
|
+
# [1.38.0](https://github.com/wmfs/cardscript-to-vuelidate/compare/v1.37.0...v1.38.0) (2022-07-06)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### 🛠 Builds
|
|
19
|
+
|
|
20
|
+
* **deps:** update dependency [@wmfs](https://github.com/wmfs)/json-to-vuelidate to v1.26.0 ([d33534c](https://github.com/wmfs/cardscript-to-vuelidate/commit/d33534c4ef783c1f7732f5d2f848c2c2c25e50cc))
|
|
21
|
+
|
|
1
22
|
# [1.37.0](https://github.com/wmfs/cardscript-to-vuelidate/compare/v1.36.0...v1.37.0) (2022-06-16)
|
|
2
23
|
|
|
3
24
|
|
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
|
@@ -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.
|
|
4
|
+
"version": "1.39.1",
|
|
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.
|
|
13
|
-
"@wmfs/cardscript-schema": "1.
|
|
12
|
+
"@wmfs/json-to-vuelidate": "1.26.0",
|
|
13
|
+
"@wmfs/cardscript-schema": "1.32.0",
|
|
14
14
|
"dottie": "2.0.2"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|