@player-tools/xlr-sdk 0.4.2--canary.63.1238 → 0.4.2-next.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/dist/index.cjs.js +4 -1
- package/dist/index.esm.js +4 -1
- package/package.json +4 -4
- package/src/validator.ts +4 -1
package/dist/index.cjs.js
CHANGED
|
@@ -126,7 +126,10 @@ class XLRValidator {
|
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
128
|
} else if (xlrNode.type === "template") {
|
|
129
|
-
this.validateTemplate(rootNode, xlrNode);
|
|
129
|
+
const error = this.validateTemplate(rootNode, xlrNode);
|
|
130
|
+
if (error) {
|
|
131
|
+
validationIssues.push(error);
|
|
132
|
+
}
|
|
130
133
|
} else if (xlrNode.type === "or") {
|
|
131
134
|
for (const potentialType of xlrNode.or) {
|
|
132
135
|
const potentialErrors = this.validateType(rootNode, potentialType);
|
package/dist/index.esm.js
CHANGED
|
@@ -116,7 +116,10 @@ class XLRValidator {
|
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
118
|
} else if (xlrNode.type === "template") {
|
|
119
|
-
this.validateTemplate(rootNode, xlrNode);
|
|
119
|
+
const error = this.validateTemplate(rootNode, xlrNode);
|
|
120
|
+
if (error) {
|
|
121
|
+
validationIssues.push(error);
|
|
122
|
+
}
|
|
120
123
|
} else if (xlrNode.type === "or") {
|
|
121
124
|
for (const potentialType of xlrNode.or) {
|
|
122
125
|
const potentialErrors = this.validateType(rootNode, potentialType);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@player-tools/xlr-sdk",
|
|
3
|
-
"version": "0.4.2
|
|
3
|
+
"version": "0.4.2-next.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
"typescript": "4.8.4"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@player-tools/xlr": "0.4.2
|
|
13
|
-
"@player-tools/xlr-utils": "0.4.2
|
|
14
|
-
"@player-tools/xlr-converters": "0.4.2
|
|
12
|
+
"@player-tools/xlr": "0.4.2-next.0",
|
|
13
|
+
"@player-tools/xlr-utils": "0.4.2-next.0",
|
|
14
|
+
"@player-tools/xlr-converters": "0.4.2-next.0",
|
|
15
15
|
"jsonc-parser": "^2.3.1",
|
|
16
16
|
"@types/node": "^16.11.12",
|
|
17
17
|
"@types/fs-extra": "^9.0.13",
|
package/src/validator.ts
CHANGED
|
@@ -57,7 +57,10 @@ export class XLRValidator {
|
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
59
|
} else if (xlrNode.type === 'template') {
|
|
60
|
-
this.validateTemplate(rootNode, xlrNode);
|
|
60
|
+
const error = this.validateTemplate(rootNode, xlrNode);
|
|
61
|
+
if (error) {
|
|
62
|
+
validationIssues.push(error);
|
|
63
|
+
}
|
|
61
64
|
} else if (xlrNode.type === 'or') {
|
|
62
65
|
// eslint-disable-next-line no-restricted-syntax
|
|
63
66
|
for (const potentialType of xlrNode.or) {
|