@salesforce/lds-worker-api 1.340.0 → 1.342.0
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.
|
@@ -449,7 +449,16 @@ function invokeAdapterWithMetadata(adapterId, config, metadata, onResponse, nati
|
|
|
449
449
|
return;
|
|
450
450
|
}
|
|
451
451
|
if (adapterId === 'deleteRecord') {
|
|
452
|
-
|
|
452
|
+
draftManager.stopQueueWhileRunning(() => {
|
|
453
|
+
return new Promise((resolve) => {
|
|
454
|
+
const onResponseWrapper = (response) => {
|
|
455
|
+
resolve(response);
|
|
456
|
+
};
|
|
457
|
+
invokeAdapterWithMetadataDeleteRecord(adapter, config, metadata, onResponseWrapper, nativeAdapterRequestContext);
|
|
458
|
+
}).then((callbackValue) => {
|
|
459
|
+
onResponse(callbackValue);
|
|
460
|
+
});
|
|
461
|
+
});
|
|
453
462
|
}
|
|
454
463
|
else {
|
|
455
464
|
draftManager.stopQueueWhileRunning(() => {
|
|
@@ -1119,4 +1128,4 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1119
1128
|
}
|
|
1120
1129
|
|
|
1121
1130
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
1122
|
-
// version: 1.
|
|
1131
|
+
// version: 1.342.0-651bed9637
|