@salesforce/lds-ads-bridge 1.228.1 → 1.229.0-dev2

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.
@@ -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.228.1-4e6356f71
477
+ // version: 1.229.0-dev2-e9832aaff
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
@@ -375,4 +375,4 @@ function withAdsBridge(callback) {
375
375
  }
376
376
 
377
377
  export { instrument, withAdsBridge };
378
- // version: 1.228.1-4e6356f71
378
+ // version: 1.229.0-dev2-e9832aaff
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-ads-bridge",
3
- "version": "1.228.1",
3
+ "version": "1.229.0-dev2",
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": "*",
33
- "@salesforce/lds-uiapi-record-utils": "*"
32
+ "@salesforce/lds-adapters-uiapi": "1.229.0-dev2",
33
+ "@salesforce/lds-uiapi-record-utils": "1.229.0-dev2"
34
34
  }
35
35
  }