@salesforce/lds-ads-bridge 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.
- package/dist/ads-bridge-perf.js +13 -11
- package/dist/adsBridge.js +1 -1
- package/package.json +3 -3
package/dist/ads-bridge-perf.js
CHANGED
|
@@ -478,7 +478,7 @@ const callbacks$1 = [];
|
|
|
478
478
|
function register(r) {
|
|
479
479
|
callbacks$1.forEach((callback) => callback(r));
|
|
480
480
|
}
|
|
481
|
-
// version: 1.
|
|
481
|
+
// version: 1.271.0-b5964d6f9
|
|
482
482
|
|
|
483
483
|
/**
|
|
484
484
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -8394,17 +8394,19 @@ function onResourceError(luvio, config, key, err) {
|
|
|
8394
8394
|
function buildNetworkSnapshot$18(luvio, config, serverRequestCount = 0, options) {
|
|
8395
8395
|
const { request, key, allTrackedFields, resourceParams } = prepareRequest$6(luvio, config);
|
|
8396
8396
|
return luvio.dispatchResourceRequest(request, options).then((response) => {
|
|
8397
|
+
// W-11964675 - Condition to dedupe a very specific set of requests for
|
|
8398
|
+
// Komaci - a batch record request with a single record followed by a single
|
|
8399
|
+
// record request. The fulfill logic sends the same network response, so
|
|
8400
|
+
// there is some TypeScript massaging to extract the RecordRepresentation
|
|
8401
|
+
//
|
|
8402
|
+
// W-14381091 - Ensure hoisting the response body happens prior to
|
|
8403
|
+
// calling `luvio.handleSuccessResponse`, since both arguments capture
|
|
8404
|
+
// the response.
|
|
8405
|
+
if (isSingleBatchRecordResponse(response.body)) {
|
|
8406
|
+
response.body = response.body.results[0]
|
|
8407
|
+
.result;
|
|
8408
|
+
}
|
|
8397
8409
|
return luvio.handleSuccessResponse(() => {
|
|
8398
|
-
// W-11964675 - Condition to dedupe a very specific set of requests for
|
|
8399
|
-
// Komaci - a batch record request with a single record followed by a single
|
|
8400
|
-
// record request. The fulfill logic sends the same network response, so
|
|
8401
|
-
// there is some TypeScript massaging to extract the RecordRepresentation
|
|
8402
|
-
if (isSingleBatchRecordResponse(response.body)) {
|
|
8403
|
-
let recordResponse = response;
|
|
8404
|
-
recordResponse.body = response.body.results[0]
|
|
8405
|
-
.result;
|
|
8406
|
-
return onResourceSuccess(luvio, config, key, allTrackedFields, recordResponse, serverRequestCount + 1);
|
|
8407
|
-
}
|
|
8408
8410
|
return onResourceSuccess(luvio, config, key, allTrackedFields, response, serverRequestCount + 1);
|
|
8409
8411
|
}, () => {
|
|
8410
8412
|
const cache = new StoreKeyMap();
|
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.
|
|
3
|
+
"version": "1.271.0",
|
|
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.
|
|
33
|
-
"@salesforce/lds-uiapi-record-utils": "^1.
|
|
32
|
+
"@salesforce/lds-adapters-uiapi": "^1.271.0",
|
|
33
|
+
"@salesforce/lds-uiapi-record-utils": "^1.271.0"
|
|
34
34
|
}
|
|
35
35
|
}
|