@salesforce/lwc-adapters-uiapi 1.131.0-dev12 → 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.
Files changed (2) hide show
  1. package/dist/main.js +7 -1
  2. package/package.json +3 -3
package/dist/main.js CHANGED
@@ -12317,7 +12317,7 @@ function fulfill(existing, incoming) {
12317
12317
  const batchRequestWithSingleRequest = isSingleBatchRecordRequest(existingUrlParams) &&
12318
12318
  isSingleRecordRequest(urlParams) &&
12319
12319
  incomingUrlRecords[0] === existingUrlRecords[0];
12320
- if (!batchRequestWithSingleRequest) {
12320
+ if (!batchRequestWithSingleRequest || isRestrictedPathCondition(existingPath, path)) {
12321
12321
  return false;
12322
12322
  }
12323
12323
  }
@@ -12360,6 +12360,12 @@ function isSingleBatchRecordRequest(urlParams) {
12360
12360
  function isSingleRecordRequest(urlParams) {
12361
12361
  return hasOwnProperty.call(urlParams, 'recordId');
12362
12362
  }
12363
+ function isRestrictedPathCondition(existingPath, path) {
12364
+ // should not dedupe getRecordUi and getRecord as both of their representation is different
12365
+ // records call cannot digest response of getRecordUi
12366
+ return ((existingPath.includes('/record-ui') && path.includes('/records')) ||
12367
+ (existingPath.includes('/records') && path.includes('/record-ui')));
12368
+ }
12363
12369
 
12364
12370
  const createResourceRequest$14 = function getUiApiRecordsByRecordIdCreateResourceRequest(config) {
12365
12371
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lwc-adapters-uiapi",
3
- "version": "1.131.0-dev12",
3
+ "version": "1.131.0-dev13",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "UIAPI adapters with LWC bindings",
6
6
  "module": "dist/main.js",
@@ -31,10 +31,10 @@
31
31
  "clean": "rm -rf dist src/generated"
32
32
  },
33
33
  "devDependencies": {
34
- "@salesforce/lds-adapters-uiapi": "1.131.0-dev12"
34
+ "@salesforce/lds-adapters-uiapi": "1.131.0-dev13"
35
35
  },
36
36
  "dependencies": {
37
37
  "@luvio/lwc-luvio": "0.138.8-244.1",
38
- "@salesforce/lds-default-luvio": "1.131.0-dev12"
38
+ "@salesforce/lds-default-luvio": "1.131.0-dev13"
39
39
  }
40
40
  }