@kontur.candy/generator 4.261.0-optional-nested-units.10 → 4.261.0-optional-nested-units.11
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 +11 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -112820,6 +112820,17 @@ class ModelPathImpl {
|
|
|
112820
112820
|
return this.tokens.some(x => x === PathTokens.current);
|
|
112821
112821
|
}
|
|
112822
112822
|
|
|
112823
|
+
getLastListPath() {
|
|
112824
|
+
if (!this.isContainIteration()) {
|
|
112825
|
+
throw new Error("Path must contain iteration");
|
|
112826
|
+
} // Проверка выше гарантирует, что будет PathTokens.each
|
|
112827
|
+
// @ts-ignore
|
|
112828
|
+
|
|
112829
|
+
|
|
112830
|
+
const lastIterationIndex = this.tokens.lastIndexOf(PathTokens.each);
|
|
112831
|
+
return this.tokens.slice(0, lastIterationIndex);
|
|
112832
|
+
}
|
|
112833
|
+
|
|
112823
112834
|
isAbsolute() {
|
|
112824
112835
|
return this.absolute;
|
|
112825
112836
|
}
|