@salesforce/lds-ads-bridge 1.444.0 → 1.445.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 +9 -9
- package/dist/adsBridge.js +1 -1
- package/package.json +4 -4
package/dist/ads-bridge-perf.js
CHANGED
|
@@ -485,7 +485,7 @@ const callbacks$1 = [];
|
|
|
485
485
|
function register(r) {
|
|
486
486
|
callbacks$1.forEach((callback) => callback(r));
|
|
487
487
|
}
|
|
488
|
-
// version: 1.
|
|
488
|
+
// version: 1.445.0-117c9de71a
|
|
489
489
|
|
|
490
490
|
/**
|
|
491
491
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -6568,7 +6568,7 @@ function mergeAndRefreshLowerVersionRecord(luvio, incoming, existing, incomingTr
|
|
|
6568
6568
|
};
|
|
6569
6569
|
}
|
|
6570
6570
|
else {
|
|
6571
|
-
buildNetworkSnapshot$
|
|
6571
|
+
buildNetworkSnapshot$1f(luvio, {
|
|
6572
6572
|
recordId: incoming.id,
|
|
6573
6573
|
optionalFields: convertTrieToFields(incomingTrackedFieldsTrieRoot),
|
|
6574
6574
|
});
|
|
@@ -7021,7 +7021,7 @@ function buildRecordSelector(luvio, recordId, fields, optionalFields) {
|
|
|
7021
7021
|
function buildSnapshotRefresh$5(luvio, config) {
|
|
7022
7022
|
return {
|
|
7023
7023
|
config,
|
|
7024
|
-
resolve: () => buildNetworkSnapshot$
|
|
7024
|
+
resolve: () => buildNetworkSnapshot$1f(luvio, config),
|
|
7025
7025
|
};
|
|
7026
7026
|
}
|
|
7027
7027
|
function prepareRequest$7(luvio, config) {
|
|
@@ -7066,7 +7066,7 @@ function onResourceError(luvio, config, key, err) {
|
|
|
7066
7066
|
const errorSnapshot = ingestError$R(luvio, config, key, err);
|
|
7067
7067
|
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
7068
7068
|
}
|
|
7069
|
-
function buildNetworkSnapshot$
|
|
7069
|
+
function buildNetworkSnapshot$1f(luvio, config, serverRequestCount = 0, options) {
|
|
7070
7070
|
const { request, key, allTrackedFields, resourceParams } = prepareRequest$7(luvio, config);
|
|
7071
7071
|
return luvio.dispatchResourceRequest(request, options).then((response) => {
|
|
7072
7072
|
// W-11964675 - Condition to dedupe a very specific set of requests for
|
|
@@ -7452,7 +7452,7 @@ function onFetchResponseSuccess$S(luvio, config, resourceParams, response, serve
|
|
|
7452
7452
|
},
|
|
7453
7453
|
refresh: {
|
|
7454
7454
|
config,
|
|
7455
|
-
resolve: () => buildNetworkSnapshot$
|
|
7455
|
+
resolve: () => buildNetworkSnapshot$1e(luvio, config, serverRequestCount, snapshotRefreshOptions),
|
|
7456
7456
|
},
|
|
7457
7457
|
variables: {},
|
|
7458
7458
|
};
|
|
@@ -7462,11 +7462,11 @@ function onFetchResponseSuccess$S(luvio, config, resourceParams, response, serve
|
|
|
7462
7462
|
function onFetchResponseError$T(luvio, config, resourceParams, response) {
|
|
7463
7463
|
const snapshot = ingestError$Q(luvio, resourceParams, response, {
|
|
7464
7464
|
config,
|
|
7465
|
-
resolve: () => buildNetworkSnapshot$
|
|
7465
|
+
resolve: () => buildNetworkSnapshot$1e(luvio, config, 0, snapshotRefreshOptions),
|
|
7466
7466
|
});
|
|
7467
7467
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
7468
7468
|
}
|
|
7469
|
-
function buildNetworkSnapshot$
|
|
7469
|
+
function buildNetworkSnapshot$1e(luvio, config, serverRequestCount = 0, options) {
|
|
7470
7470
|
const resourceParams = createResourceParams$14(config);
|
|
7471
7471
|
const request = createResourceRequest$1f(resourceParams);
|
|
7472
7472
|
return luvio.dispatchResourceRequest(request, options).then((response) => {
|
|
@@ -7493,7 +7493,7 @@ function resolveConflict(luvio, map) {
|
|
|
7493
7493
|
recordId,
|
|
7494
7494
|
optionalFields: convertTrieToFields(map.conflicts[recordId].trackedFields),
|
|
7495
7495
|
};
|
|
7496
|
-
buildNetworkSnapshot$
|
|
7496
|
+
buildNetworkSnapshot$1f(luvio, config, map.serverRequestCount);
|
|
7497
7497
|
}
|
|
7498
7498
|
else {
|
|
7499
7499
|
const records = reduce.call(ids, (acc, id) => {
|
|
@@ -7505,7 +7505,7 @@ function resolveConflict(luvio, map) {
|
|
|
7505
7505
|
return acc;
|
|
7506
7506
|
}, []);
|
|
7507
7507
|
const config = { records };
|
|
7508
|
-
buildNetworkSnapshot$
|
|
7508
|
+
buildNetworkSnapshot$1e(luvio, config, map.serverRequestCount);
|
|
7509
7509
|
}
|
|
7510
7510
|
}
|
|
7511
7511
|
const ingest$2z = (input, path, luvio, store, timestamp) => {
|
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.445.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",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-ads-bridge"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@salesforce/lds-adapters-uiapi": "^1.
|
|
34
|
-
"@salesforce/lds-runtime-mobile": "^1.
|
|
35
|
-
"@salesforce/lds-uiapi-record-utils-mobile": "^1.
|
|
33
|
+
"@salesforce/lds-adapters-uiapi": "^1.445.0",
|
|
34
|
+
"@salesforce/lds-runtime-mobile": "^1.445.0",
|
|
35
|
+
"@salesforce/lds-uiapi-record-utils-mobile": "^1.445.0"
|
|
36
36
|
},
|
|
37
37
|
"volta": {
|
|
38
38
|
"extends": "../../package.json"
|