@salesforce/lds-utils-adapters 1.157.2 → 1.158.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.
@@ -260,11 +260,12 @@ function runAdapterWithReport(adapterName, adapter, adapterConfig, requestContex
260
260
  requestContextWithInstrumentationObserver.eventObservers = [];
261
261
  }
262
262
  requestContextWithInstrumentationObserver.eventObservers.push(metricsEventObserver);
263
+ return requestContextWithInstrumentationObserver;
263
264
  };
264
265
  adapterStart = Date.now();
265
266
  try {
266
- bindObserverToAdapterRequestContext(requestContext);
267
- const adapterResult = adapter(adapterConfig, requestContext);
267
+ const normalizedRequestContext = bindObserverToAdapterRequestContext(requestContext);
268
+ const adapterResult = adapter(adapterConfig, normalizedRequestContext);
268
269
  if (isPromise(adapterResult)) {
269
270
  adapterResult
270
271
  .then((snapshot) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-utils-adapters",
3
- "version": "1.157.2",
3
+ "version": "1.158.1",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "LDS Adapter Utilities",
6
6
  "main": "dist/ldsAdapterUtils.js",