@salesforce/lds-ads-bridge 1.131.0-dev11 → 1.131.0-dev13
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 +3 -3
package/dist/ads-bridge-perf.js
CHANGED
|
@@ -368,7 +368,7 @@ const callbacks$1 = [];
|
|
|
368
368
|
function register(r) {
|
|
369
369
|
callbacks$1.forEach((callback) => callback(r));
|
|
370
370
|
}
|
|
371
|
-
// version: 1.131.0-
|
|
371
|
+
// version: 1.131.0-dev13-329f91e5c
|
|
372
372
|
|
|
373
373
|
/**
|
|
374
374
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -8711,7 +8711,7 @@ function fulfill(existing, incoming) {
|
|
|
8711
8711
|
const batchRequestWithSingleRequest = isSingleBatchRecordRequest(existingUrlParams) &&
|
|
8712
8712
|
isSingleRecordRequest(urlParams) &&
|
|
8713
8713
|
incomingUrlRecords[0] === existingUrlRecords[0];
|
|
8714
|
-
if (!batchRequestWithSingleRequest) {
|
|
8714
|
+
if (!batchRequestWithSingleRequest || isRestrictedPathCondition(existingPath, path)) {
|
|
8715
8715
|
return false;
|
|
8716
8716
|
}
|
|
8717
8717
|
}
|
|
@@ -8754,6 +8754,12 @@ function isSingleBatchRecordRequest(urlParams) {
|
|
|
8754
8754
|
function isSingleRecordRequest(urlParams) {
|
|
8755
8755
|
return hasOwnProperty$1.call(urlParams, 'recordId');
|
|
8756
8756
|
}
|
|
8757
|
+
function isRestrictedPathCondition(existingPath, path) {
|
|
8758
|
+
// should not dedupe getRecordUi and getRecord as both of their representation is different
|
|
8759
|
+
// records call cannot digest response of getRecordUi
|
|
8760
|
+
return ((existingPath.includes('/record-ui') && path.includes('/records')) ||
|
|
8761
|
+
(existingPath.includes('/records') && path.includes('/record-ui')));
|
|
8762
|
+
}
|
|
8757
8763
|
|
|
8758
8764
|
const createResourceRequest$14 = function getUiApiRecordsByRecordIdCreateResourceRequest(config) {
|
|
8759
8765
|
return {
|
package/dist/adsBridge.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-ads-bridge",
|
|
3
|
-
"version": "1.131.0-
|
|
3
|
+
"version": "1.131.0-dev13",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "Bridge to sync data between LDS and ADS",
|
|
6
6
|
"main": "dist/adsBridge.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-ads-bridge"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@salesforce/lds-adapters-uiapi": "1.131.0-
|
|
33
|
-
"@salesforce/lds-uiapi-record-utils": "1.131.0-
|
|
32
|
+
"@salesforce/lds-adapters-uiapi": "1.131.0-dev13",
|
|
33
|
+
"@salesforce/lds-uiapi-record-utils": "1.131.0-dev13"
|
|
34
34
|
}
|
|
35
35
|
}
|