@salesforce/lds-runtime-webruntime 1.443.0 → 1.444.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.
@@ -176,7 +176,10 @@ function deepEquals$1(x, y) {
176
176
  }
177
177
  for (let i = 0; i < xkeys.length; ++i) {
178
178
  const key = xkeys[i];
179
- if (!deepEquals$1(x[key], y[key])) {
179
+ if (!deepEquals$1(
180
+ x[key],
181
+ y[key]
182
+ )) {
180
183
  return false;
181
184
  }
182
185
  }
@@ -246,6 +249,19 @@ var HttpStatusCode = /* @__PURE__ */ ((HttpStatusCode2) => {
246
249
  HttpStatusCode2[HttpStatusCode2["GatewayTimeout"] = 504] = "GatewayTimeout";
247
250
  return HttpStatusCode2;
248
251
  })(HttpStatusCode || {});
252
+ function getFetchResponseFromAuraError(err2) {
253
+ if (err2.data !== void 0 && err2.data.statusCode !== void 0) {
254
+ let data = {};
255
+ data = err2.data;
256
+ if (err2.id !== void 0) {
257
+ data.id = err2.id;
258
+ }
259
+ return new FetchResponse(data.statusCode, data);
260
+ }
261
+ return new FetchResponse(500, {
262
+ error: err2.message
263
+ });
264
+ }
249
265
  function getStatusText(status) {
250
266
  switch (status) {
251
267
  case 200:
@@ -387,7 +403,7 @@ class AuraNetworkCommand extends NetworkCommand$1 {
387
403
  );
388
404
  }
389
405
  coerceAuraErrors(auraErrors) {
390
- return toError(auraErrors[0]);
406
+ return new UserVisibleError(getFetchResponseFromAuraError(auraErrors[0]));
391
407
  }
392
408
  /**
393
409
  * Customize how non-2xx fetch fallback responses are converted into errors.
@@ -572,7 +588,10 @@ function deepEquals(x, y) {
572
588
  }
573
589
  for (let i = 0; i < xkeys.length; ++i) {
574
590
  const key = xkeys[i];
575
- if (!deepEquals(x[key], y[key])) {
591
+ if (!deepEquals(
592
+ x[key],
593
+ y[key]
594
+ )) {
576
595
  return false;
577
596
  }
578
597
  }
@@ -3230,7 +3249,7 @@ function buildServiceDescriptor$9(luvio) {
3230
3249
  },
3231
3250
  };
3232
3251
  }
3233
- // version: 1.443.0-be70f6bb6e
3252
+ // version: 1.444.0-a7f42f9edf
3234
3253
 
3235
3254
  /**
3236
3255
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -3256,7 +3275,7 @@ function buildServiceDescriptor$8(notifyRecordUpdateAvailable, getNormalizedLuvi
3256
3275
  },
3257
3276
  };
3258
3277
  }
3259
- // version: 1.443.0-be70f6bb6e
3278
+ // version: 1.444.0-a7f42f9edf
3260
3279
 
3261
3280
  class JsonSchemaViolationError extends Error {
3262
3281
  constructor(message, validationErrors) {
@@ -3917,7 +3936,10 @@ class GraphQLImperativeBindingsService {
3917
3936
  const options = {
3918
3937
  acceptedOperations: ["query"]
3919
3938
  };
3920
- const result = resolveAndValidateGraphQLConfig(params[0], options);
3939
+ const result = resolveAndValidateGraphQLConfig(
3940
+ params[0],
3941
+ options
3942
+ );
3921
3943
  if (result?.isErr()) {
3922
3944
  return result.error;
3923
3945
  }
@@ -4114,7 +4136,10 @@ class GraphQLMutationBindingsService {
4114
4136
  const options = {
4115
4137
  acceptedOperations: ["mutation"]
4116
4138
  };
4117
- const result2 = resolveAndValidateGraphQLConfig(params[0], options);
4139
+ const result2 = resolveAndValidateGraphQLConfig(
4140
+ params[0],
4141
+ options
4142
+ );
4118
4143
  if (result2?.isErr()) {
4119
4144
  return {
4120
4145
  data: void 0,
@@ -5246,4 +5271,4 @@ withDefaultLuvio((luvio) => {
5246
5271
  ];
5247
5272
  setServices(services);
5248
5273
  });
5249
- // version: 1.443.0-be70f6bb6e
5274
+ // version: 1.444.0-a7f42f9edf
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-runtime-webruntime",
3
- "version": "1.443.0",
3
+ "version": "1.444.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.22.0",
39
- "@conduit-client/tools-core": "3.22.0",
38
+ "@conduit-client/service-provisioner": "3.23.1",
39
+ "@conduit-client/tools-core": "3.23.1",
40
40
  "jwt-encode": "1.0.1"
41
41
  },
42
42
  "dependencies": {
43
- "@conduit-client/command-aura-network": "3.22.0",
44
- "@conduit-client/command-aura-normalized-cache-control": "3.22.0",
45
- "@conduit-client/command-aura-resource-cache-control": "3.22.0",
46
- "@conduit-client/command-fetch-network": "3.22.0",
47
- "@conduit-client/command-http-normalized-cache-control": "3.22.0",
48
- "@conduit-client/command-ndjson": "3.22.0",
49
- "@conduit-client/command-network": "3.22.0",
50
- "@conduit-client/command-sse": "3.22.0",
51
- "@conduit-client/command-streaming": "3.22.0",
52
- "@conduit-client/jwt-manager": "3.22.0",
53
- "@conduit-client/service-aura-network": "3.22.0",
54
- "@conduit-client/service-bindings-imperative": "3.22.0",
55
- "@conduit-client/service-bindings-lwc": "3.22.0",
56
- "@conduit-client/service-cache": "3.22.0",
57
- "@conduit-client/service-cache-control": "3.22.0",
58
- "@conduit-client/service-cache-inclusion-policy": "3.22.0",
59
- "@conduit-client/service-fetch-network": "3.22.0",
60
- "@conduit-client/service-instrument-command": "3.22.0",
61
- "@conduit-client/service-pubsub": "3.22.0",
62
- "@conduit-client/service-store": "3.22.0",
63
- "@conduit-client/utils": "3.22.0",
64
- "@luvio/network-adapter-composable": "0.160.5",
65
- "@luvio/network-adapter-fetch": "0.160.5",
43
+ "@conduit-client/command-aura-network": "3.23.1",
44
+ "@conduit-client/command-aura-normalized-cache-control": "3.23.1",
45
+ "@conduit-client/command-aura-resource-cache-control": "3.23.1",
46
+ "@conduit-client/command-fetch-network": "3.23.1",
47
+ "@conduit-client/command-http-normalized-cache-control": "3.23.1",
48
+ "@conduit-client/command-ndjson": "3.23.1",
49
+ "@conduit-client/command-network": "3.23.1",
50
+ "@conduit-client/command-sse": "3.23.1",
51
+ "@conduit-client/command-streaming": "3.23.1",
52
+ "@conduit-client/jwt-manager": "3.23.1",
53
+ "@conduit-client/service-aura-network": "3.23.1",
54
+ "@conduit-client/service-bindings-imperative": "3.23.1",
55
+ "@conduit-client/service-bindings-lwc": "3.23.1",
56
+ "@conduit-client/service-cache": "3.23.1",
57
+ "@conduit-client/service-cache-control": "3.23.1",
58
+ "@conduit-client/service-cache-inclusion-policy": "3.23.1",
59
+ "@conduit-client/service-fetch-network": "3.23.1",
60
+ "@conduit-client/service-instrument-command": "3.23.1",
61
+ "@conduit-client/service-pubsub": "3.23.1",
62
+ "@conduit-client/service-store": "3.23.1",
63
+ "@conduit-client/utils": "3.23.1",
64
+ "@luvio/network-adapter-composable": "0.161.0",
65
+ "@luvio/network-adapter-fetch": "0.161.0",
66
66
  "@salesforce/lds-adapters-uiapi-lex": "^1.415.0",
67
- "@salesforce/lds-default-luvio": "^1.443.0",
68
- "@salesforce/lds-luvio-service": "^1.443.0",
69
- "@salesforce/lds-luvio-uiapi-records-service": "^1.443.0"
67
+ "@salesforce/lds-default-luvio": "^1.444.0",
68
+ "@salesforce/lds-luvio-service": "^1.444.0",
69
+ "@salesforce/lds-luvio-uiapi-records-service": "^1.444.0"
70
70
  },
71
71
  "luvioBundlesize": [
72
72
  {
@@ -74,7 +74,7 @@
74
74
  "maxSize": {
75
75
  "none": "163 kB",
76
76
  "min": "85 kB",
77
- "compressed": "26 kB"
77
+ "compressed": "26.2 kB"
78
78
  }
79
79
  }
80
80
  ],