@kontur.candy/generator 4.278.0-efs-partial-load.29 → 4.278.0-efs-partial-load.31

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 +12 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -114106,6 +114106,18 @@ class PathUtils {
114106
114106
  throw new Error(`Unable to extract single index while match paths '${modelPathWithMask.toString()}' and '${modelPath.toString()}'`);
114107
114107
  }
114108
114108
 
114109
+ static extractPathWithInstance(pathWithMask, path) {
114110
+ const prefix = PathUtils.trimLastStarIfLastToken(pathWithMask);
114111
+
114112
+ if (!PathUtils.isPrefix(prefix, path)) {
114113
+ return undefined;
114114
+ }
114115
+
114116
+ const instance = PathUtils.extractInstance(pathWithMask, path);
114117
+ const pathWithInstance = PathUtils.join([prefix, instance]);
114118
+ return pathWithInstance;
114119
+ }
114120
+
114109
114121
  }
114110
114122
 
114111
114123
  /***/ }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontur.candy/generator",
3
- "version": "4.278.0-efs-partial-load.29",
3
+ "version": "4.278.0-efs-partial-load.31",
4
4
  "description": "Candy forms generator",
5
5
  "author": "SKBKontur Candy Team",
6
6
  "private": false,