@ibiz-template/model-helper 0.7.41-alpha.141 → 0.7.41-alpha.142

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.esm.js CHANGED
@@ -27318,6 +27318,9 @@ var ModelTransformer = class _ModelTransformer {
27318
27318
  * @memberof ModelTransformer
27319
27319
  */
27320
27320
  registerHandler(pathPattern, handler) {
27321
+ if (!pathPattern.startsWith("PSSYSAPPS")) {
27322
+ pathPattern = "PSSYSAPPS/".concat(ibiz.__TEMPAPPID__, "/").concat(pathPattern);
27323
+ }
27321
27324
  if (!this.validatePattern(pathPattern)) {
27322
27325
  return;
27323
27326
  }
@@ -27362,9 +27365,13 @@ var ModelTransformer = class _ModelTransformer {
27362
27365
  dynaModelFilePath
27363
27366
  })
27364
27367
  );
27368
+ const pathSegments = dynaModelFilePath.split("/");
27369
+ pathSegments[1] = pathSegments[1].toLowerCase();
27370
+ const normalizedPath = pathSegments.join("/");
27365
27371
  const matchedHandlers = [];
27366
27372
  this.handlerMap.forEach((handlers, pattern) => {
27367
- if (this.pathMatcher.match(pattern, dynaModelFilePath)) {
27373
+ const isMatch = this.pathMatcher.match(pattern, dynaModelFilePath) || this.pathMatcher.match(pattern, normalizedPath);
27374
+ if (isMatch) {
27368
27375
  matchedHandlers.push(...handlers);
27369
27376
  }
27370
27377
  });