@salesforce/lds-worker-api 1.266.0-dev20 → 1.266.0-dev22
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.
|
@@ -1048,4 +1048,4 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1048
1048
|
}
|
|
1049
1049
|
|
|
1050
1050
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
1051
|
-
// version: 1.266.0-
|
|
1051
|
+
// version: 1.266.0-dev22-06d4657e7
|
|
@@ -4165,7 +4165,7 @@ function withDefaultLuvio(callback) {
|
|
|
4165
4165
|
}
|
|
4166
4166
|
callbacks.push(callback);
|
|
4167
4167
|
}
|
|
4168
|
-
// version: 1.266.0-
|
|
4168
|
+
// version: 1.266.0-dev22-06d4657e7
|
|
4169
4169
|
|
|
4170
4170
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4171
4171
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15673,7 +15673,7 @@ function gql(literals, ...subs) {
|
|
|
15673
15673
|
}
|
|
15674
15674
|
return superResult;
|
|
15675
15675
|
}
|
|
15676
|
-
// version: 1.266.0-
|
|
15676
|
+
// version: 1.266.0-dev22-06d4657e7
|
|
15677
15677
|
|
|
15678
15678
|
function unwrap(data) {
|
|
15679
15679
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16598,7 +16598,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
|
|
|
16598
16598
|
const { apiFamily, name } = metadata;
|
|
16599
16599
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16600
16600
|
}
|
|
16601
|
-
// version: 1.266.0-
|
|
16601
|
+
// version: 1.266.0-dev22-06d4657e7
|
|
16602
16602
|
|
|
16603
16603
|
/**
|
|
16604
16604
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -17221,15 +17221,17 @@ function splitQualifiedFieldApiName(fieldApiName) {
|
|
|
17221
17221
|
/**
|
|
17222
17222
|
* Returns the field API name, qualified with an object name if possible.
|
|
17223
17223
|
* @param value The value from which to get the qualified field API name.
|
|
17224
|
+
* @param onlyQualifiedFieldNames - Whether or not this function should skip fieldApiName that do not include the delimiter '.'
|
|
17224
17225
|
* @return The qualified field API name.
|
|
17225
17226
|
*/
|
|
17226
|
-
function getFieldApiName$2(value) {
|
|
17227
|
+
function getFieldApiName$2(value, onlyQualifiedFieldNames = false) {
|
|
17227
17228
|
// Note: tightening validation logic changes behavior from userland getting
|
|
17228
17229
|
// a server-provided error to the adapter noop'ing. In 224 we decided to not
|
|
17229
|
-
// change the behavior.
|
|
17230
|
+
// change the behavior. In 250 we decided to add the 'onlyQualifiedFieldName' flag to tighten the logic
|
|
17231
|
+
// optionally to avoid issues with persisted invalid field names.
|
|
17230
17232
|
if (isString$2(value)) {
|
|
17231
17233
|
const trimmed = value.trim();
|
|
17232
|
-
if (trimmed.length > 0) {
|
|
17234
|
+
if (trimmed.length > 0 && (onlyQualifiedFieldNames ? trimmed.indexOf('.') > -1 : true)) {
|
|
17233
17235
|
return trimmed;
|
|
17234
17236
|
}
|
|
17235
17237
|
}
|
|
@@ -17242,15 +17244,19 @@ function getFieldApiName$2(value) {
|
|
|
17242
17244
|
/**
|
|
17243
17245
|
* Returns the field API name.
|
|
17244
17246
|
* @param value The value from which to get the field API name.
|
|
17247
|
+
* @param options Option bag. onlyQualifiedFieldNames is a boolean that allows this function to skip returning invalid FieldApiNames.
|
|
17245
17248
|
* @returns The field API name.
|
|
17246
17249
|
*/
|
|
17247
|
-
function getFieldApiNamesArray$2(value) {
|
|
17250
|
+
function getFieldApiNamesArray$2(value, options = { onlyQualifiedFieldNames: false }) {
|
|
17248
17251
|
const valueArray = isArray$7(value) ? value : [value];
|
|
17249
17252
|
const array = [];
|
|
17250
17253
|
for (let i = 0, len = valueArray.length; i < len; i += 1) {
|
|
17251
17254
|
const item = valueArray[i];
|
|
17252
|
-
const apiName = getFieldApiName$2(item);
|
|
17255
|
+
const apiName = getFieldApiName$2(item, options.onlyQualifiedFieldNames);
|
|
17253
17256
|
if (apiName === undefined) {
|
|
17257
|
+
if (options.onlyQualifiedFieldNames) {
|
|
17258
|
+
continue; // Just skips invalid field names rather than failing to return an array at all
|
|
17259
|
+
}
|
|
17254
17260
|
return undefined;
|
|
17255
17261
|
}
|
|
17256
17262
|
push$4.call(array, apiName);
|
|
@@ -43175,7 +43181,7 @@ withDefaultLuvio((luvio) => {
|
|
|
43175
43181
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory$1));
|
|
43176
43182
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyQuickActionDefaultsUpdateAvailable', notifyUpdateAvailableFactory));
|
|
43177
43183
|
});
|
|
43178
|
-
// version: 1.266.0-
|
|
43184
|
+
// version: 1.266.0-dev22-50eb098ff
|
|
43179
43185
|
|
|
43180
43186
|
var ldsIdempotencyWriteDisabled = {
|
|
43181
43187
|
isOpen: function (e) {
|
|
@@ -61134,7 +61140,7 @@ register$1({
|
|
|
61134
61140
|
id: '@salesforce/lds-network-adapter',
|
|
61135
61141
|
instrument: instrument$2,
|
|
61136
61142
|
});
|
|
61137
|
-
// version: 1.266.0-
|
|
61143
|
+
// version: 1.266.0-dev22-06d4657e7
|
|
61138
61144
|
|
|
61139
61145
|
const { create: create$3, keys: keys$3 } = Object;
|
|
61140
61146
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -79144,15 +79150,17 @@ function isFieldId$1(unknown) {
|
|
|
79144
79150
|
/**
|
|
79145
79151
|
* Returns the field API name, qualified with an object name if possible.
|
|
79146
79152
|
* @param value The value from which to get the qualified field API name.
|
|
79153
|
+
* @param onlyQualifiedFieldNames - Whether or not this function should skip fieldApiName that do not include the delimiter '.'
|
|
79147
79154
|
* @return The qualified field API name.
|
|
79148
79155
|
*/
|
|
79149
|
-
function getFieldApiName$1(value) {
|
|
79156
|
+
function getFieldApiName$1(value, onlyQualifiedFieldNames = false) {
|
|
79150
79157
|
// Note: tightening validation logic changes behavior from userland getting
|
|
79151
79158
|
// a server-provided error to the adapter noop'ing. In 224 we decided to not
|
|
79152
|
-
// change the behavior.
|
|
79159
|
+
// change the behavior. In 250 we decided to add the 'onlyQualifiedFieldName' flag to tighten the logic
|
|
79160
|
+
// optionally to avoid issues with persisted invalid field names.
|
|
79153
79161
|
if (isString$1(value)) {
|
|
79154
79162
|
const trimmed = value.trim();
|
|
79155
|
-
if (trimmed.length > 0) {
|
|
79163
|
+
if (trimmed.length > 0 && (onlyQualifiedFieldNames ? trimmed.indexOf('.') > -1 : true)) {
|
|
79156
79164
|
return trimmed;
|
|
79157
79165
|
}
|
|
79158
79166
|
}
|
|
@@ -79165,15 +79173,19 @@ function getFieldApiName$1(value) {
|
|
|
79165
79173
|
/**
|
|
79166
79174
|
* Returns the field API name.
|
|
79167
79175
|
* @param value The value from which to get the field API name.
|
|
79176
|
+
* @param options Option bag. onlyQualifiedFieldNames is a boolean that allows this function to skip returning invalid FieldApiNames.
|
|
79168
79177
|
* @returns The field API name.
|
|
79169
79178
|
*/
|
|
79170
|
-
function getFieldApiNamesArray$1(value) {
|
|
79179
|
+
function getFieldApiNamesArray$1(value, options = { onlyQualifiedFieldNames: false }) {
|
|
79171
79180
|
const valueArray = isArray$2(value) ? value : [value];
|
|
79172
79181
|
const array = [];
|
|
79173
79182
|
for (let i = 0, len = valueArray.length; i < len; i += 1) {
|
|
79174
79183
|
const item = valueArray[i];
|
|
79175
|
-
const apiName = getFieldApiName$1(item);
|
|
79184
|
+
const apiName = getFieldApiName$1(item, options.onlyQualifiedFieldNames);
|
|
79176
79185
|
if (apiName === undefined) {
|
|
79186
|
+
if (options.onlyQualifiedFieldNames) {
|
|
79187
|
+
continue; // Just skips invalid field names rather than failing to return an array at all
|
|
79188
|
+
}
|
|
79177
79189
|
return undefined;
|
|
79178
79190
|
}
|
|
79179
79191
|
push$1.call(array, apiName);
|
|
@@ -79529,7 +79541,7 @@ register$1({
|
|
|
79529
79541
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
79530
79542
|
instrument: instrument$1,
|
|
79531
79543
|
});
|
|
79532
|
-
// version: 1.266.0-
|
|
79544
|
+
// version: 1.266.0-dev22-50eb098ff
|
|
79533
79545
|
|
|
79534
79546
|
// On core the unstable adapters are re-exported with different names,
|
|
79535
79547
|
// we want to match them here.
|
|
@@ -81783,7 +81795,7 @@ withDefaultLuvio((luvio) => {
|
|
|
81783
81795
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
81784
81796
|
graphQLImperative = ldsAdapter;
|
|
81785
81797
|
});
|
|
81786
|
-
// version: 1.266.0-
|
|
81798
|
+
// version: 1.266.0-dev22-50eb098ff
|
|
81787
81799
|
|
|
81788
81800
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
81789
81801
|
__proto__: null,
|
|
@@ -82495,7 +82507,7 @@ const callbacks$1 = [];
|
|
|
82495
82507
|
function register(r) {
|
|
82496
82508
|
callbacks$1.forEach((callback) => callback(r));
|
|
82497
82509
|
}
|
|
82498
|
-
// version: 1.266.0-
|
|
82510
|
+
// version: 1.266.0-dev22-06d4657e7
|
|
82499
82511
|
|
|
82500
82512
|
/**
|
|
82501
82513
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -86705,15 +86717,17 @@ function isFieldId(unknown) {
|
|
|
86705
86717
|
/**
|
|
86706
86718
|
* Returns the field API name, qualified with an object name if possible.
|
|
86707
86719
|
* @param value The value from which to get the qualified field API name.
|
|
86720
|
+
* @param onlyQualifiedFieldNames - Whether or not this function should skip fieldApiName that do not include the delimiter '.'
|
|
86708
86721
|
* @return The qualified field API name.
|
|
86709
86722
|
*/
|
|
86710
|
-
function getFieldApiName(value) {
|
|
86723
|
+
function getFieldApiName(value, onlyQualifiedFieldNames = false) {
|
|
86711
86724
|
// Note: tightening validation logic changes behavior from userland getting
|
|
86712
86725
|
// a server-provided error to the adapter noop'ing. In 224 we decided to not
|
|
86713
|
-
// change the behavior.
|
|
86726
|
+
// change the behavior. In 250 we decided to add the 'onlyQualifiedFieldName' flag to tighten the logic
|
|
86727
|
+
// optionally to avoid issues with persisted invalid field names.
|
|
86714
86728
|
if (isString(value)) {
|
|
86715
86729
|
const trimmed = value.trim();
|
|
86716
|
-
if (trimmed.length > 0) {
|
|
86730
|
+
if (trimmed.length > 0 && (onlyQualifiedFieldNames ? trimmed.indexOf('.') > -1 : true)) {
|
|
86717
86731
|
return trimmed;
|
|
86718
86732
|
}
|
|
86719
86733
|
}
|
|
@@ -86726,15 +86740,19 @@ function getFieldApiName(value) {
|
|
|
86726
86740
|
/**
|
|
86727
86741
|
* Returns the field API name.
|
|
86728
86742
|
* @param value The value from which to get the field API name.
|
|
86743
|
+
* @param options Option bag. onlyQualifiedFieldNames is a boolean that allows this function to skip returning invalid FieldApiNames.
|
|
86729
86744
|
* @returns The field API name.
|
|
86730
86745
|
*/
|
|
86731
|
-
function getFieldApiNamesArray(value) {
|
|
86746
|
+
function getFieldApiNamesArray(value, options = { onlyQualifiedFieldNames: false }) {
|
|
86732
86747
|
const valueArray = isArray(value) ? value : [value];
|
|
86733
86748
|
const array = [];
|
|
86734
86749
|
for (let i = 0, len = valueArray.length; i < len; i += 1) {
|
|
86735
86750
|
const item = valueArray[i];
|
|
86736
|
-
const apiName = getFieldApiName(item);
|
|
86751
|
+
const apiName = getFieldApiName(item, options.onlyQualifiedFieldNames);
|
|
86737
86752
|
if (apiName === undefined) {
|
|
86753
|
+
if (options.onlyQualifiedFieldNames) {
|
|
86754
|
+
continue; // Just skips invalid field names rather than failing to return an array at all
|
|
86755
|
+
}
|
|
86738
86756
|
return undefined;
|
|
86739
86757
|
}
|
|
86740
86758
|
push.call(array, apiName);
|
|
@@ -87400,4 +87418,4 @@ const { luvio } = getRuntime();
|
|
|
87400
87418
|
setDefaultLuvio({ luvio });
|
|
87401
87419
|
|
|
87402
87420
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
87403
|
-
// version: 1.266.0-
|
|
87421
|
+
// version: 1.266.0-dev22-06d4657e7
|
|
@@ -4171,7 +4171,7 @@
|
|
|
4171
4171
|
}
|
|
4172
4172
|
callbacks.push(callback);
|
|
4173
4173
|
}
|
|
4174
|
-
// version: 1.266.0-
|
|
4174
|
+
// version: 1.266.0-dev22-06d4657e7
|
|
4175
4175
|
|
|
4176
4176
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4177
4177
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15679,7 +15679,7 @@
|
|
|
15679
15679
|
}
|
|
15680
15680
|
return superResult;
|
|
15681
15681
|
}
|
|
15682
|
-
// version: 1.266.0-
|
|
15682
|
+
// version: 1.266.0-dev22-06d4657e7
|
|
15683
15683
|
|
|
15684
15684
|
function unwrap(data) {
|
|
15685
15685
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16604,7 +16604,7 @@
|
|
|
16604
16604
|
const { apiFamily, name } = metadata;
|
|
16605
16605
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16606
16606
|
}
|
|
16607
|
-
// version: 1.266.0-
|
|
16607
|
+
// version: 1.266.0-dev22-06d4657e7
|
|
16608
16608
|
|
|
16609
16609
|
/**
|
|
16610
16610
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -17227,15 +17227,17 @@
|
|
|
17227
17227
|
/**
|
|
17228
17228
|
* Returns the field API name, qualified with an object name if possible.
|
|
17229
17229
|
* @param value The value from which to get the qualified field API name.
|
|
17230
|
+
* @param onlyQualifiedFieldNames - Whether or not this function should skip fieldApiName that do not include the delimiter '.'
|
|
17230
17231
|
* @return The qualified field API name.
|
|
17231
17232
|
*/
|
|
17232
|
-
function getFieldApiName$2(value) {
|
|
17233
|
+
function getFieldApiName$2(value, onlyQualifiedFieldNames = false) {
|
|
17233
17234
|
// Note: tightening validation logic changes behavior from userland getting
|
|
17234
17235
|
// a server-provided error to the adapter noop'ing. In 224 we decided to not
|
|
17235
|
-
// change the behavior.
|
|
17236
|
+
// change the behavior. In 250 we decided to add the 'onlyQualifiedFieldName' flag to tighten the logic
|
|
17237
|
+
// optionally to avoid issues with persisted invalid field names.
|
|
17236
17238
|
if (isString$2(value)) {
|
|
17237
17239
|
const trimmed = value.trim();
|
|
17238
|
-
if (trimmed.length > 0) {
|
|
17240
|
+
if (trimmed.length > 0 && (onlyQualifiedFieldNames ? trimmed.indexOf('.') > -1 : true)) {
|
|
17239
17241
|
return trimmed;
|
|
17240
17242
|
}
|
|
17241
17243
|
}
|
|
@@ -17248,15 +17250,19 @@
|
|
|
17248
17250
|
/**
|
|
17249
17251
|
* Returns the field API name.
|
|
17250
17252
|
* @param value The value from which to get the field API name.
|
|
17253
|
+
* @param options Option bag. onlyQualifiedFieldNames is a boolean that allows this function to skip returning invalid FieldApiNames.
|
|
17251
17254
|
* @returns The field API name.
|
|
17252
17255
|
*/
|
|
17253
|
-
function getFieldApiNamesArray$2(value) {
|
|
17256
|
+
function getFieldApiNamesArray$2(value, options = { onlyQualifiedFieldNames: false }) {
|
|
17254
17257
|
const valueArray = isArray$7(value) ? value : [value];
|
|
17255
17258
|
const array = [];
|
|
17256
17259
|
for (let i = 0, len = valueArray.length; i < len; i += 1) {
|
|
17257
17260
|
const item = valueArray[i];
|
|
17258
|
-
const apiName = getFieldApiName$2(item);
|
|
17261
|
+
const apiName = getFieldApiName$2(item, options.onlyQualifiedFieldNames);
|
|
17259
17262
|
if (apiName === undefined) {
|
|
17263
|
+
if (options.onlyQualifiedFieldNames) {
|
|
17264
|
+
continue; // Just skips invalid field names rather than failing to return an array at all
|
|
17265
|
+
}
|
|
17260
17266
|
return undefined;
|
|
17261
17267
|
}
|
|
17262
17268
|
push$4.call(array, apiName);
|
|
@@ -43181,7 +43187,7 @@
|
|
|
43181
43187
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory$1));
|
|
43182
43188
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyQuickActionDefaultsUpdateAvailable', notifyUpdateAvailableFactory));
|
|
43183
43189
|
});
|
|
43184
|
-
// version: 1.266.0-
|
|
43190
|
+
// version: 1.266.0-dev22-50eb098ff
|
|
43185
43191
|
|
|
43186
43192
|
var ldsIdempotencyWriteDisabled = {
|
|
43187
43193
|
isOpen: function (e) {
|
|
@@ -61140,7 +61146,7 @@
|
|
|
61140
61146
|
id: '@salesforce/lds-network-adapter',
|
|
61141
61147
|
instrument: instrument$2,
|
|
61142
61148
|
});
|
|
61143
|
-
// version: 1.266.0-
|
|
61149
|
+
// version: 1.266.0-dev22-06d4657e7
|
|
61144
61150
|
|
|
61145
61151
|
const { create: create$3, keys: keys$3 } = Object;
|
|
61146
61152
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -79150,15 +79156,17 @@
|
|
|
79150
79156
|
/**
|
|
79151
79157
|
* Returns the field API name, qualified with an object name if possible.
|
|
79152
79158
|
* @param value The value from which to get the qualified field API name.
|
|
79159
|
+
* @param onlyQualifiedFieldNames - Whether or not this function should skip fieldApiName that do not include the delimiter '.'
|
|
79153
79160
|
* @return The qualified field API name.
|
|
79154
79161
|
*/
|
|
79155
|
-
function getFieldApiName$1(value) {
|
|
79162
|
+
function getFieldApiName$1(value, onlyQualifiedFieldNames = false) {
|
|
79156
79163
|
// Note: tightening validation logic changes behavior from userland getting
|
|
79157
79164
|
// a server-provided error to the adapter noop'ing. In 224 we decided to not
|
|
79158
|
-
// change the behavior.
|
|
79165
|
+
// change the behavior. In 250 we decided to add the 'onlyQualifiedFieldName' flag to tighten the logic
|
|
79166
|
+
// optionally to avoid issues with persisted invalid field names.
|
|
79159
79167
|
if (isString$1(value)) {
|
|
79160
79168
|
const trimmed = value.trim();
|
|
79161
|
-
if (trimmed.length > 0) {
|
|
79169
|
+
if (trimmed.length > 0 && (onlyQualifiedFieldNames ? trimmed.indexOf('.') > -1 : true)) {
|
|
79162
79170
|
return trimmed;
|
|
79163
79171
|
}
|
|
79164
79172
|
}
|
|
@@ -79171,15 +79179,19 @@
|
|
|
79171
79179
|
/**
|
|
79172
79180
|
* Returns the field API name.
|
|
79173
79181
|
* @param value The value from which to get the field API name.
|
|
79182
|
+
* @param options Option bag. onlyQualifiedFieldNames is a boolean that allows this function to skip returning invalid FieldApiNames.
|
|
79174
79183
|
* @returns The field API name.
|
|
79175
79184
|
*/
|
|
79176
|
-
function getFieldApiNamesArray$1(value) {
|
|
79185
|
+
function getFieldApiNamesArray$1(value, options = { onlyQualifiedFieldNames: false }) {
|
|
79177
79186
|
const valueArray = isArray$2(value) ? value : [value];
|
|
79178
79187
|
const array = [];
|
|
79179
79188
|
for (let i = 0, len = valueArray.length; i < len; i += 1) {
|
|
79180
79189
|
const item = valueArray[i];
|
|
79181
|
-
const apiName = getFieldApiName$1(item);
|
|
79190
|
+
const apiName = getFieldApiName$1(item, options.onlyQualifiedFieldNames);
|
|
79182
79191
|
if (apiName === undefined) {
|
|
79192
|
+
if (options.onlyQualifiedFieldNames) {
|
|
79193
|
+
continue; // Just skips invalid field names rather than failing to return an array at all
|
|
79194
|
+
}
|
|
79183
79195
|
return undefined;
|
|
79184
79196
|
}
|
|
79185
79197
|
push$1.call(array, apiName);
|
|
@@ -79535,7 +79547,7 @@
|
|
|
79535
79547
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
79536
79548
|
instrument: instrument$1,
|
|
79537
79549
|
});
|
|
79538
|
-
// version: 1.266.0-
|
|
79550
|
+
// version: 1.266.0-dev22-50eb098ff
|
|
79539
79551
|
|
|
79540
79552
|
// On core the unstable adapters are re-exported with different names,
|
|
79541
79553
|
// we want to match them here.
|
|
@@ -81789,7 +81801,7 @@
|
|
|
81789
81801
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
81790
81802
|
graphQLImperative = ldsAdapter;
|
|
81791
81803
|
});
|
|
81792
|
-
// version: 1.266.0-
|
|
81804
|
+
// version: 1.266.0-dev22-50eb098ff
|
|
81793
81805
|
|
|
81794
81806
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
81795
81807
|
__proto__: null,
|
|
@@ -82501,7 +82513,7 @@
|
|
|
82501
82513
|
function register(r) {
|
|
82502
82514
|
callbacks$1.forEach((callback) => callback(r));
|
|
82503
82515
|
}
|
|
82504
|
-
// version: 1.266.0-
|
|
82516
|
+
// version: 1.266.0-dev22-06d4657e7
|
|
82505
82517
|
|
|
82506
82518
|
/**
|
|
82507
82519
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -86711,15 +86723,17 @@
|
|
|
86711
86723
|
/**
|
|
86712
86724
|
* Returns the field API name, qualified with an object name if possible.
|
|
86713
86725
|
* @param value The value from which to get the qualified field API name.
|
|
86726
|
+
* @param onlyQualifiedFieldNames - Whether or not this function should skip fieldApiName that do not include the delimiter '.'
|
|
86714
86727
|
* @return The qualified field API name.
|
|
86715
86728
|
*/
|
|
86716
|
-
function getFieldApiName(value) {
|
|
86729
|
+
function getFieldApiName(value, onlyQualifiedFieldNames = false) {
|
|
86717
86730
|
// Note: tightening validation logic changes behavior from userland getting
|
|
86718
86731
|
// a server-provided error to the adapter noop'ing. In 224 we decided to not
|
|
86719
|
-
// change the behavior.
|
|
86732
|
+
// change the behavior. In 250 we decided to add the 'onlyQualifiedFieldName' flag to tighten the logic
|
|
86733
|
+
// optionally to avoid issues with persisted invalid field names.
|
|
86720
86734
|
if (isString(value)) {
|
|
86721
86735
|
const trimmed = value.trim();
|
|
86722
|
-
if (trimmed.length > 0) {
|
|
86736
|
+
if (trimmed.length > 0 && (onlyQualifiedFieldNames ? trimmed.indexOf('.') > -1 : true)) {
|
|
86723
86737
|
return trimmed;
|
|
86724
86738
|
}
|
|
86725
86739
|
}
|
|
@@ -86732,15 +86746,19 @@
|
|
|
86732
86746
|
/**
|
|
86733
86747
|
* Returns the field API name.
|
|
86734
86748
|
* @param value The value from which to get the field API name.
|
|
86749
|
+
* @param options Option bag. onlyQualifiedFieldNames is a boolean that allows this function to skip returning invalid FieldApiNames.
|
|
86735
86750
|
* @returns The field API name.
|
|
86736
86751
|
*/
|
|
86737
|
-
function getFieldApiNamesArray(value) {
|
|
86752
|
+
function getFieldApiNamesArray(value, options = { onlyQualifiedFieldNames: false }) {
|
|
86738
86753
|
const valueArray = isArray(value) ? value : [value];
|
|
86739
86754
|
const array = [];
|
|
86740
86755
|
for (let i = 0, len = valueArray.length; i < len; i += 1) {
|
|
86741
86756
|
const item = valueArray[i];
|
|
86742
|
-
const apiName = getFieldApiName(item);
|
|
86757
|
+
const apiName = getFieldApiName(item, options.onlyQualifiedFieldNames);
|
|
86743
86758
|
if (apiName === undefined) {
|
|
86759
|
+
if (options.onlyQualifiedFieldNames) {
|
|
86760
|
+
continue; // Just skips invalid field names rather than failing to return an array at all
|
|
86761
|
+
}
|
|
86744
86762
|
return undefined;
|
|
86745
86763
|
}
|
|
86746
86764
|
push.call(array, apiName);
|
|
@@ -87424,4 +87442,4 @@
|
|
|
87424
87442
|
exports.subscribeToAdapter = subscribeToAdapter;
|
|
87425
87443
|
|
|
87426
87444
|
}));
|
|
87427
|
-
// version: 1.266.0-
|
|
87445
|
+
// version: 1.266.0-dev22-06d4657e7
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-worker-api",
|
|
3
|
-
"version": "1.266.0-
|
|
3
|
+
"version": "1.266.0-dev22",
|
|
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.266.0-
|
|
39
|
-
"@salesforce/lds-adapters-uiapi": "^1.266.0-
|
|
40
|
-
"@salesforce/lds-default-luvio": "^1.266.0-
|
|
41
|
-
"@salesforce/lds-drafts": "^1.266.0-
|
|
42
|
-
"@salesforce/lds-graphql-parser": "^1.266.0-
|
|
43
|
-
"@salesforce/lds-luvio-engine": "^1.266.0-
|
|
44
|
-
"@salesforce/lds-priming": "^1.266.0-
|
|
45
|
-
"@salesforce/lds-runtime-mobile": "^1.266.0-
|
|
46
|
-
"@salesforce/nimbus-plugin-lds": "^1.266.0-
|
|
38
|
+
"@salesforce/lds-adapters-graphql": "^1.266.0-dev22",
|
|
39
|
+
"@salesforce/lds-adapters-uiapi": "^1.266.0-dev22",
|
|
40
|
+
"@salesforce/lds-default-luvio": "^1.266.0-dev22",
|
|
41
|
+
"@salesforce/lds-drafts": "^1.266.0-dev22",
|
|
42
|
+
"@salesforce/lds-graphql-parser": "^1.266.0-dev22",
|
|
43
|
+
"@salesforce/lds-luvio-engine": "^1.266.0-dev22",
|
|
44
|
+
"@salesforce/lds-priming": "^1.266.0-dev22",
|
|
45
|
+
"@salesforce/lds-runtime-mobile": "^1.266.0-dev22",
|
|
46
|
+
"@salesforce/nimbus-plugin-lds": "^1.266.0-dev22",
|
|
47
47
|
"ajv": "^8.11.0",
|
|
48
48
|
"glob": "^7.1.5",
|
|
49
49
|
"nimbus-types": "^2.0.0-alpha1",
|