@salesforce/lds-worker-api 1.427.0 → 1.428.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/sfdc/es/ldsWorkerApi.js +1 -1
- package/dist/sfdc/es/types/standalone-stubs/o11y_schema_sf_lightningsdk.d.ts +1 -0
- package/dist/standalone/es/lds-worker-api.js +80 -13
- package/dist/standalone/es/types/standalone-stubs/o11y_schema_sf_lightningsdk.d.ts +1 -0
- package/dist/standalone/umd/lds-worker-api.js +80 -13
- package/dist/standalone/umd/types/standalone-stubs/o11y_schema_sf_lightningsdk.d.ts +1 -0
- package/package.json +9 -9
|
@@ -1371,4 +1371,4 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1371
1371
|
}
|
|
1372
1372
|
|
|
1373
1373
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, importLuvioAdapterModule, importOneStoreAdapterModule, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
1374
|
-
// version: 1.
|
|
1374
|
+
// version: 1.428.0-b7f20524d9
|
|
@@ -4146,7 +4146,7 @@ function createResourceParamsImpl(config, configMetadata) {
|
|
|
4146
4146
|
}
|
|
4147
4147
|
return resourceParams;
|
|
4148
4148
|
}
|
|
4149
|
-
// engine version: 0.160.
|
|
4149
|
+
// engine version: 0.160.4-b7e0ea82
|
|
4150
4150
|
|
|
4151
4151
|
/**
|
|
4152
4152
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -4274,7 +4274,7 @@ function withDefaultLuvio(callback) {
|
|
|
4274
4274
|
}
|
|
4275
4275
|
callbacks.push(callback);
|
|
4276
4276
|
}
|
|
4277
|
-
// version: 1.
|
|
4277
|
+
// version: 1.428.0-b7f20524d9
|
|
4278
4278
|
|
|
4279
4279
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4280
4280
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -5318,7 +5318,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
|
|
|
5318
5318
|
const { apiFamily, name } = metadata;
|
|
5319
5319
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
5320
5320
|
}
|
|
5321
|
-
// version: 1.
|
|
5321
|
+
// version: 1.428.0-b7f20524d9
|
|
5322
5322
|
|
|
5323
5323
|
function isSupportedEntity(_objectApiName) {
|
|
5324
5324
|
return true;
|
|
@@ -5422,7 +5422,7 @@ var TypeCheckShapes;
|
|
|
5422
5422
|
TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
|
|
5423
5423
|
TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
|
|
5424
5424
|
})(TypeCheckShapes || (TypeCheckShapes = {}));
|
|
5425
|
-
// engine version: 0.160.
|
|
5425
|
+
// engine version: 0.160.4-b7e0ea82
|
|
5426
5426
|
|
|
5427
5427
|
const { keys: ObjectKeys$4, create: ObjectCreate$4 } = Object;
|
|
5428
5428
|
|
|
@@ -32610,7 +32610,7 @@ withDefaultLuvio((luvio) => {
|
|
|
32610
32610
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
32611
32611
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
32612
32612
|
});
|
|
32613
|
-
// version: 1.
|
|
32613
|
+
// version: 1.428.0-9a846cb61f
|
|
32614
32614
|
|
|
32615
32615
|
var allowUpdatesForNonCachedRecords = {
|
|
32616
32616
|
isOpen: function (e) {
|
|
@@ -44126,6 +44126,10 @@ var graphqlRelationshipFieldsPerf = {
|
|
|
44126
44126
|
|
|
44127
44127
|
var FIRST_DAY_OF_WEEK = 0;
|
|
44128
44128
|
|
|
44129
|
+
// Stub for o11y_schema/sf_lightningsdk for standalone builds
|
|
44130
|
+
// The real schema is only available in the platform environment
|
|
44131
|
+
const entityFetchedGraphqlMetadataSchema = {};
|
|
44132
|
+
|
|
44129
44133
|
var graphqQueryFieldLimit = {
|
|
44130
44134
|
isOpen: function (e) {
|
|
44131
44135
|
return e.fallback;
|
|
@@ -47891,6 +47895,13 @@ class DurableDraftQueue {
|
|
|
47891
47895
|
// has last set the queue to be started
|
|
47892
47896
|
return;
|
|
47893
47897
|
}
|
|
47898
|
+
// This is important because if there is a dangling timeout handler
|
|
47899
|
+
// it can fire on an empty queue, marking it as waiting, and then
|
|
47900
|
+
// not add another timeout handler to restart it
|
|
47901
|
+
if (this.timeoutHandler) {
|
|
47902
|
+
clearTimeout(this.timeoutHandler);
|
|
47903
|
+
this.timeoutHandler = undefined;
|
|
47904
|
+
}
|
|
47894
47905
|
this.retryIntervalMilliseconds = 0;
|
|
47895
47906
|
this.state = DraftQueueState.Started;
|
|
47896
47907
|
await this.notifyChangedListeners({
|
|
@@ -48047,6 +48058,9 @@ class DurableDraftQueue {
|
|
|
48047
48058
|
const queue = await this.getQueueActions();
|
|
48048
48059
|
const action = queue[0];
|
|
48049
48060
|
if (action === undefined) {
|
|
48061
|
+
if (this.state === DraftQueueState.Waiting) {
|
|
48062
|
+
this.state = DraftQueueState.Started;
|
|
48063
|
+
}
|
|
48050
48064
|
this.processingAction = undefined;
|
|
48051
48065
|
return ProcessActionResult.NO_ACTION_TO_PROCESS;
|
|
48052
48066
|
}
|
|
@@ -88129,6 +88143,7 @@ const replaceDraftIdsInVariables = (variables, draftFunctions, unmappedDraftIDs)
|
|
|
88129
88143
|
};
|
|
88130
88144
|
// create the runtime cache for the graphql schema when the factory creates the adapter
|
|
88131
88145
|
const graphqlSchemaCache = new CachedGraphQLSchema();
|
|
88146
|
+
const ldsInstrumentation$1 = getInstrumentation();
|
|
88132
88147
|
function draftAwareGraphQLAdapterFactory(userId, objectInfoService, store, luvio, isDraftId, buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy) {
|
|
88133
88148
|
const getCanonicalId = getCanonicalIdFunction(luvio);
|
|
88134
88149
|
return async function draftAwareGraphQLAdapter(config, requestContext = {}) {
|
|
@@ -88309,6 +88324,14 @@ function draftAwareGraphQLAdapterFactory(userId, objectInfoService, store, luvio
|
|
|
88309
88324
|
if (graphqlPartialEmitParity.isOpen({ fallback: false }) && missingFieldsMap.size > 0) {
|
|
88310
88325
|
return createMissingFieldsErrorSnapshot(nonEvaluatedSnapshot, missingFieldsMap);
|
|
88311
88326
|
}
|
|
88327
|
+
// Log GraphQL metadata for observability (only for successful queries with empty data)
|
|
88328
|
+
const hasEmptyData = checkForEmptyData(gqlResult);
|
|
88329
|
+
if (hasEmptyData) {
|
|
88330
|
+
ldsInstrumentation$1.log(entityFetchedGraphqlMetadataSchema, {
|
|
88331
|
+
query: redactQueryData(print$1(config.query)),
|
|
88332
|
+
isEmptyData: hasEmptyData,
|
|
88333
|
+
});
|
|
88334
|
+
}
|
|
88312
88335
|
// if the non-eval'ed snapshot was an error then we return a synthetic
|
|
88313
88336
|
// Fulfilled snapshot (this only happens in this code path if
|
|
88314
88337
|
// the error is network error or 504), otherwise we spread over
|
|
@@ -88389,6 +88412,50 @@ function createMissingFieldsErrorSnapshot(originalSnapshot, missingFieldsMap) {
|
|
|
88389
88412
|
},
|
|
88390
88413
|
};
|
|
88391
88414
|
}
|
|
88415
|
+
/**
|
|
88416
|
+
* Redacts sensitive data from a GraphQL query string and flattens to single line.
|
|
88417
|
+
* Replaces string and numeric values in query arguments with *.
|
|
88418
|
+
*/
|
|
88419
|
+
function redactQueryData(queryString) {
|
|
88420
|
+
// First, flatten the query to a single line (remove newlines and extra whitespace)
|
|
88421
|
+
const flattened = queryString.replace(/\s+/g, ' ').trim();
|
|
88422
|
+
// Match entity types with arguments like "Account(...)" - must be after whitespace/brace, not after @
|
|
88423
|
+
// This matches query entity arguments but skips directive arguments
|
|
88424
|
+
return flattened.replace(/([\s{])(\w+)\s*\(\s*([^)]+?)\s*\)(\s*[@{])/g, (match, before, entityType, args, after) => {
|
|
88425
|
+
// Check if this looks like it has query parameters (contains colons)
|
|
88426
|
+
if (!args.includes(':')) {
|
|
88427
|
+
return match;
|
|
88428
|
+
}
|
|
88429
|
+
// Redact strings, numbers, and variables in the arguments
|
|
88430
|
+
const redactedArgs = args.replace(/"[^"]*"|\$\w+|:\s*(-?\d+\.?\d*)/g, (m) => {
|
|
88431
|
+
if (m.startsWith('"'))
|
|
88432
|
+
return '"*"';
|
|
88433
|
+
if (m.startsWith('$'))
|
|
88434
|
+
return '*';
|
|
88435
|
+
return ': *';
|
|
88436
|
+
});
|
|
88437
|
+
return `${before}${entityType}(${redactedArgs})${after}`;
|
|
88438
|
+
});
|
|
88439
|
+
}
|
|
88440
|
+
/**
|
|
88441
|
+
* Checks if the GraphQL result contains any data edges.
|
|
88442
|
+
* Returns true if no data edges are found in the query results.
|
|
88443
|
+
*/
|
|
88444
|
+
function checkForEmptyData(gqlResult) {
|
|
88445
|
+
const data = gqlResult.data;
|
|
88446
|
+
if (!data || !data.uiapi || !data.uiapi.query) {
|
|
88447
|
+
return true;
|
|
88448
|
+
}
|
|
88449
|
+
const query = data.uiapi.query;
|
|
88450
|
+
// Check all entity types in the query for edges - using for...in to avoid array allocation
|
|
88451
|
+
for (const entityType in query) {
|
|
88452
|
+
const entity = query[entityType];
|
|
88453
|
+
if (entity && entity.edges && isArray$3$1(entity.edges) && entity.edges.length > 0) {
|
|
88454
|
+
return false;
|
|
88455
|
+
}
|
|
88456
|
+
}
|
|
88457
|
+
return true;
|
|
88458
|
+
}
|
|
88392
88459
|
|
|
88393
88460
|
function environmentAwareGraphQLBatchAdapterFactory(objectInfoService, luvio, isDraftId, buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy) {
|
|
88394
88461
|
return async function environmentAwareGraphQLBatchAdapter(config, requestContext = {}) {
|
|
@@ -96191,7 +96258,7 @@ function buildServiceDescriptor$b(luvio) {
|
|
|
96191
96258
|
},
|
|
96192
96259
|
};
|
|
96193
96260
|
}
|
|
96194
|
-
// version: 1.
|
|
96261
|
+
// version: 1.428.0-9a846cb61f
|
|
96195
96262
|
|
|
96196
96263
|
/**
|
|
96197
96264
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -96217,7 +96284,7 @@ function buildServiceDescriptor$a(notifyRecordUpdateAvailable, getNormalizedLuvi
|
|
|
96217
96284
|
},
|
|
96218
96285
|
};
|
|
96219
96286
|
}
|
|
96220
|
-
// version: 1.
|
|
96287
|
+
// version: 1.428.0-9a846cb61f
|
|
96221
96288
|
|
|
96222
96289
|
/*!
|
|
96223
96290
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -98874,7 +98941,7 @@ register$1({
|
|
|
98874
98941
|
id: '@salesforce/lds-network-adapter',
|
|
98875
98942
|
instrument: instrument$2,
|
|
98876
98943
|
});
|
|
98877
|
-
// version: 1.
|
|
98944
|
+
// version: 1.428.0-b7f20524d9
|
|
98878
98945
|
|
|
98879
98946
|
const { create: create$2, keys: keys$2 } = Object;
|
|
98880
98947
|
const { stringify, parse } = JSON;
|
|
@@ -106865,7 +106932,7 @@ function registerCallback(cb) {
|
|
|
106865
106932
|
cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, graphql_state_manager, useOneStoreGraphQL);
|
|
106866
106933
|
}
|
|
106867
106934
|
}
|
|
106868
|
-
// version: 1.
|
|
106935
|
+
// version: 1.428.0-9a846cb61f
|
|
106869
106936
|
|
|
106870
106937
|
function createFragmentMap(documentNode) {
|
|
106871
106938
|
const fragments = {};
|
|
@@ -136102,7 +136169,7 @@ register$1({
|
|
|
136102
136169
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
136103
136170
|
instrument: instrument$1,
|
|
136104
136171
|
});
|
|
136105
|
-
// version: 1.
|
|
136172
|
+
// version: 1.428.0-9a846cb61f
|
|
136106
136173
|
|
|
136107
136174
|
// On core the unstable adapters are re-exported with different names,
|
|
136108
136175
|
// we want to match them here.
|
|
@@ -136254,7 +136321,7 @@ withDefaultLuvio((luvio) => {
|
|
|
136254
136321
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
136255
136322
|
graphQLImperative = ldsAdapter;
|
|
136256
136323
|
});
|
|
136257
|
-
// version: 1.
|
|
136324
|
+
// version: 1.428.0-9a846cb61f
|
|
136258
136325
|
|
|
136259
136326
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
136260
136327
|
__proto__: null,
|
|
@@ -137053,7 +137120,7 @@ const callbacks$1 = [];
|
|
|
137053
137120
|
function register(r) {
|
|
137054
137121
|
callbacks$1.forEach((callback) => callback(r));
|
|
137055
137122
|
}
|
|
137056
|
-
// version: 1.
|
|
137123
|
+
// version: 1.428.0-b7f20524d9
|
|
137057
137124
|
|
|
137058
137125
|
/**
|
|
137059
137126
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -138369,4 +138436,4 @@ const { luvio } = getRuntime();
|
|
|
138369
138436
|
setDefaultLuvio({ luvio });
|
|
138370
138437
|
|
|
138371
138438
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, importLuvioAdapterModule, importOneStoreAdapterModule, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
138372
|
-
// version: 1.
|
|
138439
|
+
// version: 1.428.0-b7f20524d9
|
|
@@ -4152,7 +4152,7 @@
|
|
|
4152
4152
|
}
|
|
4153
4153
|
return resourceParams;
|
|
4154
4154
|
}
|
|
4155
|
-
// engine version: 0.160.
|
|
4155
|
+
// engine version: 0.160.4-b7e0ea82
|
|
4156
4156
|
|
|
4157
4157
|
/**
|
|
4158
4158
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -4280,7 +4280,7 @@
|
|
|
4280
4280
|
}
|
|
4281
4281
|
callbacks.push(callback);
|
|
4282
4282
|
}
|
|
4283
|
-
// version: 1.
|
|
4283
|
+
// version: 1.428.0-b7f20524d9
|
|
4284
4284
|
|
|
4285
4285
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4286
4286
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -5324,7 +5324,7 @@
|
|
|
5324
5324
|
const { apiFamily, name } = metadata;
|
|
5325
5325
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
5326
5326
|
}
|
|
5327
|
-
// version: 1.
|
|
5327
|
+
// version: 1.428.0-b7f20524d9
|
|
5328
5328
|
|
|
5329
5329
|
function isSupportedEntity(_objectApiName) {
|
|
5330
5330
|
return true;
|
|
@@ -5428,7 +5428,7 @@
|
|
|
5428
5428
|
TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
|
|
5429
5429
|
TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
|
|
5430
5430
|
})(TypeCheckShapes || (TypeCheckShapes = {}));
|
|
5431
|
-
// engine version: 0.160.
|
|
5431
|
+
// engine version: 0.160.4-b7e0ea82
|
|
5432
5432
|
|
|
5433
5433
|
const { keys: ObjectKeys$4, create: ObjectCreate$4 } = Object;
|
|
5434
5434
|
|
|
@@ -32616,7 +32616,7 @@
|
|
|
32616
32616
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
32617
32617
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
32618
32618
|
});
|
|
32619
|
-
// version: 1.
|
|
32619
|
+
// version: 1.428.0-9a846cb61f
|
|
32620
32620
|
|
|
32621
32621
|
var allowUpdatesForNonCachedRecords = {
|
|
32622
32622
|
isOpen: function (e) {
|
|
@@ -44132,6 +44132,10 @@
|
|
|
44132
44132
|
|
|
44133
44133
|
var FIRST_DAY_OF_WEEK = 0;
|
|
44134
44134
|
|
|
44135
|
+
// Stub for o11y_schema/sf_lightningsdk for standalone builds
|
|
44136
|
+
// The real schema is only available in the platform environment
|
|
44137
|
+
const entityFetchedGraphqlMetadataSchema = {};
|
|
44138
|
+
|
|
44135
44139
|
var graphqQueryFieldLimit = {
|
|
44136
44140
|
isOpen: function (e) {
|
|
44137
44141
|
return e.fallback;
|
|
@@ -47897,6 +47901,13 @@
|
|
|
47897
47901
|
// has last set the queue to be started
|
|
47898
47902
|
return;
|
|
47899
47903
|
}
|
|
47904
|
+
// This is important because if there is a dangling timeout handler
|
|
47905
|
+
// it can fire on an empty queue, marking it as waiting, and then
|
|
47906
|
+
// not add another timeout handler to restart it
|
|
47907
|
+
if (this.timeoutHandler) {
|
|
47908
|
+
clearTimeout(this.timeoutHandler);
|
|
47909
|
+
this.timeoutHandler = undefined;
|
|
47910
|
+
}
|
|
47900
47911
|
this.retryIntervalMilliseconds = 0;
|
|
47901
47912
|
this.state = DraftQueueState.Started;
|
|
47902
47913
|
await this.notifyChangedListeners({
|
|
@@ -48053,6 +48064,9 @@
|
|
|
48053
48064
|
const queue = await this.getQueueActions();
|
|
48054
48065
|
const action = queue[0];
|
|
48055
48066
|
if (action === undefined) {
|
|
48067
|
+
if (this.state === DraftQueueState.Waiting) {
|
|
48068
|
+
this.state = DraftQueueState.Started;
|
|
48069
|
+
}
|
|
48056
48070
|
this.processingAction = undefined;
|
|
48057
48071
|
return ProcessActionResult.NO_ACTION_TO_PROCESS;
|
|
48058
48072
|
}
|
|
@@ -88135,6 +88149,7 @@
|
|
|
88135
88149
|
};
|
|
88136
88150
|
// create the runtime cache for the graphql schema when the factory creates the adapter
|
|
88137
88151
|
const graphqlSchemaCache = new CachedGraphQLSchema();
|
|
88152
|
+
const ldsInstrumentation$1 = getInstrumentation();
|
|
88138
88153
|
function draftAwareGraphQLAdapterFactory(userId, objectInfoService, store, luvio, isDraftId, buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy) {
|
|
88139
88154
|
const getCanonicalId = getCanonicalIdFunction(luvio);
|
|
88140
88155
|
return async function draftAwareGraphQLAdapter(config, requestContext = {}) {
|
|
@@ -88315,6 +88330,14 @@
|
|
|
88315
88330
|
if (graphqlPartialEmitParity.isOpen({ fallback: false }) && missingFieldsMap.size > 0) {
|
|
88316
88331
|
return createMissingFieldsErrorSnapshot(nonEvaluatedSnapshot, missingFieldsMap);
|
|
88317
88332
|
}
|
|
88333
|
+
// Log GraphQL metadata for observability (only for successful queries with empty data)
|
|
88334
|
+
const hasEmptyData = checkForEmptyData(gqlResult);
|
|
88335
|
+
if (hasEmptyData) {
|
|
88336
|
+
ldsInstrumentation$1.log(entityFetchedGraphqlMetadataSchema, {
|
|
88337
|
+
query: redactQueryData(print$1(config.query)),
|
|
88338
|
+
isEmptyData: hasEmptyData,
|
|
88339
|
+
});
|
|
88340
|
+
}
|
|
88318
88341
|
// if the non-eval'ed snapshot was an error then we return a synthetic
|
|
88319
88342
|
// Fulfilled snapshot (this only happens in this code path if
|
|
88320
88343
|
// the error is network error or 504), otherwise we spread over
|
|
@@ -88395,6 +88418,50 @@
|
|
|
88395
88418
|
},
|
|
88396
88419
|
};
|
|
88397
88420
|
}
|
|
88421
|
+
/**
|
|
88422
|
+
* Redacts sensitive data from a GraphQL query string and flattens to single line.
|
|
88423
|
+
* Replaces string and numeric values in query arguments with *.
|
|
88424
|
+
*/
|
|
88425
|
+
function redactQueryData(queryString) {
|
|
88426
|
+
// First, flatten the query to a single line (remove newlines and extra whitespace)
|
|
88427
|
+
const flattened = queryString.replace(/\s+/g, ' ').trim();
|
|
88428
|
+
// Match entity types with arguments like "Account(...)" - must be after whitespace/brace, not after @
|
|
88429
|
+
// This matches query entity arguments but skips directive arguments
|
|
88430
|
+
return flattened.replace(/([\s{])(\w+)\s*\(\s*([^)]+?)\s*\)(\s*[@{])/g, (match, before, entityType, args, after) => {
|
|
88431
|
+
// Check if this looks like it has query parameters (contains colons)
|
|
88432
|
+
if (!args.includes(':')) {
|
|
88433
|
+
return match;
|
|
88434
|
+
}
|
|
88435
|
+
// Redact strings, numbers, and variables in the arguments
|
|
88436
|
+
const redactedArgs = args.replace(/"[^"]*"|\$\w+|:\s*(-?\d+\.?\d*)/g, (m) => {
|
|
88437
|
+
if (m.startsWith('"'))
|
|
88438
|
+
return '"*"';
|
|
88439
|
+
if (m.startsWith('$'))
|
|
88440
|
+
return '*';
|
|
88441
|
+
return ': *';
|
|
88442
|
+
});
|
|
88443
|
+
return `${before}${entityType}(${redactedArgs})${after}`;
|
|
88444
|
+
});
|
|
88445
|
+
}
|
|
88446
|
+
/**
|
|
88447
|
+
* Checks if the GraphQL result contains any data edges.
|
|
88448
|
+
* Returns true if no data edges are found in the query results.
|
|
88449
|
+
*/
|
|
88450
|
+
function checkForEmptyData(gqlResult) {
|
|
88451
|
+
const data = gqlResult.data;
|
|
88452
|
+
if (!data || !data.uiapi || !data.uiapi.query) {
|
|
88453
|
+
return true;
|
|
88454
|
+
}
|
|
88455
|
+
const query = data.uiapi.query;
|
|
88456
|
+
// Check all entity types in the query for edges - using for...in to avoid array allocation
|
|
88457
|
+
for (const entityType in query) {
|
|
88458
|
+
const entity = query[entityType];
|
|
88459
|
+
if (entity && entity.edges && isArray$3$1(entity.edges) && entity.edges.length > 0) {
|
|
88460
|
+
return false;
|
|
88461
|
+
}
|
|
88462
|
+
}
|
|
88463
|
+
return true;
|
|
88464
|
+
}
|
|
88398
88465
|
|
|
88399
88466
|
function environmentAwareGraphQLBatchAdapterFactory(objectInfoService, luvio, isDraftId, buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy) {
|
|
88400
88467
|
return async function environmentAwareGraphQLBatchAdapter(config, requestContext = {}) {
|
|
@@ -96197,7 +96264,7 @@
|
|
|
96197
96264
|
},
|
|
96198
96265
|
};
|
|
96199
96266
|
}
|
|
96200
|
-
// version: 1.
|
|
96267
|
+
// version: 1.428.0-9a846cb61f
|
|
96201
96268
|
|
|
96202
96269
|
/**
|
|
96203
96270
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -96223,7 +96290,7 @@
|
|
|
96223
96290
|
},
|
|
96224
96291
|
};
|
|
96225
96292
|
}
|
|
96226
|
-
// version: 1.
|
|
96293
|
+
// version: 1.428.0-9a846cb61f
|
|
96227
96294
|
|
|
96228
96295
|
/*!
|
|
96229
96296
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -98880,7 +98947,7 @@
|
|
|
98880
98947
|
id: '@salesforce/lds-network-adapter',
|
|
98881
98948
|
instrument: instrument$2,
|
|
98882
98949
|
});
|
|
98883
|
-
// version: 1.
|
|
98950
|
+
// version: 1.428.0-b7f20524d9
|
|
98884
98951
|
|
|
98885
98952
|
const { create: create$2, keys: keys$2 } = Object;
|
|
98886
98953
|
const { stringify, parse } = JSON;
|
|
@@ -106871,7 +106938,7 @@
|
|
|
106871
106938
|
cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, graphql_state_manager, useOneStoreGraphQL);
|
|
106872
106939
|
}
|
|
106873
106940
|
}
|
|
106874
|
-
// version: 1.
|
|
106941
|
+
// version: 1.428.0-9a846cb61f
|
|
106875
106942
|
|
|
106876
106943
|
function createFragmentMap(documentNode) {
|
|
106877
106944
|
const fragments = {};
|
|
@@ -136108,7 +136175,7 @@
|
|
|
136108
136175
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
136109
136176
|
instrument: instrument$1,
|
|
136110
136177
|
});
|
|
136111
|
-
// version: 1.
|
|
136178
|
+
// version: 1.428.0-9a846cb61f
|
|
136112
136179
|
|
|
136113
136180
|
// On core the unstable adapters are re-exported with different names,
|
|
136114
136181
|
// we want to match them here.
|
|
@@ -136260,7 +136327,7 @@
|
|
|
136260
136327
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
136261
136328
|
graphQLImperative = ldsAdapter;
|
|
136262
136329
|
});
|
|
136263
|
-
// version: 1.
|
|
136330
|
+
// version: 1.428.0-9a846cb61f
|
|
136264
136331
|
|
|
136265
136332
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
136266
136333
|
__proto__: null,
|
|
@@ -137059,7 +137126,7 @@
|
|
|
137059
137126
|
function register(r) {
|
|
137060
137127
|
callbacks$1.forEach((callback) => callback(r));
|
|
137061
137128
|
}
|
|
137062
|
-
// version: 1.
|
|
137129
|
+
// version: 1.428.0-b7f20524d9
|
|
137063
137130
|
|
|
137064
137131
|
/**
|
|
137065
137132
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -138396,4 +138463,4 @@
|
|
|
138396
138463
|
exports.subscribeToAdapter = subscribeToAdapter;
|
|
138397
138464
|
|
|
138398
138465
|
}));
|
|
138399
|
-
// version: 1.
|
|
138466
|
+
// version: 1.428.0-b7f20524d9
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-worker-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.428.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "dist/standalone/es/lds-worker-api.js",
|
|
@@ -35,14 +35,14 @@
|
|
|
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-runtime-mobile": "^1.
|
|
45
|
-
"@salesforce/nimbus-plugin-lds": "^1.
|
|
38
|
+
"@salesforce/lds-adapters-graphql": "^1.428.0",
|
|
39
|
+
"@salesforce/lds-adapters-uiapi": "^1.428.0",
|
|
40
|
+
"@salesforce/lds-default-luvio": "^1.428.0",
|
|
41
|
+
"@salesforce/lds-drafts": "^1.428.0",
|
|
42
|
+
"@salesforce/lds-graphql-parser": "^1.428.0",
|
|
43
|
+
"@salesforce/lds-luvio-engine": "^1.428.0",
|
|
44
|
+
"@salesforce/lds-runtime-mobile": "^1.428.0",
|
|
45
|
+
"@salesforce/nimbus-plugin-lds": "^1.428.0",
|
|
46
46
|
"ajv": "^8.11.0",
|
|
47
47
|
"glob": "^7.1.5",
|
|
48
48
|
"nimbus-types": "^2.0.0-alpha1",
|