@salesforce/lds-runtime-webruntime 1.412.1 → 1.414.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 +79 -23
- package/package.json +28 -28
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { getInstrumentation } from 'o11y/client';
|
|
16
16
|
import 'force/luvioTypeNormalization1';
|
|
17
|
-
import { Kind, visit, print,
|
|
17
|
+
import { Kind, visit, print, resolveAndValidateGraphQLConfig } from 'force/luvioOnestoreGraphqlParser';
|
|
18
18
|
import { setServices } from 'force/luvioServiceProvisioner1';
|
|
19
19
|
export { default, resolve, setServices } from 'force/luvioServiceProvisioner1';
|
|
20
20
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
@@ -409,7 +409,10 @@ class AuraNetworkCommand extends NetworkCommand$1 {
|
|
|
409
409
|
coerceAuraErrors(auraErrors) {
|
|
410
410
|
return toError(auraErrors[0]);
|
|
411
411
|
}
|
|
412
|
-
|
|
412
|
+
/**
|
|
413
|
+
* Customize how non-2xx fetch fallback responses are converted into errors.
|
|
414
|
+
*/
|
|
415
|
+
async coerceError(errorResponse) {
|
|
413
416
|
return toError(errorResponse.statusText);
|
|
414
417
|
}
|
|
415
418
|
convertAuraResponseToData(responsePromise, coerceError) {
|
|
@@ -447,7 +450,7 @@ class AuraNetworkCommand extends NetworkCommand$1 {
|
|
|
447
450
|
}
|
|
448
451
|
});
|
|
449
452
|
} else {
|
|
450
|
-
return this.
|
|
453
|
+
return this.coerceError(response2).then((coercedError) => {
|
|
451
454
|
return err$1(coercedError);
|
|
452
455
|
}).finally(() => {
|
|
453
456
|
try {
|
|
@@ -1088,7 +1091,7 @@ let AuraCacheControlCommand$1 = class AuraCacheControlCommand extends CacheContr
|
|
|
1088
1091
|
coerceAuraErrors(auraErrors) {
|
|
1089
1092
|
return toError(auraErrors[0]);
|
|
1090
1093
|
}
|
|
1091
|
-
async
|
|
1094
|
+
async coerceError(errorResponse) {
|
|
1092
1095
|
return toError(errorResponse.statusText);
|
|
1093
1096
|
}
|
|
1094
1097
|
processAuraReturnValue(auraReturnValue) {
|
|
@@ -1134,7 +1137,7 @@ let AuraCacheControlCommand$1 = class AuraCacheControlCommand extends CacheContr
|
|
|
1134
1137
|
}
|
|
1135
1138
|
});
|
|
1136
1139
|
} else {
|
|
1137
|
-
return this.
|
|
1140
|
+
return this.coerceError(response2).then((coercedError) => {
|
|
1138
1141
|
return err$1(coercedError);
|
|
1139
1142
|
}).finally(() => {
|
|
1140
1143
|
try {
|
|
@@ -1236,7 +1239,7 @@ class AuraCacheControlCommand extends CacheControlCommand {
|
|
|
1236
1239
|
coerceAuraErrors(auraErrors) {
|
|
1237
1240
|
return toError(auraErrors[0]);
|
|
1238
1241
|
}
|
|
1239
|
-
async
|
|
1242
|
+
async coerceError(errorResponse) {
|
|
1240
1243
|
return toError(errorResponse.statusText);
|
|
1241
1244
|
}
|
|
1242
1245
|
processAuraReturnValue(auraReturnValue) {
|
|
@@ -1282,7 +1285,7 @@ class AuraCacheControlCommand extends CacheControlCommand {
|
|
|
1282
1285
|
}
|
|
1283
1286
|
});
|
|
1284
1287
|
} else {
|
|
1285
|
-
return this.
|
|
1288
|
+
return this.coerceError(response2).then((coercedError) => {
|
|
1286
1289
|
return err$1(coercedError);
|
|
1287
1290
|
}).finally(() => {
|
|
1288
1291
|
try {
|
|
@@ -3309,7 +3312,7 @@ function buildServiceDescriptor$9(luvio) {
|
|
|
3309
3312
|
},
|
|
3310
3313
|
};
|
|
3311
3314
|
}
|
|
3312
|
-
// version: 1.
|
|
3315
|
+
// version: 1.414.0-3d95b40524
|
|
3313
3316
|
|
|
3314
3317
|
/**
|
|
3315
3318
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -3335,7 +3338,7 @@ function buildServiceDescriptor$8(notifyRecordUpdateAvailable, getNormalizedLuvi
|
|
|
3335
3338
|
},
|
|
3336
3339
|
};
|
|
3337
3340
|
}
|
|
3338
|
-
// version: 1.
|
|
3341
|
+
// version: 1.414.0-3d95b40524
|
|
3339
3342
|
|
|
3340
3343
|
/*!
|
|
3341
3344
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -3940,7 +3943,16 @@ class GraphQLImperativeBindingsService {
|
|
|
3940
3943
|
return async (...params) => {
|
|
3941
3944
|
try {
|
|
3942
3945
|
if (params.length) {
|
|
3943
|
-
|
|
3946
|
+
const options = {
|
|
3947
|
+
acceptedOperations: ["query"]
|
|
3948
|
+
};
|
|
3949
|
+
const result = resolveAndValidateGraphQLConfig(params[0], options);
|
|
3950
|
+
if (result == null ? void 0 : result.isErr()) {
|
|
3951
|
+
return result.error;
|
|
3952
|
+
}
|
|
3953
|
+
if (result == null ? void 0 : result.isOk()) {
|
|
3954
|
+
params[0] = result.value;
|
|
3955
|
+
}
|
|
3944
3956
|
}
|
|
3945
3957
|
return await buildBaseImperativeInvoker(getCommand, (result) => this.transformResult(result, exposeRefresh))(...params);
|
|
3946
3958
|
} catch (error) {
|
|
@@ -4031,7 +4043,19 @@ function buildServiceDescriptor$2$1() {
|
|
|
4031
4043
|
class GraphQLLegacyImperativeBindingsService {
|
|
4032
4044
|
bind(getCommand) {
|
|
4033
4045
|
const invoke = async (config, requestContext, callback) => {
|
|
4034
|
-
|
|
4046
|
+
if (config) {
|
|
4047
|
+
const options = {
|
|
4048
|
+
acceptedOperations: ["query"]
|
|
4049
|
+
};
|
|
4050
|
+
const result = resolveAndValidateGraphQLConfig(config, options);
|
|
4051
|
+
if (result == null ? void 0 : result.isErr()) {
|
|
4052
|
+
callback(result.error);
|
|
4053
|
+
return;
|
|
4054
|
+
}
|
|
4055
|
+
if (result == null ? void 0 : result.isOk()) {
|
|
4056
|
+
config = result.value;
|
|
4057
|
+
}
|
|
4058
|
+
}
|
|
4035
4059
|
const command = getCommand({ config, assertIsValid });
|
|
4036
4060
|
try {
|
|
4037
4061
|
const overrides = getOverridesForLegacyRequestContext(requestContext);
|
|
@@ -4060,7 +4084,20 @@ class GraphQLLegacyImperativeBindingsService {
|
|
|
4060
4084
|
}
|
|
4061
4085
|
};
|
|
4062
4086
|
const subscribe = (config, requestContext, callback) => {
|
|
4063
|
-
|
|
4087
|
+
if (config) {
|
|
4088
|
+
const options = {
|
|
4089
|
+
acceptedOperations: ["query"]
|
|
4090
|
+
};
|
|
4091
|
+
const result = resolveAndValidateGraphQLConfig(config, options);
|
|
4092
|
+
if (result == null ? void 0 : result.isErr()) {
|
|
4093
|
+
callback(result.error);
|
|
4094
|
+
return () => {
|
|
4095
|
+
};
|
|
4096
|
+
}
|
|
4097
|
+
if (result == null ? void 0 : result.isOk()) {
|
|
4098
|
+
config = result.value;
|
|
4099
|
+
}
|
|
4100
|
+
}
|
|
4064
4101
|
const command = getCommand({ config, assertIsValid });
|
|
4065
4102
|
let unsubscribe = () => {
|
|
4066
4103
|
};
|
|
@@ -4109,9 +4146,19 @@ class GraphQLMutationBindingsService {
|
|
|
4109
4146
|
return async (...params) => {
|
|
4110
4147
|
try {
|
|
4111
4148
|
if (params.length) {
|
|
4112
|
-
|
|
4149
|
+
const options = {
|
|
4113
4150
|
acceptedOperations: ["mutation"]
|
|
4114
|
-
}
|
|
4151
|
+
};
|
|
4152
|
+
const result2 = resolveAndValidateGraphQLConfig(params[0], options);
|
|
4153
|
+
if (result2 == null ? void 0 : result2.isErr()) {
|
|
4154
|
+
return {
|
|
4155
|
+
data: void 0,
|
|
4156
|
+
errors: result2.error.errors
|
|
4157
|
+
};
|
|
4158
|
+
}
|
|
4159
|
+
if (result2 == null ? void 0 : result2.isOk()) {
|
|
4160
|
+
params[0] = result2.value;
|
|
4161
|
+
}
|
|
4115
4162
|
}
|
|
4116
4163
|
const command = getCommand({ params, assertIsValid });
|
|
4117
4164
|
const result = await command.execute({ cacheControlConfig: { type: "no-cache" } });
|
|
@@ -4441,16 +4488,25 @@ class GraphQLCommandWireAdapterConstructor extends CommandWireAdapterConstructor
|
|
|
4441
4488
|
}
|
|
4442
4489
|
update(config, _context) {
|
|
4443
4490
|
this.unsubscribe();
|
|
4444
|
-
const
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4491
|
+
const options = {
|
|
4492
|
+
acceptedOperations: ["query"]
|
|
4493
|
+
};
|
|
4494
|
+
const result = resolveAndValidateGraphQLConfig(config, options);
|
|
4495
|
+
if (!result) {
|
|
4496
|
+
return;
|
|
4497
|
+
}
|
|
4498
|
+
if (result.isErr()) {
|
|
4499
|
+
const error = result.error;
|
|
4500
|
+
this.callback({
|
|
4501
|
+
data: void 0,
|
|
4502
|
+
errors: error.errors
|
|
4503
|
+
});
|
|
4504
|
+
return;
|
|
4450
4505
|
}
|
|
4506
|
+
const { query, ...rest } = result.value;
|
|
4451
4507
|
this.config = {
|
|
4452
|
-
|
|
4453
|
-
|
|
4508
|
+
query,
|
|
4509
|
+
...sanitize(rest)
|
|
4454
4510
|
};
|
|
4455
4511
|
this.invokeAdapter();
|
|
4456
4512
|
}
|
|
@@ -5134,4 +5190,4 @@ withDefaultLuvio((luvio) => {
|
|
|
5134
5190
|
];
|
|
5135
5191
|
setServices(services);
|
|
5136
5192
|
});
|
|
5137
|
-
// version: 1.
|
|
5193
|
+
// version: 1.414.0-ff06871479
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-runtime-webruntime",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.414.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "LDS engine for Webruntime runtime",
|
|
6
6
|
"main": "dist/ldsWebruntimeOneStoreInit.js",
|
|
@@ -35,38 +35,38 @@
|
|
|
35
35
|
"ready": "yarn build && jest --collectCoverage && yarn test:size && yarn release:corejar"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@conduit-client/service-provisioner": "3.
|
|
39
|
-
"@conduit-client/tools-core": "3.
|
|
38
|
+
"@conduit-client/service-provisioner": "3.9.0",
|
|
39
|
+
"@conduit-client/tools-core": "3.9.0",
|
|
40
40
|
"jwt-encode": "1.0.1"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@conduit-client/command-aura-network": "3.
|
|
44
|
-
"@conduit-client/command-aura-normalized-cache-control": "3.
|
|
45
|
-
"@conduit-client/command-aura-resource-cache-control": "3.
|
|
46
|
-
"@conduit-client/command-fetch-network": "3.
|
|
47
|
-
"@conduit-client/command-http-normalized-cache-control": "3.
|
|
48
|
-
"@conduit-client/command-ndjson": "3.
|
|
49
|
-
"@conduit-client/command-network": "3.
|
|
50
|
-
"@conduit-client/command-sse": "3.
|
|
51
|
-
"@conduit-client/command-streaming": "3.
|
|
52
|
-
"@conduit-client/jwt-manager": "3.
|
|
53
|
-
"@conduit-client/service-aura-network": "3.
|
|
54
|
-
"@conduit-client/service-bindings-imperative": "3.
|
|
55
|
-
"@conduit-client/service-bindings-lwc": "3.
|
|
56
|
-
"@conduit-client/service-cache": "3.
|
|
57
|
-
"@conduit-client/service-cache-control": "3.
|
|
58
|
-
"@conduit-client/service-cache-inclusion-policy": "3.
|
|
59
|
-
"@conduit-client/service-fetch-network": "3.
|
|
60
|
-
"@conduit-client/service-instrument-command": "3.
|
|
61
|
-
"@conduit-client/service-pubsub": "3.
|
|
62
|
-
"@conduit-client/service-store": "3.
|
|
63
|
-
"@conduit-client/utils": "3.
|
|
43
|
+
"@conduit-client/command-aura-network": "3.9.0",
|
|
44
|
+
"@conduit-client/command-aura-normalized-cache-control": "3.9.0",
|
|
45
|
+
"@conduit-client/command-aura-resource-cache-control": "3.9.0",
|
|
46
|
+
"@conduit-client/command-fetch-network": "3.9.0",
|
|
47
|
+
"@conduit-client/command-http-normalized-cache-control": "3.9.0",
|
|
48
|
+
"@conduit-client/command-ndjson": "3.9.0",
|
|
49
|
+
"@conduit-client/command-network": "3.9.0",
|
|
50
|
+
"@conduit-client/command-sse": "3.9.0",
|
|
51
|
+
"@conduit-client/command-streaming": "3.9.0",
|
|
52
|
+
"@conduit-client/jwt-manager": "3.9.0",
|
|
53
|
+
"@conduit-client/service-aura-network": "3.9.0",
|
|
54
|
+
"@conduit-client/service-bindings-imperative": "3.9.0",
|
|
55
|
+
"@conduit-client/service-bindings-lwc": "3.9.0",
|
|
56
|
+
"@conduit-client/service-cache": "3.9.0",
|
|
57
|
+
"@conduit-client/service-cache-control": "3.9.0",
|
|
58
|
+
"@conduit-client/service-cache-inclusion-policy": "3.9.0",
|
|
59
|
+
"@conduit-client/service-fetch-network": "3.9.0",
|
|
60
|
+
"@conduit-client/service-instrument-command": "3.9.0",
|
|
61
|
+
"@conduit-client/service-pubsub": "3.9.0",
|
|
62
|
+
"@conduit-client/service-store": "3.9.0",
|
|
63
|
+
"@conduit-client/utils": "3.9.0",
|
|
64
64
|
"@luvio/network-adapter-composable": "0.158.7",
|
|
65
65
|
"@luvio/network-adapter-fetch": "0.158.7",
|
|
66
|
-
"@salesforce/lds-adapters-uiapi-lex": "^1.
|
|
67
|
-
"@salesforce/lds-default-luvio": "^1.
|
|
68
|
-
"@salesforce/lds-luvio-service": "^1.
|
|
69
|
-
"@salesforce/lds-luvio-uiapi-records-service": "^1.
|
|
66
|
+
"@salesforce/lds-adapters-uiapi-lex": "^1.414.0",
|
|
67
|
+
"@salesforce/lds-default-luvio": "^1.414.0",
|
|
68
|
+
"@salesforce/lds-luvio-service": "^1.414.0",
|
|
69
|
+
"@salesforce/lds-luvio-uiapi-records-service": "^1.414.0"
|
|
70
70
|
},
|
|
71
71
|
"luvioBundlesize": [
|
|
72
72
|
{
|