@kontur.candy/generator 4.261.0-optional-nested-units.0 → 4.261.0-optional-nested-units.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.
Files changed (2) hide show
  1. package/dist/index.js +11 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -112815,6 +112815,17 @@ class ModelPathImpl {
112815
112815
  return this.tokens.some(x => x === PathTokens.current);
112816
112816
  }
112817
112817
 
112818
+ getLastListPath() {
112819
+ if (!this.isContainIteration()) {
112820
+ throw new Error("Path must contain iteration");
112821
+ } // Проверка выше гарантирует, что будет PathTokens.each
112822
+ // @ts-ignore
112823
+
112824
+
112825
+ const lastIterationIndex = this.tokens.lastIndexOf(PathTokens.each);
112826
+ return this.tokens.slice(0, lastIterationIndex);
112827
+ }
112828
+
112818
112829
  isAbsolute() {
112819
112830
  return this.absolute;
112820
112831
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontur.candy/generator",
3
- "version": "4.261.0-optional-nested-units.0",
3
+ "version": "4.261.0-optional-nested-units.1",
4
4
  "description": "Candy forms generator",
5
5
  "author": "SKBKontur Candy Team",
6
6
  "private": false,