@salesforce/lds-worker-api 1.257.0 → 1.258.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.
|
@@ -1034,4 +1034,4 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1034
1034
|
}
|
|
1035
1035
|
|
|
1036
1036
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
1037
|
-
// version: 1.
|
|
1037
|
+
// version: 1.258.0-69570a3e6
|
|
@@ -20,7 +20,7 @@ var SnapshotState$3;
|
|
|
20
20
|
SnapshotState["Stale"] = "Stale";
|
|
21
21
|
})(SnapshotState$3 || (SnapshotState$3 = {}));
|
|
22
22
|
|
|
23
|
-
const { create: create$b, entries: entries$5, freeze: freeze$6, keys: keys$c, values: values$5 } = Object;
|
|
23
|
+
const { create: create$b, entries: entries$5, freeze: freeze$6, keys: keys$c, values: values$5, assign: assign$a } = Object;
|
|
24
24
|
const { hasOwnProperty: hasOwnProperty$3 } = Object.prototype;
|
|
25
25
|
const { isArray: isArray$9 } = Array;
|
|
26
26
|
const { push: push$5, indexOf, slice: slice$2 } = Array.prototype;
|
|
@@ -974,12 +974,37 @@ class StringKeyInMemoryStore {
|
|
|
974
974
|
}
|
|
975
975
|
}
|
|
976
976
|
buildIngestionStagingStore() {
|
|
977
|
-
const
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
977
|
+
const stagingStore = new StringKeyInMemoryStore();
|
|
978
|
+
const upstreamStore = this;
|
|
979
|
+
const originalReadEntry = stagingStore.readEntry.bind(stagingStore);
|
|
980
|
+
const originalReadMetadata = stagingStore.readMetadata.bind(stagingStore);
|
|
981
|
+
const originalEvict = stagingStore.evict.bind(stagingStore);
|
|
982
|
+
// the staging store will read from the upstream store if it doesn't have the data
|
|
983
|
+
// this is because some adapters will only do partial ingests if they determine data
|
|
984
|
+
// is already in L1 prior to ingestion
|
|
985
|
+
stagingStore.readEntry = (key) => {
|
|
986
|
+
const entry = originalReadEntry(key);
|
|
987
|
+
if (!entry) {
|
|
988
|
+
return upstreamStore.readEntry(key);
|
|
989
|
+
}
|
|
990
|
+
return entry;
|
|
991
|
+
};
|
|
992
|
+
stagingStore.readMetadata = (key) => {
|
|
993
|
+
const metadata = originalReadMetadata(key);
|
|
994
|
+
if (!metadata) {
|
|
995
|
+
return upstreamStore.readMetadata(key);
|
|
996
|
+
}
|
|
997
|
+
return metadata;
|
|
998
|
+
};
|
|
999
|
+
stagingStore.evict = (key) => {
|
|
1000
|
+
originalEvict(key);
|
|
1001
|
+
upstreamStore.evict(key);
|
|
1002
|
+
};
|
|
1003
|
+
stagingStore.ttlOverrides = upstreamStore.ttlOverrides;
|
|
1004
|
+
stagingStore.defaultTTLOverride = upstreamStore.defaultTTLOverride;
|
|
1005
|
+
stagingStore.redirectKeys = upstreamStore.redirectKeys;
|
|
1006
|
+
stagingStore.reverseRedirectKeys = upstreamStore.reverseRedirectKeys;
|
|
1007
|
+
return stagingStore;
|
|
983
1008
|
}
|
|
984
1009
|
// private/protected methodss
|
|
985
1010
|
/**
|
|
@@ -3976,7 +4001,7 @@ function createResourceParamsImpl(config, configMetadata) {
|
|
|
3976
4001
|
}
|
|
3977
4002
|
return resourceParams;
|
|
3978
4003
|
}
|
|
3979
|
-
// engine version: 0.154.
|
|
4004
|
+
// engine version: 0.154.4-7ff4ac46
|
|
3980
4005
|
|
|
3981
4006
|
/**
|
|
3982
4007
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -4104,7 +4129,7 @@ function withDefaultLuvio(callback) {
|
|
|
4104
4129
|
}
|
|
4105
4130
|
callbacks.push(callback);
|
|
4106
4131
|
}
|
|
4107
|
-
// version: 1.
|
|
4132
|
+
// version: 1.258.0-69570a3e6
|
|
4108
4133
|
|
|
4109
4134
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4110
4135
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15612,7 +15637,7 @@ function gql(literals, ...subs) {
|
|
|
15612
15637
|
}
|
|
15613
15638
|
return superResult;
|
|
15614
15639
|
}
|
|
15615
|
-
// version: 1.
|
|
15640
|
+
// version: 1.258.0-69570a3e6
|
|
15616
15641
|
|
|
15617
15642
|
function unwrap(data) {
|
|
15618
15643
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16537,7 +16562,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
|
|
|
16537
16562
|
const { apiFamily, name } = metadata;
|
|
16538
16563
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16539
16564
|
}
|
|
16540
|
-
// version: 1.
|
|
16565
|
+
// version: 1.258.0-69570a3e6
|
|
16541
16566
|
|
|
16542
16567
|
/**
|
|
16543
16568
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -16636,7 +16661,7 @@ var TypeCheckShapes;
|
|
|
16636
16661
|
TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
|
|
16637
16662
|
TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
|
|
16638
16663
|
})(TypeCheckShapes || (TypeCheckShapes = {}));
|
|
16639
|
-
// engine version: 0.154.
|
|
16664
|
+
// engine version: 0.154.4-7ff4ac46
|
|
16640
16665
|
|
|
16641
16666
|
const { keys: ObjectKeys$3, create: ObjectCreate$3 } = Object;
|
|
16642
16667
|
|
|
@@ -42950,7 +42975,7 @@ withDefaultLuvio((luvio) => {
|
|
|
42950
42975
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory$1));
|
|
42951
42976
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyQuickActionDefaultsUpdateAvailable', notifyUpdateAvailableFactory));
|
|
42952
42977
|
});
|
|
42953
|
-
// version: 1.
|
|
42978
|
+
// version: 1.258.0-c09652442
|
|
42954
42979
|
|
|
42955
42980
|
var ldsIdempotencyWriteDisabled = {
|
|
42956
42981
|
isOpen: function (e) {
|
|
@@ -43861,21 +43886,27 @@ function flushInMemoryStoreValuesToDurableStore(store, durableStore, durableStor
|
|
|
43861
43886
|
const durableRecords = create$6(null);
|
|
43862
43887
|
const refreshedDurableRecords = create$6(null);
|
|
43863
43888
|
const evictedRecords = create$6(null);
|
|
43864
|
-
const {
|
|
43889
|
+
const { visitedIds, refreshedIds } = store.fallbackStringKeyInMemoryStore;
|
|
43865
43890
|
// TODO: W-8909393 Once metadata is stored in its own segment we need to
|
|
43866
43891
|
// call setEntries for the visitedIds on default segment and call setEntries
|
|
43867
43892
|
// on the metadata segment for the refreshedIds
|
|
43868
43893
|
const keys$1 = keys$7({ ...visitedIds, ...refreshedIds });
|
|
43869
43894
|
for (let i = 0, len = keys$1.length; i < len; i += 1) {
|
|
43870
43895
|
const key = keys$1[i];
|
|
43871
|
-
const
|
|
43896
|
+
const canonicalKey = store.getCanonicalRecordId(key);
|
|
43897
|
+
// this record has been redirected, evict the original
|
|
43898
|
+
if (canonicalKey !== key) {
|
|
43899
|
+
evictedRecords[key] = true;
|
|
43900
|
+
continue;
|
|
43901
|
+
}
|
|
43902
|
+
const record = store.readEntry(key);
|
|
43872
43903
|
const wasVisited = visitedIds[key] !== undefined;
|
|
43873
43904
|
// this record has been evicted, evict from DS
|
|
43874
43905
|
if (wasVisited && record === undefined) {
|
|
43875
43906
|
evictedRecords[key] = true;
|
|
43876
43907
|
continue;
|
|
43877
43908
|
}
|
|
43878
|
-
const metadata =
|
|
43909
|
+
const metadata = store.readMetadata(key);
|
|
43879
43910
|
const entries = wasVisited === true || enableDurableMetadataRefresh === false
|
|
43880
43911
|
? durableRecords
|
|
43881
43912
|
: refreshedDurableRecords;
|
|
@@ -44306,17 +44337,17 @@ function makeDurable(environment, { durableStore, instrumentation, useRevivingSt
|
|
|
44306
44337
|
};
|
|
44307
44338
|
const getNode = function (key) {
|
|
44308
44339
|
validateNotDisposed();
|
|
44309
|
-
if (stagingStore
|
|
44310
|
-
|
|
44340
|
+
if (stagingStore !== null) {
|
|
44341
|
+
return environment.getNode(key, stagingStore);
|
|
44311
44342
|
}
|
|
44312
|
-
return environment.getNode(key
|
|
44343
|
+
return environment.getNode(key);
|
|
44313
44344
|
};
|
|
44314
44345
|
const wrapNormalizedGraphNode = function (normalized, key) {
|
|
44315
44346
|
validateNotDisposed();
|
|
44316
|
-
if (stagingStore
|
|
44317
|
-
|
|
44347
|
+
if (stagingStore !== null) {
|
|
44348
|
+
return environment.wrapNormalizedGraphNode(normalized, key, stagingStore);
|
|
44318
44349
|
}
|
|
44319
|
-
return environment.wrapNormalizedGraphNode(normalized, key
|
|
44350
|
+
return environment.wrapNormalizedGraphNode(normalized, key);
|
|
44320
44351
|
};
|
|
44321
44352
|
const rebuildSnapshot = function (snapshot, onRebuild) {
|
|
44322
44353
|
validateNotDisposed();
|
|
@@ -49208,6 +49239,10 @@ class AbstractResourceRequestActionHandler {
|
|
|
49208
49239
|
...updatedAction.data.body.fields,
|
|
49209
49240
|
LastModifiedDate: new Date(updatedAction.timestamp).toISOString(),
|
|
49210
49241
|
};
|
|
49242
|
+
if (this.hasIdempotencySupport() &&
|
|
49243
|
+
updatedAction.data.headers[HTTP_HEADER_IDEMPOTENCY_KEY]) {
|
|
49244
|
+
updatedAction.data.headers[HTTP_HEADER_IDEMPOTENCY_KEY] = uuidv4();
|
|
49245
|
+
}
|
|
49211
49246
|
shouldRetry = true;
|
|
49212
49247
|
actionDataChanged = true;
|
|
49213
49248
|
}
|
|
@@ -57684,7 +57719,10 @@ function isErrorResponse(response) {
|
|
|
57684
57719
|
* @returns the merged record
|
|
57685
57720
|
*/
|
|
57686
57721
|
function mergeAggregateUiResponse(response, mergeFunc) {
|
|
57687
|
-
|
|
57722
|
+
if (response.ok === false) {
|
|
57723
|
+
return response;
|
|
57724
|
+
}
|
|
57725
|
+
const body = response.body;
|
|
57688
57726
|
try {
|
|
57689
57727
|
if (body === null ||
|
|
57690
57728
|
body === undefined ||
|
|
@@ -60586,7 +60624,7 @@ register$1({
|
|
|
60586
60624
|
id: '@salesforce/lds-network-adapter',
|
|
60587
60625
|
instrument: instrument$2,
|
|
60588
60626
|
});
|
|
60589
|
-
// version: 1.
|
|
60627
|
+
// version: 1.258.0-69570a3e6
|
|
60590
60628
|
|
|
60591
60629
|
const { create: create$3, keys: keys$3 } = Object;
|
|
60592
60630
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -78915,7 +78953,7 @@ register$1({
|
|
|
78915
78953
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
78916
78954
|
instrument: instrument$1,
|
|
78917
78955
|
});
|
|
78918
|
-
// version: 1.
|
|
78956
|
+
// version: 1.258.0-c09652442
|
|
78919
78957
|
|
|
78920
78958
|
// On core the unstable adapters are re-exported with different names,
|
|
78921
78959
|
// we want to match them here.
|
|
@@ -81166,7 +81204,7 @@ withDefaultLuvio((luvio) => {
|
|
|
81166
81204
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
81167
81205
|
graphQLImperative = ldsAdapter;
|
|
81168
81206
|
});
|
|
81169
|
-
// version: 1.
|
|
81207
|
+
// version: 1.258.0-c09652442
|
|
81170
81208
|
|
|
81171
81209
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
81172
81210
|
__proto__: null,
|
|
@@ -81864,7 +81902,7 @@ const callbacks$1 = [];
|
|
|
81864
81902
|
function register(r) {
|
|
81865
81903
|
callbacks$1.forEach((callback) => callback(r));
|
|
81866
81904
|
}
|
|
81867
|
-
// version: 1.
|
|
81905
|
+
// version: 1.258.0-69570a3e6
|
|
81868
81906
|
|
|
81869
81907
|
/**
|
|
81870
81908
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -86769,4 +86807,4 @@ const { luvio } = getRuntime();
|
|
|
86769
86807
|
setDefaultLuvio({ luvio });
|
|
86770
86808
|
|
|
86771
86809
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
86772
|
-
// version: 1.
|
|
86810
|
+
// version: 1.258.0-69570a3e6
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
SnapshotState["Stale"] = "Stale";
|
|
27
27
|
})(SnapshotState$3 || (SnapshotState$3 = {}));
|
|
28
28
|
|
|
29
|
-
const { create: create$b, entries: entries$5, freeze: freeze$6, keys: keys$c, values: values$5 } = Object;
|
|
29
|
+
const { create: create$b, entries: entries$5, freeze: freeze$6, keys: keys$c, values: values$5, assign: assign$a } = Object;
|
|
30
30
|
const { hasOwnProperty: hasOwnProperty$3 } = Object.prototype;
|
|
31
31
|
const { isArray: isArray$9 } = Array;
|
|
32
32
|
const { push: push$5, indexOf, slice: slice$2 } = Array.prototype;
|
|
@@ -980,12 +980,37 @@
|
|
|
980
980
|
}
|
|
981
981
|
}
|
|
982
982
|
buildIngestionStagingStore() {
|
|
983
|
-
const
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
983
|
+
const stagingStore = new StringKeyInMemoryStore();
|
|
984
|
+
const upstreamStore = this;
|
|
985
|
+
const originalReadEntry = stagingStore.readEntry.bind(stagingStore);
|
|
986
|
+
const originalReadMetadata = stagingStore.readMetadata.bind(stagingStore);
|
|
987
|
+
const originalEvict = stagingStore.evict.bind(stagingStore);
|
|
988
|
+
// the staging store will read from the upstream store if it doesn't have the data
|
|
989
|
+
// this is because some adapters will only do partial ingests if they determine data
|
|
990
|
+
// is already in L1 prior to ingestion
|
|
991
|
+
stagingStore.readEntry = (key) => {
|
|
992
|
+
const entry = originalReadEntry(key);
|
|
993
|
+
if (!entry) {
|
|
994
|
+
return upstreamStore.readEntry(key);
|
|
995
|
+
}
|
|
996
|
+
return entry;
|
|
997
|
+
};
|
|
998
|
+
stagingStore.readMetadata = (key) => {
|
|
999
|
+
const metadata = originalReadMetadata(key);
|
|
1000
|
+
if (!metadata) {
|
|
1001
|
+
return upstreamStore.readMetadata(key);
|
|
1002
|
+
}
|
|
1003
|
+
return metadata;
|
|
1004
|
+
};
|
|
1005
|
+
stagingStore.evict = (key) => {
|
|
1006
|
+
originalEvict(key);
|
|
1007
|
+
upstreamStore.evict(key);
|
|
1008
|
+
};
|
|
1009
|
+
stagingStore.ttlOverrides = upstreamStore.ttlOverrides;
|
|
1010
|
+
stagingStore.defaultTTLOverride = upstreamStore.defaultTTLOverride;
|
|
1011
|
+
stagingStore.redirectKeys = upstreamStore.redirectKeys;
|
|
1012
|
+
stagingStore.reverseRedirectKeys = upstreamStore.reverseRedirectKeys;
|
|
1013
|
+
return stagingStore;
|
|
989
1014
|
}
|
|
990
1015
|
// private/protected methodss
|
|
991
1016
|
/**
|
|
@@ -3982,7 +4007,7 @@
|
|
|
3982
4007
|
}
|
|
3983
4008
|
return resourceParams;
|
|
3984
4009
|
}
|
|
3985
|
-
// engine version: 0.154.
|
|
4010
|
+
// engine version: 0.154.4-7ff4ac46
|
|
3986
4011
|
|
|
3987
4012
|
/**
|
|
3988
4013
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -4110,7 +4135,7 @@
|
|
|
4110
4135
|
}
|
|
4111
4136
|
callbacks.push(callback);
|
|
4112
4137
|
}
|
|
4113
|
-
// version: 1.
|
|
4138
|
+
// version: 1.258.0-69570a3e6
|
|
4114
4139
|
|
|
4115
4140
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4116
4141
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15618,7 +15643,7 @@
|
|
|
15618
15643
|
}
|
|
15619
15644
|
return superResult;
|
|
15620
15645
|
}
|
|
15621
|
-
// version: 1.
|
|
15646
|
+
// version: 1.258.0-69570a3e6
|
|
15622
15647
|
|
|
15623
15648
|
function unwrap(data) {
|
|
15624
15649
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16543,7 +16568,7 @@
|
|
|
16543
16568
|
const { apiFamily, name } = metadata;
|
|
16544
16569
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16545
16570
|
}
|
|
16546
|
-
// version: 1.
|
|
16571
|
+
// version: 1.258.0-69570a3e6
|
|
16547
16572
|
|
|
16548
16573
|
/**
|
|
16549
16574
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -16642,7 +16667,7 @@
|
|
|
16642
16667
|
TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
|
|
16643
16668
|
TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
|
|
16644
16669
|
})(TypeCheckShapes || (TypeCheckShapes = {}));
|
|
16645
|
-
// engine version: 0.154.
|
|
16670
|
+
// engine version: 0.154.4-7ff4ac46
|
|
16646
16671
|
|
|
16647
16672
|
const { keys: ObjectKeys$3, create: ObjectCreate$3 } = Object;
|
|
16648
16673
|
|
|
@@ -42956,7 +42981,7 @@
|
|
|
42956
42981
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory$1));
|
|
42957
42982
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyQuickActionDefaultsUpdateAvailable', notifyUpdateAvailableFactory));
|
|
42958
42983
|
});
|
|
42959
|
-
// version: 1.
|
|
42984
|
+
// version: 1.258.0-c09652442
|
|
42960
42985
|
|
|
42961
42986
|
var ldsIdempotencyWriteDisabled = {
|
|
42962
42987
|
isOpen: function (e) {
|
|
@@ -43867,21 +43892,27 @@
|
|
|
43867
43892
|
const durableRecords = create$6(null);
|
|
43868
43893
|
const refreshedDurableRecords = create$6(null);
|
|
43869
43894
|
const evictedRecords = create$6(null);
|
|
43870
|
-
const {
|
|
43895
|
+
const { visitedIds, refreshedIds } = store.fallbackStringKeyInMemoryStore;
|
|
43871
43896
|
// TODO: W-8909393 Once metadata is stored in its own segment we need to
|
|
43872
43897
|
// call setEntries for the visitedIds on default segment and call setEntries
|
|
43873
43898
|
// on the metadata segment for the refreshedIds
|
|
43874
43899
|
const keys$1 = keys$7({ ...visitedIds, ...refreshedIds });
|
|
43875
43900
|
for (let i = 0, len = keys$1.length; i < len; i += 1) {
|
|
43876
43901
|
const key = keys$1[i];
|
|
43877
|
-
const
|
|
43902
|
+
const canonicalKey = store.getCanonicalRecordId(key);
|
|
43903
|
+
// this record has been redirected, evict the original
|
|
43904
|
+
if (canonicalKey !== key) {
|
|
43905
|
+
evictedRecords[key] = true;
|
|
43906
|
+
continue;
|
|
43907
|
+
}
|
|
43908
|
+
const record = store.readEntry(key);
|
|
43878
43909
|
const wasVisited = visitedIds[key] !== undefined;
|
|
43879
43910
|
// this record has been evicted, evict from DS
|
|
43880
43911
|
if (wasVisited && record === undefined) {
|
|
43881
43912
|
evictedRecords[key] = true;
|
|
43882
43913
|
continue;
|
|
43883
43914
|
}
|
|
43884
|
-
const metadata =
|
|
43915
|
+
const metadata = store.readMetadata(key);
|
|
43885
43916
|
const entries = wasVisited === true || enableDurableMetadataRefresh === false
|
|
43886
43917
|
? durableRecords
|
|
43887
43918
|
: refreshedDurableRecords;
|
|
@@ -44312,17 +44343,17 @@
|
|
|
44312
44343
|
};
|
|
44313
44344
|
const getNode = function (key) {
|
|
44314
44345
|
validateNotDisposed();
|
|
44315
|
-
if (stagingStore
|
|
44316
|
-
|
|
44346
|
+
if (stagingStore !== null) {
|
|
44347
|
+
return environment.getNode(key, stagingStore);
|
|
44317
44348
|
}
|
|
44318
|
-
return environment.getNode(key
|
|
44349
|
+
return environment.getNode(key);
|
|
44319
44350
|
};
|
|
44320
44351
|
const wrapNormalizedGraphNode = function (normalized, key) {
|
|
44321
44352
|
validateNotDisposed();
|
|
44322
|
-
if (stagingStore
|
|
44323
|
-
|
|
44353
|
+
if (stagingStore !== null) {
|
|
44354
|
+
return environment.wrapNormalizedGraphNode(normalized, key, stagingStore);
|
|
44324
44355
|
}
|
|
44325
|
-
return environment.wrapNormalizedGraphNode(normalized, key
|
|
44356
|
+
return environment.wrapNormalizedGraphNode(normalized, key);
|
|
44326
44357
|
};
|
|
44327
44358
|
const rebuildSnapshot = function (snapshot, onRebuild) {
|
|
44328
44359
|
validateNotDisposed();
|
|
@@ -49214,6 +49245,10 @@
|
|
|
49214
49245
|
...updatedAction.data.body.fields,
|
|
49215
49246
|
LastModifiedDate: new Date(updatedAction.timestamp).toISOString(),
|
|
49216
49247
|
};
|
|
49248
|
+
if (this.hasIdempotencySupport() &&
|
|
49249
|
+
updatedAction.data.headers[HTTP_HEADER_IDEMPOTENCY_KEY]) {
|
|
49250
|
+
updatedAction.data.headers[HTTP_HEADER_IDEMPOTENCY_KEY] = uuidv4();
|
|
49251
|
+
}
|
|
49217
49252
|
shouldRetry = true;
|
|
49218
49253
|
actionDataChanged = true;
|
|
49219
49254
|
}
|
|
@@ -57690,7 +57725,10 @@
|
|
|
57690
57725
|
* @returns the merged record
|
|
57691
57726
|
*/
|
|
57692
57727
|
function mergeAggregateUiResponse(response, mergeFunc) {
|
|
57693
|
-
|
|
57728
|
+
if (response.ok === false) {
|
|
57729
|
+
return response;
|
|
57730
|
+
}
|
|
57731
|
+
const body = response.body;
|
|
57694
57732
|
try {
|
|
57695
57733
|
if (body === null ||
|
|
57696
57734
|
body === undefined ||
|
|
@@ -60592,7 +60630,7 @@
|
|
|
60592
60630
|
id: '@salesforce/lds-network-adapter',
|
|
60593
60631
|
instrument: instrument$2,
|
|
60594
60632
|
});
|
|
60595
|
-
// version: 1.
|
|
60633
|
+
// version: 1.258.0-69570a3e6
|
|
60596
60634
|
|
|
60597
60635
|
const { create: create$3, keys: keys$3 } = Object;
|
|
60598
60636
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -78921,7 +78959,7 @@
|
|
|
78921
78959
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
78922
78960
|
instrument: instrument$1,
|
|
78923
78961
|
});
|
|
78924
|
-
// version: 1.
|
|
78962
|
+
// version: 1.258.0-c09652442
|
|
78925
78963
|
|
|
78926
78964
|
// On core the unstable adapters are re-exported with different names,
|
|
78927
78965
|
// we want to match them here.
|
|
@@ -81172,7 +81210,7 @@
|
|
|
81172
81210
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
81173
81211
|
graphQLImperative = ldsAdapter;
|
|
81174
81212
|
});
|
|
81175
|
-
// version: 1.
|
|
81213
|
+
// version: 1.258.0-c09652442
|
|
81176
81214
|
|
|
81177
81215
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
81178
81216
|
__proto__: null,
|
|
@@ -81870,7 +81908,7 @@
|
|
|
81870
81908
|
function register(r) {
|
|
81871
81909
|
callbacks$1.forEach((callback) => callback(r));
|
|
81872
81910
|
}
|
|
81873
|
-
// version: 1.
|
|
81911
|
+
// version: 1.258.0-69570a3e6
|
|
81874
81912
|
|
|
81875
81913
|
/**
|
|
81876
81914
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -86793,4 +86831,4 @@
|
|
|
86793
86831
|
exports.subscribeToAdapter = subscribeToAdapter;
|
|
86794
86832
|
|
|
86795
86833
|
}));
|
|
86796
|
-
// version: 1.
|
|
86834
|
+
// version: 1.258.0-69570a3e6
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-worker-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.258.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "dist/standalone/es/lds-worker-api.js",
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@oat-sa/rollup-plugin-wildcard-external": "^1.0.0",
|
|
38
|
-
"@salesforce/lds-adapters-graphql": "^1.
|
|
39
|
-
"@salesforce/lds-adapters-uiapi": "^1.
|
|
40
|
-
"@salesforce/lds-default-luvio": "^1.
|
|
41
|
-
"@salesforce/lds-drafts": "^1.
|
|
42
|
-
"@salesforce/lds-graphql-parser": "^1.
|
|
43
|
-
"@salesforce/lds-luvio-engine": "^1.
|
|
44
|
-
"@salesforce/lds-priming": "^1.
|
|
45
|
-
"@salesforce/lds-runtime-mobile": "^1.
|
|
46
|
-
"@salesforce/nimbus-plugin-lds": "^1.
|
|
38
|
+
"@salesforce/lds-adapters-graphql": "^1.258.0",
|
|
39
|
+
"@salesforce/lds-adapters-uiapi": "^1.258.0",
|
|
40
|
+
"@salesforce/lds-default-luvio": "^1.258.0",
|
|
41
|
+
"@salesforce/lds-drafts": "^1.258.0",
|
|
42
|
+
"@salesforce/lds-graphql-parser": "^1.258.0",
|
|
43
|
+
"@salesforce/lds-luvio-engine": "^1.258.0",
|
|
44
|
+
"@salesforce/lds-priming": "^1.258.0",
|
|
45
|
+
"@salesforce/lds-runtime-mobile": "^1.258.0",
|
|
46
|
+
"@salesforce/nimbus-plugin-lds": "^1.258.0",
|
|
47
47
|
"ajv": "^8.11.0",
|
|
48
48
|
"glob": "^7.1.5",
|
|
49
49
|
"nimbus-types": "^2.0.0-alpha1",
|