@kontur.candy/generator 5.22.1 → 5.22.2
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.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -59190,7 +59190,8 @@ class AbsoluteModelFieldPath {
|
|
|
59190
59190
|
toLegacyPath() {
|
|
59191
59191
|
const isLastTokenAnInstance = _ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.isInstanceTokenOrInstancesSpec(_IterableUtils__WEBPACK_IMPORTED_MODULE_3__.IterUtils.last(this.path.getPathParts()));
|
|
59192
59192
|
const slashIfRequired = isLastTokenAnInstance ? "/" : "";
|
|
59193
|
-
|
|
59193
|
+
const dotIfRequired = (0,_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.isNotNullOrEmpty)(this.field) ? "." : "";
|
|
59194
|
+
return `${this.path.toLegacyPath()}${slashIfRequired}${dotIfRequired}${this.field}`;
|
|
59194
59195
|
}
|
|
59195
59196
|
}
|
|
59196
59197
|
AbsoluteModelFieldPath.extraFieldNames = ["\\$errorCount", "\\$warningCount"];
|