@salesforce/lwc-adapters-uiapi 1.270.0 → 1.271.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.
Files changed (2) hide show
  1. package/dist/main.js +12 -10
  2. package/package.json +3 -3
package/dist/main.js CHANGED
@@ -13110,17 +13110,19 @@ function onResourceError(luvio, config, key, err) {
13110
13110
  function buildNetworkSnapshot$18(luvio, config, serverRequestCount = 0, options) {
13111
13111
  const { request, key, allTrackedFields, resourceParams } = prepareRequest$6(luvio, config);
13112
13112
  return luvio.dispatchResourceRequest(request, options).then((response) => {
13113
+ // W-11964675 - Condition to dedupe a very specific set of requests for
13114
+ // Komaci - a batch record request with a single record followed by a single
13115
+ // record request. The fulfill logic sends the same network response, so
13116
+ // there is some TypeScript massaging to extract the RecordRepresentation
13117
+ //
13118
+ // W-14381091 - Ensure hoisting the response body happens prior to
13119
+ // calling `luvio.handleSuccessResponse`, since both arguments capture
13120
+ // the response.
13121
+ if (isSingleBatchRecordResponse(response.body)) {
13122
+ response.body = response.body.results[0]
13123
+ .result;
13124
+ }
13113
13125
  return luvio.handleSuccessResponse(() => {
13114
- // W-11964675 - Condition to dedupe a very specific set of requests for
13115
- // Komaci - a batch record request with a single record followed by a single
13116
- // record request. The fulfill logic sends the same network response, so
13117
- // there is some TypeScript massaging to extract the RecordRepresentation
13118
- if (isSingleBatchRecordResponse(response.body)) {
13119
- let recordResponse = response;
13120
- recordResponse.body = response.body.results[0]
13121
- .result;
13122
- return onResourceSuccess(luvio, config, key, allTrackedFields, recordResponse, serverRequestCount + 1);
13123
- }
13124
13126
  return onResourceSuccess(luvio, config, key, allTrackedFields, response, serverRequestCount + 1);
13125
13127
  }, () => {
13126
13128
  const cache = new StoreKeyMap();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lwc-adapters-uiapi",
3
- "version": "1.270.0",
3
+ "version": "1.271.0",
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.270.0"
34
+ "@salesforce/lds-adapters-uiapi": "^1.271.0"
35
35
  },
36
36
  "dependencies": {
37
37
  "@luvio/lwc-luvio": "0.154.6",
38
- "@salesforce/lds-default-luvio": "^1.270.0"
38
+ "@salesforce/lds-default-luvio": "^1.271.0"
39
39
  }
40
40
  }