@salesforce/lds-runtime-webruntime 1.396.0 → 1.397.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/ldsWebruntimeOneStoreInit.js +27 -18
- package/package.json +25 -25
|
@@ -4071,7 +4071,7 @@ function buildServiceDescriptor$2(luvio) {
|
|
|
4071
4071
|
},
|
|
4072
4072
|
};
|
|
4073
4073
|
}
|
|
4074
|
-
// version: 1.
|
|
4074
|
+
// version: 1.397.0-006831ea37
|
|
4075
4075
|
|
|
4076
4076
|
/**
|
|
4077
4077
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -4097,7 +4097,7 @@ function buildServiceDescriptor$1(notifyRecordUpdateAvailable, getNormalizedLuvi
|
|
|
4097
4097
|
},
|
|
4098
4098
|
};
|
|
4099
4099
|
}
|
|
4100
|
-
// version: 1.
|
|
4100
|
+
// version: 1.397.0-006831ea37
|
|
4101
4101
|
|
|
4102
4102
|
/*!
|
|
4103
4103
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -4462,35 +4462,44 @@ function buildServiceDescriptor(interceptors = { request: [], response: [] }, re
|
|
|
4462
4462
|
}
|
|
4463
4463
|
};
|
|
4464
4464
|
}
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4465
|
+
function setHeader(headerName, headerValue, [resource, options = {}], {
|
|
4466
|
+
throwOnExisting = false,
|
|
4467
|
+
errorMessage = `Unexpected ${headerName} header encountered`
|
|
4468
|
+
} = {}) {
|
|
4469
|
+
let hasHeaderBeenSet = false;
|
|
4469
4470
|
if (resource instanceof Request && !(options == null ? void 0 : options.headers)) {
|
|
4470
|
-
if (resource.headers.has(
|
|
4471
|
-
throw new Error(
|
|
4471
|
+
if (throwOnExisting && resource.headers.has(headerName)) {
|
|
4472
|
+
throw new Error(errorMessage);
|
|
4472
4473
|
}
|
|
4473
|
-
resource.headers.set(
|
|
4474
|
-
|
|
4474
|
+
resource.headers.set(headerName, headerValue);
|
|
4475
|
+
hasHeaderBeenSet = true;
|
|
4475
4476
|
}
|
|
4476
4477
|
if ((options == null ? void 0 : options.headers) instanceof Headers) {
|
|
4477
|
-
if (
|
|
4478
|
-
throw new Error(
|
|
4478
|
+
if (throwOnExisting && options.headers.has(headerName)) {
|
|
4479
|
+
throw new Error(errorMessage);
|
|
4479
4480
|
}
|
|
4480
|
-
options
|
|
4481
|
+
options.headers.set(headerName, headerValue);
|
|
4481
4482
|
} else {
|
|
4482
|
-
if ((options == null ? void 0 : options.headers) && Reflect.has(options
|
|
4483
|
-
throw new Error(
|
|
4483
|
+
if (throwOnExisting && (options == null ? void 0 : options.headers) && Reflect.has(options.headers, headerName)) {
|
|
4484
|
+
throw new Error(errorMessage);
|
|
4484
4485
|
}
|
|
4485
|
-
if (!
|
|
4486
|
+
if (!hasHeaderBeenSet) {
|
|
4486
4487
|
options.headers = {
|
|
4487
4488
|
...options == null ? void 0 : options.headers,
|
|
4488
|
-
|
|
4489
|
+
[headerName]: headerValue
|
|
4489
4490
|
};
|
|
4490
4491
|
}
|
|
4491
4492
|
}
|
|
4492
4493
|
return [resource, options];
|
|
4493
4494
|
}
|
|
4495
|
+
const UNEXPECTED_AUTHORIZATION_HEADER_MESSAGE = "Unexpected Authorization header encountered. To specify a custom Authorization header, use a Fetch service that is not configured with JwtRequestHeaderInterceptor";
|
|
4496
|
+
function setHeaderAuthorization({ token }, fetchParams) {
|
|
4497
|
+
const authorizationValue = `Bearer ${token}`;
|
|
4498
|
+
return setHeader("Authorization", authorizationValue, fetchParams, {
|
|
4499
|
+
throwOnExisting: true,
|
|
4500
|
+
errorMessage: UNEXPECTED_AUTHORIZATION_HEADER_MESSAGE
|
|
4501
|
+
});
|
|
4502
|
+
}
|
|
4494
4503
|
function buildJwtRequestHeaderInterceptor(jwtManager, jwtRequestModifier = (_e, fetchArgs) => fetchArgs) {
|
|
4495
4504
|
return (args) => {
|
|
4496
4505
|
return resolvedPromiseLike$3(jwtManager.getJwt()).then((token) => {
|
|
@@ -4722,4 +4731,4 @@ const services = [
|
|
|
4722
4731
|
buildServiceDescriptor$1({}, {}),
|
|
4723
4732
|
];
|
|
4724
4733
|
setServices(services);
|
|
4725
|
-
// version: 1.
|
|
4734
|
+
// version: 1.397.0-08bd11d0bc
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-runtime-webruntime",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.397.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "LDS engine for Webruntime runtime",
|
|
6
6
|
"main": "dist/ldsWebruntimeOneStoreInit.js",
|
|
@@ -35,35 +35,35 @@
|
|
|
35
35
|
"ready": "yarn build && jest --collectCoverage && yarn test:size && yarn release:corejar"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@luvio/service-provisioner": "5.
|
|
39
|
-
"@luvio/tools-core": "5.
|
|
38
|
+
"@luvio/service-provisioner": "5.66.0",
|
|
39
|
+
"@luvio/tools-core": "5.66.0",
|
|
40
40
|
"jwt-encode": "1.0.1"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@luvio/command-aura-network": "5.
|
|
44
|
-
"@luvio/command-aura-normalized-cache-control": "5.
|
|
45
|
-
"@luvio/command-aura-resource-cache-control": "5.
|
|
46
|
-
"@luvio/command-fetch-network": "5.
|
|
47
|
-
"@luvio/command-http-normalized-cache-control": "5.
|
|
48
|
-
"@luvio/command-ndjson": "5.
|
|
49
|
-
"@luvio/command-network": "5.
|
|
50
|
-
"@luvio/command-sse": "5.
|
|
51
|
-
"@luvio/command-streaming": "5.
|
|
52
|
-
"@luvio/jwt-manager": "5.
|
|
43
|
+
"@luvio/command-aura-network": "5.66.0",
|
|
44
|
+
"@luvio/command-aura-normalized-cache-control": "5.66.0",
|
|
45
|
+
"@luvio/command-aura-resource-cache-control": "5.66.0",
|
|
46
|
+
"@luvio/command-fetch-network": "5.66.0",
|
|
47
|
+
"@luvio/command-http-normalized-cache-control": "5.66.0",
|
|
48
|
+
"@luvio/command-ndjson": "5.66.0",
|
|
49
|
+
"@luvio/command-network": "5.66.0",
|
|
50
|
+
"@luvio/command-sse": "5.66.0",
|
|
51
|
+
"@luvio/command-streaming": "5.66.0",
|
|
52
|
+
"@luvio/jwt-manager": "5.66.0",
|
|
53
53
|
"@luvio/network-adapter-composable": "0.158.7",
|
|
54
54
|
"@luvio/network-adapter-fetch": "0.158.7",
|
|
55
|
-
"@luvio/service-aura-network": "5.
|
|
56
|
-
"@luvio/service-cache": "5.
|
|
57
|
-
"@luvio/service-cache-control": "5.
|
|
58
|
-
"@luvio/service-cache-inclusion-policy": "5.
|
|
59
|
-
"@luvio/service-fetch-network": "5.
|
|
60
|
-
"@luvio/service-instrument-command": "5.
|
|
61
|
-
"@luvio/service-pubsub": "5.
|
|
62
|
-
"@luvio/service-store": "5.
|
|
63
|
-
"@luvio/utils": "5.
|
|
64
|
-
"@salesforce/lds-adapters-uiapi-lex": "^1.
|
|
65
|
-
"@salesforce/lds-luvio-service": "^1.
|
|
66
|
-
"@salesforce/lds-luvio-uiapi-records-service": "^1.
|
|
55
|
+
"@luvio/service-aura-network": "5.66.0",
|
|
56
|
+
"@luvio/service-cache": "5.66.0",
|
|
57
|
+
"@luvio/service-cache-control": "5.66.0",
|
|
58
|
+
"@luvio/service-cache-inclusion-policy": "5.66.0",
|
|
59
|
+
"@luvio/service-fetch-network": "5.66.0",
|
|
60
|
+
"@luvio/service-instrument-command": "5.66.0",
|
|
61
|
+
"@luvio/service-pubsub": "5.66.0",
|
|
62
|
+
"@luvio/service-store": "5.66.0",
|
|
63
|
+
"@luvio/utils": "5.66.0",
|
|
64
|
+
"@salesforce/lds-adapters-uiapi-lex": "^1.397.0",
|
|
65
|
+
"@salesforce/lds-luvio-service": "^1.397.0",
|
|
66
|
+
"@salesforce/lds-luvio-uiapi-records-service": "^1.397.0"
|
|
67
67
|
},
|
|
68
68
|
"luvioBundlesize": [
|
|
69
69
|
{
|