@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.
- package/dist/ldsAdapterUtils.js +3 -2
- package/package.json +1 -1
package/dist/ldsAdapterUtils.js
CHANGED
|
@@ -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,
|
|
267
|
+
const normalizedRequestContext = bindObserverToAdapterRequestContext(requestContext);
|
|
268
|
+
const adapterResult = adapter(adapterConfig, normalizedRequestContext);
|
|
268
269
|
if (isPromise(adapterResult)) {
|
|
269
270
|
adapterResult
|
|
270
271
|
.then((snapshot) => {
|