@kosdev-code/kos-ui-sdk 0.1.0-next.871 → 0.1.0-next.894

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.
@@ -1349,10 +1349,7 @@ function kosServiceRequest$1(params2) {
1349
1349
  handlerMethod: propertyKey,
1350
1350
  originalHandler
1351
1351
  };
1352
- const requestKey = `${params2.method?.toUpperCase() || "GET"}:${String(
1353
- params2.path
1354
- )}`;
1355
- target[ServiceRequestHandlers][requestKey] = metadata;
1352
+ target[ServiceRequestHandlers][propertyKey] = metadata;
1356
1353
  if (!params2.lifecycle) {
1357
1354
  const wrappedMethod = function(...args) {
1358
1355
  const lastArg = args[args.length - 1];
@@ -3532,9 +3529,10 @@ function applyFunctionalEnhancements(handler, enhancements) {
3532
3529
  enhancements.throttle
3533
3530
  );
3534
3531
  } else if (enhancements.buffer) {
3532
+ const inner = enhancedHandler;
3535
3533
  const adaptedHandler = async function(payloads) {
3536
3534
  for (const payload of payloads) {
3537
- await enhancedHandler.call(this, payload);
3535
+ await inner.call(this, payload);
3538
3536
  }
3539
3537
  };
3540
3538
  enhancedHandler = createBufferedHandler(
@@ -6632,7 +6630,7 @@ class ServiceRequestManager {
6632
6630
  if (metadata.transform) {
6633
6631
  transformedData = metadata.transform(response);
6634
6632
  }
6635
- if (metadata.mappings && metadata.mappings.length > 0) {
6633
+ if (metadata.mappings && metadata.mappings.length > 0 && !metadata.iterateOver) {
6636
6634
  transformedData = this.applyMappings(transformedData, metadata);
6637
6635
  }
6638
6636
  if (metadata.iterateOver) {
@@ -13536,4 +13534,4 @@ exports.uuid = uuid;
13536
13534
  exports.waitForAppToStart = waitForAppToStart;
13537
13535
  exports.waitForAppsToStart = waitForAppsToStart;
13538
13536
  exports.whenReady = whenReady;
13539
- //# sourceMappingURL=index-DsRhHHtS.cjs.map
13537
+ //# sourceMappingURL=index-DUoSahlA.cjs.map