@salesforce/lds-ads-bridge 1.230.0 → 1.231.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.
- package/dist/ads-bridge-perf.js +8 -2
- package/dist/adsBridge.js +1 -1
- package/package.json +1 -1
package/dist/ads-bridge-perf.js
CHANGED
|
@@ -474,7 +474,7 @@ const callbacks$1 = [];
|
|
|
474
474
|
function register(r) {
|
|
475
475
|
callbacks$1.forEach((callback) => callback(r));
|
|
476
476
|
}
|
|
477
|
-
// version: 1.
|
|
477
|
+
// version: 1.231.0-c7012112a
|
|
478
478
|
|
|
479
479
|
/**
|
|
480
480
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -8919,7 +8919,7 @@ function fulfill(existing, incoming) {
|
|
|
8919
8919
|
const batchRequestWithSingleRequest = isSingleBatchRecordRequest(existingUrlParams) &&
|
|
8920
8920
|
isSingleRecordRequest(urlParams) &&
|
|
8921
8921
|
incomingUrlRecords[0] === existingUrlRecords[0];
|
|
8922
|
-
if (!batchRequestWithSingleRequest) {
|
|
8922
|
+
if (!batchRequestWithSingleRequest || isRestrictedPathCondition(existingPath, path)) {
|
|
8923
8923
|
return false;
|
|
8924
8924
|
}
|
|
8925
8925
|
}
|
|
@@ -8962,6 +8962,12 @@ function isSingleBatchRecordRequest(urlParams) {
|
|
|
8962
8962
|
function isSingleRecordRequest(urlParams) {
|
|
8963
8963
|
return hasOwnProperty$1.call(urlParams, 'recordId');
|
|
8964
8964
|
}
|
|
8965
|
+
function isRestrictedPathCondition(existingPath, path) {
|
|
8966
|
+
// should not dedupe getRecordUi and getRecord as both of their representation is different
|
|
8967
|
+
// records call cannot digest response of getRecordUi
|
|
8968
|
+
return ((existingPath.includes('/record-ui') && path.includes('/records')) ||
|
|
8969
|
+
(existingPath.includes('/records') && path.includes('/record-ui')));
|
|
8970
|
+
}
|
|
8965
8971
|
|
|
8966
8972
|
const createResourceRequest$16 = function getUiApiRecordsByRecordIdCreateResourceRequest(config) {
|
|
8967
8973
|
return {
|
package/dist/adsBridge.js
CHANGED