@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.
- package/dist/index.js +11 -0
- 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
|
}
|