@salesforce/lds-runtime-aura 1.404.0-dev13 → 1.404.0-dev15
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/ldsEngineCreator.js
CHANGED
|
@@ -2702,7 +2702,7 @@ function buildServiceDescriptor$d(luvio) {
|
|
|
2702
2702
|
},
|
|
2703
2703
|
};
|
|
2704
2704
|
}
|
|
2705
|
-
// version: 1.404.0-
|
|
2705
|
+
// version: 1.404.0-dev15-dc5e3db6b2
|
|
2706
2706
|
|
|
2707
2707
|
/*!
|
|
2708
2708
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -3055,7 +3055,7 @@ function buildServiceDescriptor$9(notifyRecordUpdateAvailable, getNormalizedLuvi
|
|
|
3055
3055
|
},
|
|
3056
3056
|
};
|
|
3057
3057
|
}
|
|
3058
|
-
// version: 1.404.0-
|
|
3058
|
+
// version: 1.404.0-dev15-dc5e3db6b2
|
|
3059
3059
|
|
|
3060
3060
|
/*!
|
|
3061
3061
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -4321,6 +4321,52 @@ class JwtManager {
|
|
|
4321
4321
|
* All rights reserved.
|
|
4322
4322
|
* For full license text, see the LICENSE.txt file
|
|
4323
4323
|
*/
|
|
4324
|
+
let textEncoder;
|
|
4325
|
+
function getTextEncoder() {
|
|
4326
|
+
if (!textEncoder) {
|
|
4327
|
+
if (typeof TextEncoder === "undefined") {
|
|
4328
|
+
throw new Error(
|
|
4329
|
+
"TextEncoder is not available in this environment. Request body compression requires TextEncoder support."
|
|
4330
|
+
);
|
|
4331
|
+
}
|
|
4332
|
+
textEncoder = new TextEncoder();
|
|
4333
|
+
}
|
|
4334
|
+
return textEncoder;
|
|
4335
|
+
}
|
|
4336
|
+
function buildCompressionInterceptor(config) {
|
|
4337
|
+
const threshold = config.threshold ?? 1024;
|
|
4338
|
+
return async (args) => {
|
|
4339
|
+
const [resource, options = {}] = args;
|
|
4340
|
+
if (!options.body || typeof options.body !== "string") {
|
|
4341
|
+
return resolvedPromiseLike$2(args);
|
|
4342
|
+
}
|
|
4343
|
+
if (typeof CompressionStream === "undefined") {
|
|
4344
|
+
return resolvedPromiseLike$2(args);
|
|
4345
|
+
}
|
|
4346
|
+
const headers = new Headers(options.headers);
|
|
4347
|
+
if (headers.has("Content-Encoding")) {
|
|
4348
|
+
return resolvedPromiseLike$2(args);
|
|
4349
|
+
}
|
|
4350
|
+
const encodedBody = getTextEncoder().encode(options.body);
|
|
4351
|
+
if (encodedBody.byteLength < threshold) {
|
|
4352
|
+
return resolvedPromiseLike$2(args);
|
|
4353
|
+
}
|
|
4354
|
+
try {
|
|
4355
|
+
const stream = new Blob([encodedBody]).stream().pipeThrough(new CompressionStream(config.algorithm));
|
|
4356
|
+
const compressedBody = await new Response(stream).blob();
|
|
4357
|
+
headers.set("Content-Encoding", config.algorithm);
|
|
4358
|
+
headers.delete("Content-Length");
|
|
4359
|
+
const compressedOptions = {
|
|
4360
|
+
...options,
|
|
4361
|
+
body: compressedBody,
|
|
4362
|
+
headers
|
|
4363
|
+
};
|
|
4364
|
+
return resolvedPromiseLike$2([resource, compressedOptions]);
|
|
4365
|
+
} catch {
|
|
4366
|
+
return resolvedPromiseLike$2(args);
|
|
4367
|
+
}
|
|
4368
|
+
};
|
|
4369
|
+
}
|
|
4324
4370
|
function setHeader(headerName, headerValue, [resource, options = {}], {
|
|
4325
4371
|
throwOnExisting = false,
|
|
4326
4372
|
errorMessage = `Unexpected ${headerName} header encountered`
|
|
@@ -4758,7 +4804,7 @@ function getEnvironmentSetting(name) {
|
|
|
4758
4804
|
}
|
|
4759
4805
|
return undefined;
|
|
4760
4806
|
}
|
|
4761
|
-
// version: 1.404.0-
|
|
4807
|
+
// version: 1.404.0-dev15-dc5e3db6b2
|
|
4762
4808
|
|
|
4763
4809
|
/**
|
|
4764
4810
|
* Observability / Critical Availability Program (230+)
|
|
@@ -6228,8 +6274,12 @@ async function isCsrfError(response) {
|
|
|
6228
6274
|
}
|
|
6229
6275
|
}
|
|
6230
6276
|
|
|
6231
|
-
|
|
6232
|
-
|
|
6277
|
+
/**
|
|
6278
|
+
* Returns the default interceptor configuration for LEX runtime fetch services.
|
|
6279
|
+
* This shared config ensures consistency across all LEX fetch service variants.
|
|
6280
|
+
*/
|
|
6281
|
+
function getLexRuntimeDefaultInterceptorConfig(logger) {
|
|
6282
|
+
return {
|
|
6233
6283
|
createContext: createInstrumentationIdContext(),
|
|
6234
6284
|
request: [
|
|
6235
6285
|
buildThirdPartyTrackerRegisterInterceptor(),
|
|
@@ -6245,31 +6295,36 @@ function buildLexRuntimeDefaultFetchServiceDescriptor(logger, retryService) {
|
|
|
6245
6295
|
buildTransportMarksReceiveInterceptor(),
|
|
6246
6296
|
buildThirdPartyTrackerFinishInterceptor(),
|
|
6247
6297
|
],
|
|
6248
|
-
}, retryService);
|
|
6249
|
-
return {
|
|
6250
|
-
...fetchService,
|
|
6251
6298
|
};
|
|
6252
6299
|
}
|
|
6300
|
+
function buildLexRuntimeDefaultFetchServiceDescriptor(logger, retryService) {
|
|
6301
|
+
const fetchService = buildLexConnectFetchServiceDescriptor(getLexRuntimeDefaultInterceptorConfig(logger), retryService);
|
|
6302
|
+
return { ...fetchService };
|
|
6303
|
+
}
|
|
6253
6304
|
function buildLexRuntimeAllow5xxFetchServiceDescriptor(logger, retryService) {
|
|
6305
|
+
const config = getLexRuntimeDefaultInterceptorConfig(logger);
|
|
6254
6306
|
const fetchService = buildLexConnectFetchServiceDescriptor({
|
|
6255
|
-
|
|
6256
|
-
|
|
6257
|
-
buildThirdPartyTrackerRegisterInterceptor(),
|
|
6258
|
-
buildPageScopedCacheRequestInterceptor(),
|
|
6259
|
-
buildTransportMarksSendInterceptor(),
|
|
6260
|
-
buildCsrfTokenInterceptor(),
|
|
6261
|
-
],
|
|
6307
|
+
...config,
|
|
6308
|
+
// Omit 5xx interceptor - allow 5xx responses to pass through
|
|
6262
6309
|
response: [buildLexRuntimeAuthExpirationRedirectResponseInterceptor(logger)],
|
|
6263
|
-
finally: [
|
|
6264
|
-
buildTransportMarksReceiveInterceptor(),
|
|
6265
|
-
buildThirdPartyTrackerFinishInterceptor(),
|
|
6266
|
-
],
|
|
6267
6310
|
}, retryService);
|
|
6268
6311
|
return {
|
|
6269
6312
|
...fetchService,
|
|
6270
6313
|
tags: { interceptors: 'allow_500s' },
|
|
6271
6314
|
};
|
|
6272
6315
|
}
|
|
6316
|
+
function buildLexRuntimeCompressedFetchServiceDescriptor(logger, retryService) {
|
|
6317
|
+
const config = getLexRuntimeDefaultInterceptorConfig(logger);
|
|
6318
|
+
const fetchService = buildLexConnectFetchServiceDescriptor({
|
|
6319
|
+
...config,
|
|
6320
|
+
// Append compression interceptor last, after any body-modifying interceptors
|
|
6321
|
+
request: [...config.request, buildCompressionInterceptor({ algorithm: 'gzip' })],
|
|
6322
|
+
}, retryService);
|
|
6323
|
+
return {
|
|
6324
|
+
...fetchService,
|
|
6325
|
+
tags: { compression: 'gzip' },
|
|
6326
|
+
};
|
|
6327
|
+
}
|
|
6273
6328
|
// Temporarily cloned from conduit fetch until the retry service is updated there
|
|
6274
6329
|
function buildLexConnectFetchServiceDescriptor(interceptors = { request: [], response: [], finally: [] }, retryService) {
|
|
6275
6330
|
return {
|
|
@@ -9883,6 +9938,7 @@ function initializeOneStore(luvio) {
|
|
|
9883
9938
|
buildServiceDescriptor$n(),
|
|
9884
9939
|
buildServiceDescriptor$f(),
|
|
9885
9940
|
buildLexRuntimeAllow5xxFetchServiceDescriptor(loggerService, retryService),
|
|
9941
|
+
buildLexRuntimeCompressedFetchServiceDescriptor(loggerService, retryService),
|
|
9886
9942
|
buildServiceDescriptor$d(luvio),
|
|
9887
9943
|
luvioUiapiRecordsServiceDescriptor,
|
|
9888
9944
|
buildServiceDescriptor$c(),
|
|
@@ -9917,4 +9973,4 @@ function ldsEngineCreator() {
|
|
|
9917
9973
|
}
|
|
9918
9974
|
|
|
9919
9975
|
export { LexRequestStrategy, PdlRequestPriority, buildPredictorForContext, ldsEngineCreator as default, initializeLDS, initializeOneStore, notifyUpdateAvailableFactory, registerRequestStrategy, saveRequestAsPrediction, unregisterRequestStrategy, whenPredictionsReady };
|
|
9920
|
-
// version: 1.404.0-
|
|
9976
|
+
// version: 1.404.0-dev15-9429fea811
|
|
@@ -3,4 +3,5 @@ import { Interceptors, type FetchServiceDescriptor } from '@conduit-client/servi
|
|
|
3
3
|
import { RetryService } from '@conduit-client/service-retry/v1';
|
|
4
4
|
export declare function buildLexRuntimeDefaultFetchServiceDescriptor(logger: LoggerService, retryService?: RetryService<Response>): FetchServiceDescriptor;
|
|
5
5
|
export declare function buildLexRuntimeAllow5xxFetchServiceDescriptor(logger: LoggerService, retryService?: RetryService<Response>): FetchServiceDescriptor;
|
|
6
|
+
export declare function buildLexRuntimeCompressedFetchServiceDescriptor(logger: LoggerService, retryService?: RetryService<Response>): FetchServiceDescriptor;
|
|
6
7
|
export declare function buildLexConnectFetchServiceDescriptor<Context = any>(interceptors?: Interceptors<Context>, retryService?: RetryService<Response>): FetchServiceDescriptor;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-runtime-aura",
|
|
3
|
-
"version": "1.404.0-
|
|
3
|
+
"version": "1.404.0-dev15",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "LDS engine for Aura runtime",
|
|
6
6
|
"main": "dist/ldsEngineCreator.js",
|
|
@@ -34,49 +34,49 @@
|
|
|
34
34
|
"release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-runtime-aura"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@conduit-client/service-provisioner": "3.7.0-
|
|
38
|
-
"@conduit-client/tools-core": "3.7.0-
|
|
39
|
-
"@salesforce/lds-adapters-apex": "^1.404.0-
|
|
40
|
-
"@salesforce/lds-adapters-uiapi": "^1.404.0-
|
|
41
|
-
"@salesforce/lds-ads-bridge": "^1.404.0-
|
|
42
|
-
"@salesforce/lds-aura-storage": "^1.404.0-
|
|
43
|
-
"@salesforce/lds-bindings": "^1.404.0-
|
|
44
|
-
"@salesforce/lds-instrumentation": "^1.404.0-
|
|
45
|
-
"@salesforce/lds-network-aura": "^1.404.0-
|
|
46
|
-
"@salesforce/lds-network-fetch": "^1.404.0-
|
|
37
|
+
"@conduit-client/service-provisioner": "3.7.0-dev3",
|
|
38
|
+
"@conduit-client/tools-core": "3.7.0-dev3",
|
|
39
|
+
"@salesforce/lds-adapters-apex": "^1.404.0-dev15",
|
|
40
|
+
"@salesforce/lds-adapters-uiapi": "^1.404.0-dev15",
|
|
41
|
+
"@salesforce/lds-ads-bridge": "^1.404.0-dev15",
|
|
42
|
+
"@salesforce/lds-aura-storage": "^1.404.0-dev15",
|
|
43
|
+
"@salesforce/lds-bindings": "^1.404.0-dev15",
|
|
44
|
+
"@salesforce/lds-instrumentation": "^1.404.0-dev15",
|
|
45
|
+
"@salesforce/lds-network-aura": "^1.404.0-dev15",
|
|
46
|
+
"@salesforce/lds-network-fetch": "^1.404.0-dev15",
|
|
47
47
|
"jwt-encode": "1.0.1"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@conduit-client/command-aura-graphql-normalized-cache-control": "3.7.0-
|
|
51
|
-
"@conduit-client/command-aura-network": "3.7.0-
|
|
52
|
-
"@conduit-client/command-aura-normalized-cache-control": "3.7.0-
|
|
53
|
-
"@conduit-client/command-aura-resource-cache-control": "3.7.0-
|
|
54
|
-
"@conduit-client/command-fetch-network": "3.7.0-
|
|
55
|
-
"@conduit-client/command-http-graphql-normalized-cache-control": "3.7.0-
|
|
56
|
-
"@conduit-client/command-http-normalized-cache-control": "3.7.0-
|
|
57
|
-
"@conduit-client/command-ndjson": "3.7.0-
|
|
58
|
-
"@conduit-client/command-network": "3.7.0-
|
|
59
|
-
"@conduit-client/command-sse": "3.7.0-
|
|
60
|
-
"@conduit-client/command-streaming": "3.7.0-
|
|
61
|
-
"@conduit-client/service-aura-network": "3.7.0-
|
|
62
|
-
"@conduit-client/service-bindings-imperative": "3.7.0-
|
|
63
|
-
"@conduit-client/service-bindings-lwc": "3.7.0-
|
|
64
|
-
"@conduit-client/service-cache": "3.7.0-
|
|
65
|
-
"@conduit-client/service-cache-control": "3.7.0-
|
|
66
|
-
"@conduit-client/service-cache-inclusion-policy": "3.7.0-
|
|
67
|
-
"@conduit-client/service-feature-flags": "3.7.0-
|
|
68
|
-
"@conduit-client/service-fetch-network": "3.7.0-
|
|
69
|
-
"@conduit-client/service-instrument-command": "3.7.0-
|
|
70
|
-
"@conduit-client/service-pubsub": "3.7.0-
|
|
71
|
-
"@conduit-client/service-store": "3.7.0-
|
|
72
|
-
"@conduit-client/utils": "3.7.0-
|
|
50
|
+
"@conduit-client/command-aura-graphql-normalized-cache-control": "3.7.0-dev3",
|
|
51
|
+
"@conduit-client/command-aura-network": "3.7.0-dev3",
|
|
52
|
+
"@conduit-client/command-aura-normalized-cache-control": "3.7.0-dev3",
|
|
53
|
+
"@conduit-client/command-aura-resource-cache-control": "3.7.0-dev3",
|
|
54
|
+
"@conduit-client/command-fetch-network": "3.7.0-dev3",
|
|
55
|
+
"@conduit-client/command-http-graphql-normalized-cache-control": "3.7.0-dev3",
|
|
56
|
+
"@conduit-client/command-http-normalized-cache-control": "3.7.0-dev3",
|
|
57
|
+
"@conduit-client/command-ndjson": "3.7.0-dev3",
|
|
58
|
+
"@conduit-client/command-network": "3.7.0-dev3",
|
|
59
|
+
"@conduit-client/command-sse": "3.7.0-dev3",
|
|
60
|
+
"@conduit-client/command-streaming": "3.7.0-dev3",
|
|
61
|
+
"@conduit-client/service-aura-network": "3.7.0-dev3",
|
|
62
|
+
"@conduit-client/service-bindings-imperative": "3.7.0-dev3",
|
|
63
|
+
"@conduit-client/service-bindings-lwc": "3.7.0-dev3",
|
|
64
|
+
"@conduit-client/service-cache": "3.7.0-dev3",
|
|
65
|
+
"@conduit-client/service-cache-control": "3.7.0-dev3",
|
|
66
|
+
"@conduit-client/service-cache-inclusion-policy": "3.7.0-dev3",
|
|
67
|
+
"@conduit-client/service-feature-flags": "3.7.0-dev3",
|
|
68
|
+
"@conduit-client/service-fetch-network": "3.7.0-dev3",
|
|
69
|
+
"@conduit-client/service-instrument-command": "3.7.0-dev3",
|
|
70
|
+
"@conduit-client/service-pubsub": "3.7.0-dev3",
|
|
71
|
+
"@conduit-client/service-store": "3.7.0-dev3",
|
|
72
|
+
"@conduit-client/utils": "3.7.0-dev3",
|
|
73
73
|
"@luvio/network-adapter-composable": "0.158.7",
|
|
74
74
|
"@luvio/network-adapter-fetch": "0.158.7",
|
|
75
75
|
"@lwc/state": "^0.23.0",
|
|
76
|
-
"@salesforce/lds-adapters-onestore-graphql": "^1.404.0-
|
|
77
|
-
"@salesforce/lds-adapters-uiapi-lex": "^1.404.0-
|
|
78
|
-
"@salesforce/lds-luvio-service": "^1.404.0-
|
|
79
|
-
"@salesforce/lds-luvio-uiapi-records-service": "^1.404.0-
|
|
76
|
+
"@salesforce/lds-adapters-onestore-graphql": "^1.404.0-dev15",
|
|
77
|
+
"@salesforce/lds-adapters-uiapi-lex": "^1.404.0-dev15",
|
|
78
|
+
"@salesforce/lds-luvio-service": "^1.404.0-dev15",
|
|
79
|
+
"@salesforce/lds-luvio-uiapi-records-service": "^1.404.0-dev15"
|
|
80
80
|
},
|
|
81
81
|
"luvioBundlesize": [
|
|
82
82
|
{
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"maxSize": {
|
|
85
85
|
"none": "350 kB",
|
|
86
86
|
"min": "190 kB",
|
|
87
|
-
"compressed": "
|
|
87
|
+
"compressed": "59.8 kB"
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
],
|