@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.
Files changed (2) hide show
  1. package/dist/index.js +2 -1
  2. 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
- return `${this.path.toLegacyPath()}${slashIfRequired}.${this.field}`;
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"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontur.candy/generator",
3
- "version": "5.22.1",
3
+ "version": "5.22.2",
4
4
  "description": "Candy forms generator",
5
5
  "author": "SKBKontur Candy Team",
6
6
  "private": false,