@salesforce/lds-runtime-aura 1.437.0 → 1.438.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/ldsEngineCreator.js +42 -234
- package/package.json +40 -40
package/dist/ldsEngineCreator.js
CHANGED
|
@@ -49,11 +49,6 @@ import disableCreateContentDocumentAndVersionHTTPLexRuntime from '@salesforce/ga
|
|
|
49
49
|
import useHotspotLimit from '@salesforce/gate/lds.pdl.useHotspotLimit';
|
|
50
50
|
import { registerSubRequestNetworkAdapter } from 'force/ldsNetwork';
|
|
51
51
|
|
|
52
|
-
/*!
|
|
53
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
54
|
-
* All rights reserved.
|
|
55
|
-
* For full license text, see the LICENSE.txt file
|
|
56
|
-
*/
|
|
57
52
|
const { create: create$1, freeze, keys: keys$2, entries: entries$1 } = Object;
|
|
58
53
|
const { isArray: isArray$3 } = Array;
|
|
59
54
|
const { stringify: stringify$3, parse: parse$2 } = JSON;
|
|
@@ -175,7 +170,7 @@ function rejectedPromiseLike$2(reason) {
|
|
|
175
170
|
};
|
|
176
171
|
}
|
|
177
172
|
function isPromiseLike$2(x) {
|
|
178
|
-
return typeof
|
|
173
|
+
return typeof x?.then === "function";
|
|
179
174
|
}
|
|
180
175
|
function stableJSONStringify$2(node) {
|
|
181
176
|
if (node && node.toJSON && typeof node.toJSON === "function") {
|
|
@@ -322,19 +317,9 @@ function logError$1(error) {
|
|
|
322
317
|
console.error("OneStore Command threw an error that we did not expect", error);
|
|
323
318
|
}
|
|
324
319
|
|
|
325
|
-
/*!
|
|
326
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
327
|
-
* All rights reserved.
|
|
328
|
-
* For full license text, see the LICENSE.txt file
|
|
329
|
-
*/
|
|
330
320
|
class BaseCommand {
|
|
331
321
|
}
|
|
332
322
|
|
|
333
|
-
/*!
|
|
334
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
335
|
-
* All rights reserved.
|
|
336
|
-
* For full license text, see the LICENSE.txt file
|
|
337
|
-
*/
|
|
338
323
|
let NetworkCommand$1 = class NetworkCommand extends BaseCommand {
|
|
339
324
|
constructor(services) {
|
|
340
325
|
super();
|
|
@@ -385,11 +370,6 @@ function buildServiceDescriptor$r() {
|
|
|
385
370
|
};
|
|
386
371
|
}
|
|
387
372
|
|
|
388
|
-
/*!
|
|
389
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
390
|
-
* All rights reserved.
|
|
391
|
-
* For full license text, see the LICENSE.txt file
|
|
392
|
-
*/
|
|
393
373
|
class AuraNetworkCommand extends NetworkCommand$1 {
|
|
394
374
|
constructor(services) {
|
|
395
375
|
super(services);
|
|
@@ -496,16 +476,6 @@ function buildServiceDescriptor$q() {
|
|
|
496
476
|
};
|
|
497
477
|
}
|
|
498
478
|
|
|
499
|
-
/*!
|
|
500
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
501
|
-
* All rights reserved.
|
|
502
|
-
* For full license text, see the LICENSE.txt file
|
|
503
|
-
*/
|
|
504
|
-
/*!
|
|
505
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
506
|
-
* All rights reserved.
|
|
507
|
-
* For full license text, see the LICENSE.txt file
|
|
508
|
-
*/
|
|
509
479
|
const { isArray: isArray$2 } = Array;
|
|
510
480
|
let Ok$1 = class Ok {
|
|
511
481
|
constructor(value) {
|
|
@@ -573,7 +543,7 @@ function rejectedPromiseLike$1(reason) {
|
|
|
573
543
|
};
|
|
574
544
|
}
|
|
575
545
|
function isPromiseLike$1(x) {
|
|
576
|
-
return typeof
|
|
546
|
+
return typeof x?.then === "function";
|
|
577
547
|
}
|
|
578
548
|
function deepEquals$1(x, y) {
|
|
579
549
|
if (x === void 0) {
|
|
@@ -864,7 +834,7 @@ class CacheControlCommand extends BaseCommand {
|
|
|
864
834
|
unsubscribe() {
|
|
865
835
|
while (this.unsubscribers.length > 0) {
|
|
866
836
|
const unsubscriber = this.unsubscribers.pop();
|
|
867
|
-
unsubscriber
|
|
837
|
+
unsubscriber?.();
|
|
868
838
|
}
|
|
869
839
|
}
|
|
870
840
|
/**
|
|
@@ -1048,16 +1018,6 @@ function mergeCacheControlConfigs(baseConfig, overrides) {
|
|
|
1048
1018
|
};
|
|
1049
1019
|
}
|
|
1050
1020
|
|
|
1051
|
-
/*!
|
|
1052
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
1053
|
-
* All rights reserved.
|
|
1054
|
-
* For full license text, see the LICENSE.txt file
|
|
1055
|
-
*/
|
|
1056
|
-
/*!
|
|
1057
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
1058
|
-
* All rights reserved.
|
|
1059
|
-
* For full license text, see the LICENSE.txt file
|
|
1060
|
-
*/
|
|
1061
1021
|
let AuraCacheControlCommand$1 = class AuraCacheControlCommand extends CacheControlCommand {
|
|
1062
1022
|
constructor(services) {
|
|
1063
1023
|
super(services);
|
|
@@ -1167,8 +1127,7 @@ class AuraResourceCacheControlCommand extends AuraCacheControlCommand$1 {
|
|
|
1167
1127
|
this.services = services;
|
|
1168
1128
|
}
|
|
1169
1129
|
readFromCache(cache) {
|
|
1170
|
-
|
|
1171
|
-
const data = (_a = cache.get(this.buildKey())) == null ? void 0 : _a.value;
|
|
1130
|
+
const data = cache.get(this.buildKey())?.value;
|
|
1172
1131
|
if (data === void 0) {
|
|
1173
1132
|
return resolvedPromiseLike$2(err$1(new Error("Failed to find data in cache")));
|
|
1174
1133
|
}
|
|
@@ -1197,16 +1156,6 @@ function buildServiceDescriptor$p() {
|
|
|
1197
1156
|
};
|
|
1198
1157
|
}
|
|
1199
1158
|
|
|
1200
|
-
/*!
|
|
1201
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
1202
|
-
* All rights reserved.
|
|
1203
|
-
* For full license text, see the LICENSE.txt file
|
|
1204
|
-
*/
|
|
1205
|
-
/*!
|
|
1206
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
1207
|
-
* All rights reserved.
|
|
1208
|
-
* For full license text, see the LICENSE.txt file
|
|
1209
|
-
*/
|
|
1210
1159
|
class AuraCacheControlCommand extends CacheControlCommand {
|
|
1211
1160
|
constructor(services) {
|
|
1212
1161
|
super(services);
|
|
@@ -1342,16 +1291,6 @@ function buildServiceDescriptor$o() {
|
|
|
1342
1291
|
};
|
|
1343
1292
|
}
|
|
1344
1293
|
|
|
1345
|
-
/*!
|
|
1346
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
1347
|
-
* All rights reserved.
|
|
1348
|
-
* For full license text, see the LICENSE.txt file
|
|
1349
|
-
*/
|
|
1350
|
-
/*!
|
|
1351
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
1352
|
-
* All rights reserved.
|
|
1353
|
-
* For full license text, see the LICENSE.txt file
|
|
1354
|
-
*/
|
|
1355
1294
|
class HttpCacheControlCommand extends CacheControlCommand {
|
|
1356
1295
|
constructor(services) {
|
|
1357
1296
|
super(services);
|
|
@@ -1459,16 +1398,6 @@ function buildServiceDescriptor$n() {
|
|
|
1459
1398
|
};
|
|
1460
1399
|
}
|
|
1461
1400
|
|
|
1462
|
-
/*!
|
|
1463
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
1464
|
-
* All rights reserved.
|
|
1465
|
-
* For full license text, see the LICENSE.txt file
|
|
1466
|
-
*/
|
|
1467
|
-
/*!
|
|
1468
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
1469
|
-
* All rights reserved.
|
|
1470
|
-
* For full license text, see the LICENSE.txt file
|
|
1471
|
-
*/
|
|
1472
1401
|
class NetworkCommand extends BaseCommand {
|
|
1473
1402
|
constructor(services) {
|
|
1474
1403
|
super();
|
|
@@ -1518,7 +1447,7 @@ function hasFetchParams(command) {
|
|
|
1518
1447
|
return command && typeof command === "object" && "fetchParams" in command;
|
|
1519
1448
|
}
|
|
1520
1449
|
function createAbortableDecorator(command, options) {
|
|
1521
|
-
if (!
|
|
1450
|
+
if (!options?.signal || !(options?.signal instanceof AbortSignal)) {
|
|
1522
1451
|
return command;
|
|
1523
1452
|
}
|
|
1524
1453
|
const { signal } = options;
|
|
@@ -1665,11 +1594,6 @@ function buildServiceDescriptor$m() {
|
|
|
1665
1594
|
};
|
|
1666
1595
|
}
|
|
1667
1596
|
|
|
1668
|
-
/*!
|
|
1669
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
1670
|
-
* All rights reserved.
|
|
1671
|
-
* For full license text, see the LICENSE.txt file
|
|
1672
|
-
*/
|
|
1673
1597
|
class StreamingCommand extends BaseCommand {
|
|
1674
1598
|
constructor(services) {
|
|
1675
1599
|
super();
|
|
@@ -1705,11 +1629,6 @@ function buildServiceDescriptor$l() {
|
|
|
1705
1629
|
};
|
|
1706
1630
|
}
|
|
1707
1631
|
|
|
1708
|
-
/*!
|
|
1709
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
1710
|
-
* All rights reserved.
|
|
1711
|
-
* For full license text, see the LICENSE.txt file
|
|
1712
|
-
*/
|
|
1713
1632
|
class SSECommand extends StreamingCommand {
|
|
1714
1633
|
constructor(services) {
|
|
1715
1634
|
super(services);
|
|
@@ -1788,11 +1707,6 @@ function buildServiceDescriptor$k() {
|
|
|
1788
1707
|
};
|
|
1789
1708
|
}
|
|
1790
1709
|
|
|
1791
|
-
/*!
|
|
1792
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
1793
|
-
* All rights reserved.
|
|
1794
|
-
* For full license text, see the LICENSE.txt file
|
|
1795
|
-
*/
|
|
1796
1710
|
function buildInstrumentCommand(services) {
|
|
1797
1711
|
const meter = services.instrumentation.metrics.getMeter("onestore");
|
|
1798
1712
|
return function instrumentCommand(commandClass, commandName) {
|
|
@@ -1812,7 +1726,7 @@ function buildInstrumentCommand(services) {
|
|
|
1812
1726
|
try {
|
|
1813
1727
|
result = super.execute(...args);
|
|
1814
1728
|
} catch (e) {
|
|
1815
|
-
if (
|
|
1729
|
+
if (e?.name === "AbortError") {
|
|
1816
1730
|
abortCounter.add(1);
|
|
1817
1731
|
} else {
|
|
1818
1732
|
errorCounter.add(1);
|
|
@@ -1839,16 +1753,6 @@ function buildServiceDescriptor$j(instrumentation) {
|
|
|
1839
1753
|
};
|
|
1840
1754
|
}
|
|
1841
1755
|
|
|
1842
|
-
/*!
|
|
1843
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
1844
|
-
* All rights reserved.
|
|
1845
|
-
* For full license text, see the LICENSE.txt file
|
|
1846
|
-
*/
|
|
1847
|
-
/*!
|
|
1848
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
1849
|
-
* All rights reserved.
|
|
1850
|
-
* For full license text, see the LICENSE.txt file
|
|
1851
|
-
*/
|
|
1852
1756
|
class O11yOTelTraceAPI {
|
|
1853
1757
|
constructor(services) {
|
|
1854
1758
|
this.services = services;
|
|
@@ -1864,9 +1768,9 @@ class O11yTracer {
|
|
|
1864
1768
|
this.logger = logger;
|
|
1865
1769
|
}
|
|
1866
1770
|
startSpan(name, _options, context) {
|
|
1867
|
-
const traceId = context
|
|
1868
|
-
const spanId = context
|
|
1869
|
-
const traceFlags = context
|
|
1771
|
+
const traceId = context?.getValue(/* @__PURE__ */ Symbol.for("traceId"));
|
|
1772
|
+
const spanId = context?.getValue(/* @__PURE__ */ Symbol.for("spanId"));
|
|
1773
|
+
const traceFlags = context?.getValue(/* @__PURE__ */ Symbol.for("traceFlags"));
|
|
1870
1774
|
let spanContext = void 0;
|
|
1871
1775
|
if (traceId !== void 0 && spanId !== void 0 && traceFlags !== void 0) {
|
|
1872
1776
|
spanContext = {
|
|
@@ -2109,16 +2013,6 @@ function buildServiceDescriptor$i(logger) {
|
|
|
2109
2013
|
};
|
|
2110
2014
|
}
|
|
2111
2015
|
|
|
2112
|
-
/*!
|
|
2113
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
2114
|
-
* All rights reserved.
|
|
2115
|
-
* For full license text, see the LICENSE.txt file
|
|
2116
|
-
*/
|
|
2117
|
-
/*!
|
|
2118
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
2119
|
-
* All rights reserved.
|
|
2120
|
-
* For full license text, see the LICENSE.txt file
|
|
2121
|
-
*/
|
|
2122
2016
|
const { stringify: stringify$2, parse: parse$1 } = JSON;
|
|
2123
2017
|
function deepCopy$1(x) {
|
|
2124
2018
|
const stringified = stringify$2(x);
|
|
@@ -2142,7 +2036,7 @@ let DefaultRecordableCache$1 = class DefaultRecordableCache {
|
|
|
2142
2036
|
if (value === void 0) {
|
|
2143
2037
|
this.missingKeysRead.add(key);
|
|
2144
2038
|
}
|
|
2145
|
-
if (options
|
|
2039
|
+
if (options?.copy) {
|
|
2146
2040
|
return deepCopy$1(value);
|
|
2147
2041
|
}
|
|
2148
2042
|
return value;
|
|
@@ -2186,7 +2080,7 @@ let DefaultFilteredCache$1 = class DefaultFilteredCache {
|
|
|
2186
2080
|
get(key, options) {
|
|
2187
2081
|
const result = this.baseCache.get(key);
|
|
2188
2082
|
if (result && this.predicate(key, result)) {
|
|
2189
|
-
if (options
|
|
2083
|
+
if (options?.copy) {
|
|
2190
2084
|
return deepCopy$1(result);
|
|
2191
2085
|
}
|
|
2192
2086
|
return result;
|
|
@@ -2282,7 +2176,7 @@ let DefaultCache$1 = class DefaultCache {
|
|
|
2282
2176
|
this.data = {};
|
|
2283
2177
|
}
|
|
2284
2178
|
get(key, options) {
|
|
2285
|
-
if (options
|
|
2179
|
+
if (options?.copy) {
|
|
2286
2180
|
return deepCopy$1(this.data[key]);
|
|
2287
2181
|
}
|
|
2288
2182
|
return this.data[key];
|
|
@@ -2362,11 +2256,6 @@ function buildServiceDescriptor$h() {
|
|
|
2362
2256
|
};
|
|
2363
2257
|
}
|
|
2364
2258
|
|
|
2365
|
-
/*!
|
|
2366
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
2367
|
-
* All rights reserved.
|
|
2368
|
-
* For full license text, see the LICENSE.txt file
|
|
2369
|
-
*/
|
|
2370
2259
|
class CacheControlStrategy {
|
|
2371
2260
|
constructor(services, config, requestRunner) {
|
|
2372
2261
|
this.services = services;
|
|
@@ -2427,11 +2316,11 @@ class MaxAgeCacheControlStrategy extends CacheControlStrategy {
|
|
|
2427
2316
|
if (value.isOk()) {
|
|
2428
2317
|
this.collectCacheHitInstrumentation(
|
|
2429
2318
|
startTime,
|
|
2430
|
-
options
|
|
2319
|
+
options?.instrumentationAttributes
|
|
2431
2320
|
);
|
|
2432
2321
|
return ok$2(void 0);
|
|
2433
2322
|
}
|
|
2434
|
-
this.collectCacheMissInstrumentation(startTime, options
|
|
2323
|
+
this.collectCacheMissInstrumentation(startTime, options?.instrumentationAttributes);
|
|
2435
2324
|
const tempCache = this.filteredCache;
|
|
2436
2325
|
return new Promise(async (resolve, reject) => {
|
|
2437
2326
|
try {
|
|
@@ -2501,11 +2390,11 @@ class OnlyIfCachedCacheControlStrategy extends CacheControlStrategy {
|
|
|
2501
2390
|
if (result.isOk()) {
|
|
2502
2391
|
this.collectCacheHitInstrumentation(
|
|
2503
2392
|
startTime,
|
|
2504
|
-
options
|
|
2393
|
+
options?.instrumentationAttributes
|
|
2505
2394
|
);
|
|
2506
2395
|
return ok$2(void 0);
|
|
2507
2396
|
}
|
|
2508
|
-
this.collectCacheMissInstrumentation(startTime, options
|
|
2397
|
+
this.collectCacheMissInstrumentation(startTime, options?.instrumentationAttributes);
|
|
2509
2398
|
const error = new UserVisibleError(
|
|
2510
2399
|
new FetchResponse(HttpStatusCode$1.GatewayTimeout, {
|
|
2511
2400
|
error: "Cache miss for only-if-cached request"
|
|
@@ -2589,12 +2478,7 @@ function buildServiceDescriptor$g(cache, cacheInclusionPolicy, instrumentation)
|
|
|
2589
2478
|
};
|
|
2590
2479
|
}
|
|
2591
2480
|
|
|
2592
|
-
|
|
2593
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
2594
|
-
* All rights reserved.
|
|
2595
|
-
* For full license text, see the LICENSE.txt file
|
|
2596
|
-
*/
|
|
2597
|
-
const EventTypeWildcard = Symbol("EventTypeWildcard");
|
|
2481
|
+
const EventTypeWildcard = /* @__PURE__ */ Symbol("EventTypeWildcard");
|
|
2598
2482
|
class DefaultPubSubService {
|
|
2599
2483
|
constructor() {
|
|
2600
2484
|
this.subscriptions = /* @__PURE__ */ new Map();
|
|
@@ -2657,11 +2541,6 @@ function buildServiceDescriptor$f() {
|
|
|
2657
2541
|
};
|
|
2658
2542
|
}
|
|
2659
2543
|
|
|
2660
|
-
/*!
|
|
2661
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
2662
|
-
* All rights reserved.
|
|
2663
|
-
* For full license text, see the LICENSE.txt file
|
|
2664
|
-
*/
|
|
2665
2544
|
class NDJSONCommand extends StreamingCommand {
|
|
2666
2545
|
constructor(services) {
|
|
2667
2546
|
super(services);
|
|
@@ -2762,13 +2641,8 @@ function buildServiceDescriptor$d(luvio) {
|
|
|
2762
2641
|
},
|
|
2763
2642
|
};
|
|
2764
2643
|
}
|
|
2765
|
-
// version: 1.
|
|
2644
|
+
// version: 1.438.0-0ec0a89235
|
|
2766
2645
|
|
|
2767
|
-
/*!
|
|
2768
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
2769
|
-
* All rights reserved.
|
|
2770
|
-
* For full license text, see the LICENSE.txt file
|
|
2771
|
-
*/
|
|
2772
2646
|
class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheControlCommand {
|
|
2773
2647
|
constructor(config, documentRootType, services) {
|
|
2774
2648
|
super(services);
|
|
@@ -2949,11 +2823,6 @@ function buildServiceDescriptor$c() {
|
|
|
2949
2823
|
};
|
|
2950
2824
|
}
|
|
2951
2825
|
|
|
2952
|
-
/*!
|
|
2953
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
2954
|
-
* All rights reserved.
|
|
2955
|
-
* For full license text, see the LICENSE.txt file
|
|
2956
|
-
*/
|
|
2957
2826
|
class HttpGraphQLNormalizedCacheControlCommand extends HttpNormalizedCacheControlCommand {
|
|
2958
2827
|
constructor(config, documentRootType, services) {
|
|
2959
2828
|
super(services);
|
|
@@ -3067,11 +2936,6 @@ function buildServiceDescriptor$b() {
|
|
|
3067
2936
|
};
|
|
3068
2937
|
}
|
|
3069
2938
|
|
|
3070
|
-
/*!
|
|
3071
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
3072
|
-
* All rights reserved.
|
|
3073
|
-
* For full license text, see the LICENSE.txt file
|
|
3074
|
-
*/
|
|
3075
2939
|
class FeatureFlagsService {
|
|
3076
2940
|
constructor() {
|
|
3077
2941
|
this.flags = /* @__PURE__ */ new Map();
|
|
@@ -3115,13 +2979,8 @@ function buildServiceDescriptor$9(notifyRecordUpdateAvailable, getNormalizedLuvi
|
|
|
3115
2979
|
},
|
|
3116
2980
|
};
|
|
3117
2981
|
}
|
|
3118
|
-
// version: 1.
|
|
2982
|
+
// version: 1.438.0-0ec0a89235
|
|
3119
2983
|
|
|
3120
|
-
/*!
|
|
3121
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
3122
|
-
* All rights reserved.
|
|
3123
|
-
* For full license text, see the LICENSE.txt file
|
|
3124
|
-
*/
|
|
3125
2984
|
class RetryService {
|
|
3126
2985
|
constructor(defaultRetryPolicy) {
|
|
3127
2986
|
this.defaultRetryPolicy = defaultRetryPolicy;
|
|
@@ -3272,11 +3131,6 @@ function buildServiceDescriptor$8(defaultRetryPolicy) {
|
|
|
3272
3131
|
};
|
|
3273
3132
|
}
|
|
3274
3133
|
|
|
3275
|
-
/*!
|
|
3276
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
3277
|
-
* All rights reserved.
|
|
3278
|
-
* For full license text, see the LICENSE.txt file
|
|
3279
|
-
*/
|
|
3280
3134
|
function isUserVisibleError(error) {
|
|
3281
3135
|
return error instanceof Error && "type" in error && error.type === "user-visible";
|
|
3282
3136
|
}
|
|
@@ -3301,11 +3155,6 @@ function logError(error) {
|
|
|
3301
3155
|
console.error("OneStore Command threw an error that we did not expect", error);
|
|
3302
3156
|
}
|
|
3303
3157
|
|
|
3304
|
-
/*!
|
|
3305
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
3306
|
-
* All rights reserved.
|
|
3307
|
-
* For full license text, see the LICENSE.txt file
|
|
3308
|
-
*/
|
|
3309
3158
|
function buildBaseImperativeInvoker(getCommand, transformResult) {
|
|
3310
3159
|
return async (...params) => {
|
|
3311
3160
|
const command = getCommand({ params, assertIsValid });
|
|
@@ -3410,7 +3259,7 @@ class SubscribableImperativeBindingsService {
|
|
|
3410
3259
|
const api = {
|
|
3411
3260
|
data: result.value.data,
|
|
3412
3261
|
subscribe: (cb) => {
|
|
3413
|
-
result.value.subscribe((result2) => {
|
|
3262
|
+
return result.value.subscribe((result2) => {
|
|
3414
3263
|
if (result2.isErr()) {
|
|
3415
3264
|
return cb({ data: void 0, error: toError(result2.error) });
|
|
3416
3265
|
}
|
|
@@ -3513,10 +3362,10 @@ class GraphQLImperativeBindingsService {
|
|
|
3513
3362
|
acceptedOperations: ["query"]
|
|
3514
3363
|
};
|
|
3515
3364
|
const result = resolveAndValidateGraphQLConfig(params[0], options);
|
|
3516
|
-
if (result
|
|
3365
|
+
if (result?.isErr()) {
|
|
3517
3366
|
return result.error;
|
|
3518
3367
|
}
|
|
3519
|
-
if (result
|
|
3368
|
+
if (result?.isOk()) {
|
|
3520
3369
|
params[0] = result.value;
|
|
3521
3370
|
}
|
|
3522
3371
|
}
|
|
@@ -3535,7 +3384,7 @@ class GraphQLImperativeBindingsService {
|
|
|
3535
3384
|
deepFreeze(result.value);
|
|
3536
3385
|
consumerEmittedData.data = result.value.data.data;
|
|
3537
3386
|
consumerEmittedData.subscribe = (cb) => {
|
|
3538
|
-
result.value.subscribe((res) => {
|
|
3387
|
+
return result.value.subscribe((res) => {
|
|
3539
3388
|
const consumerEmittedData2 = {
|
|
3540
3389
|
data: void 0,
|
|
3541
3390
|
errors: void 0
|
|
@@ -3608,11 +3457,11 @@ class GraphQLLegacyImperativeBindingsService {
|
|
|
3608
3457
|
acceptedOperations: ["query"]
|
|
3609
3458
|
};
|
|
3610
3459
|
const result = resolveAndValidateGraphQLConfig(config, options);
|
|
3611
|
-
if (result
|
|
3460
|
+
if (result?.isErr()) {
|
|
3612
3461
|
callback(result.error);
|
|
3613
3462
|
return;
|
|
3614
3463
|
}
|
|
3615
|
-
if (result
|
|
3464
|
+
if (result?.isOk()) {
|
|
3616
3465
|
config = result.value;
|
|
3617
3466
|
}
|
|
3618
3467
|
}
|
|
@@ -3643,12 +3492,12 @@ class GraphQLLegacyImperativeBindingsService {
|
|
|
3643
3492
|
acceptedOperations: ["query"]
|
|
3644
3493
|
};
|
|
3645
3494
|
const result = resolveAndValidateGraphQLConfig(config, options);
|
|
3646
|
-
if (result
|
|
3495
|
+
if (result?.isErr()) {
|
|
3647
3496
|
callback(result.error);
|
|
3648
3497
|
return () => {
|
|
3649
3498
|
};
|
|
3650
3499
|
}
|
|
3651
|
-
if (result
|
|
3500
|
+
if (result?.isOk()) {
|
|
3652
3501
|
config = result.value;
|
|
3653
3502
|
}
|
|
3654
3503
|
}
|
|
@@ -3710,13 +3559,13 @@ class GraphQLMutationBindingsService {
|
|
|
3710
3559
|
acceptedOperations: ["mutation"]
|
|
3711
3560
|
};
|
|
3712
3561
|
const result2 = resolveAndValidateGraphQLConfig(params[0], options);
|
|
3713
|
-
if (result2
|
|
3562
|
+
if (result2?.isErr()) {
|
|
3714
3563
|
return {
|
|
3715
3564
|
data: void 0,
|
|
3716
3565
|
errors: result2.error.errors
|
|
3717
3566
|
};
|
|
3718
3567
|
}
|
|
3719
|
-
if (result2
|
|
3568
|
+
if (result2?.isOk()) {
|
|
3720
3569
|
params[0] = result2.value;
|
|
3721
3570
|
}
|
|
3722
3571
|
}
|
|
@@ -3742,11 +3591,6 @@ function buildServiceDescriptor$7() {
|
|
|
3742
3591
|
};
|
|
3743
3592
|
}
|
|
3744
3593
|
|
|
3745
|
-
/*!
|
|
3746
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
3747
|
-
* All rights reserved.
|
|
3748
|
-
* For full license text, see the LICENSE.txt file
|
|
3749
|
-
*/
|
|
3750
3594
|
class Sanitizer {
|
|
3751
3595
|
constructor(obj) {
|
|
3752
3596
|
this.obj = obj;
|
|
@@ -3806,7 +3650,7 @@ class CommandWireAdapterConstructor {
|
|
|
3806
3650
|
this.callback = callback;
|
|
3807
3651
|
this.connected = false;
|
|
3808
3652
|
this.exposeRefresh = false;
|
|
3809
|
-
if (!
|
|
3653
|
+
if (!options?.skipEmptyEmit) {
|
|
3810
3654
|
this.emit();
|
|
3811
3655
|
}
|
|
3812
3656
|
}
|
|
@@ -4143,11 +3987,6 @@ function buildLWCGraphQLWireBindingsServiceDescriptor() {
|
|
|
4143
3987
|
};
|
|
4144
3988
|
}
|
|
4145
3989
|
|
|
4146
|
-
/*!
|
|
4147
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
4148
|
-
* All rights reserved.
|
|
4149
|
-
* For full license text, see the LICENSE.txt file
|
|
4150
|
-
*/
|
|
4151
3990
|
function e$1(e2) {
|
|
4152
3991
|
this.message = e2;
|
|
4153
3992
|
}
|
|
@@ -4379,7 +4218,7 @@ class JwtManager {
|
|
|
4379
4218
|
constructor(jwtRepository, resolver, options) {
|
|
4380
4219
|
this.jwtRepository = jwtRepository;
|
|
4381
4220
|
this.resolver = resolver;
|
|
4382
|
-
if (options
|
|
4221
|
+
if (options?.keepTokenUpdated) {
|
|
4383
4222
|
jwtRepository.subscribeToTokenNearExpiration(() => this.refreshToken());
|
|
4384
4223
|
}
|
|
4385
4224
|
}
|
|
@@ -4433,11 +4272,6 @@ class JwtManager {
|
|
|
4433
4272
|
}
|
|
4434
4273
|
}
|
|
4435
4274
|
|
|
4436
|
-
/*!
|
|
4437
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
4438
|
-
* All rights reserved.
|
|
4439
|
-
* For full license text, see the LICENSE.txt file
|
|
4440
|
-
*/
|
|
4441
4275
|
function buildServiceDescriptor$2(interceptors = {
|
|
4442
4276
|
request: [],
|
|
4443
4277
|
retry: void 0,
|
|
@@ -4448,8 +4282,7 @@ function buildServiceDescriptor$2(interceptors = {
|
|
|
4448
4282
|
type: "fetch",
|
|
4449
4283
|
version: "1.0",
|
|
4450
4284
|
service: function(...args) {
|
|
4451
|
-
|
|
4452
|
-
const context = (_a = interceptors.createContext) == null ? void 0 : _a.call(interceptors);
|
|
4285
|
+
const context = interceptors.createContext?.();
|
|
4453
4286
|
const {
|
|
4454
4287
|
request: requestInterceptors = [],
|
|
4455
4288
|
retry: retryInterceptor = void 0,
|
|
@@ -4536,25 +4369,25 @@ function setHeader(headerName, headerValue, [resource, options = {}], {
|
|
|
4536
4369
|
errorMessage = `Unexpected ${headerName} header encountered`
|
|
4537
4370
|
} = {}) {
|
|
4538
4371
|
let hasHeaderBeenSet = false;
|
|
4539
|
-
if (resource instanceof Request && !
|
|
4372
|
+
if (resource instanceof Request && !options?.headers) {
|
|
4540
4373
|
if (throwOnExisting && resource.headers.has(headerName)) {
|
|
4541
4374
|
throw new Error(errorMessage);
|
|
4542
4375
|
}
|
|
4543
4376
|
resource.headers.set(headerName, headerValue);
|
|
4544
4377
|
hasHeaderBeenSet = true;
|
|
4545
4378
|
}
|
|
4546
|
-
if (
|
|
4379
|
+
if (options?.headers instanceof Headers) {
|
|
4547
4380
|
if (throwOnExisting && options.headers.has(headerName)) {
|
|
4548
4381
|
throw new Error(errorMessage);
|
|
4549
4382
|
}
|
|
4550
4383
|
options.headers.set(headerName, headerValue);
|
|
4551
4384
|
} else {
|
|
4552
|
-
if (throwOnExisting &&
|
|
4385
|
+
if (throwOnExisting && options?.headers && Reflect.has(options.headers, headerName)) {
|
|
4553
4386
|
throw new Error(errorMessage);
|
|
4554
4387
|
}
|
|
4555
4388
|
if (!hasHeaderBeenSet) {
|
|
4556
4389
|
options.headers = {
|
|
4557
|
-
...options
|
|
4390
|
+
...options?.headers,
|
|
4558
4391
|
[headerName]: headerValue
|
|
4559
4392
|
};
|
|
4560
4393
|
}
|
|
@@ -5575,11 +5408,6 @@ function logCRUDLightningInteraction(eventSource, attributes) {
|
|
|
5575
5408
|
}
|
|
5576
5409
|
const instrumentation = new Instrumentation();
|
|
5577
5410
|
|
|
5578
|
-
/*!
|
|
5579
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
5580
|
-
* All rights reserved.
|
|
5581
|
-
* For full license text, see the LICENSE.txt file
|
|
5582
|
-
*/
|
|
5583
5411
|
function valueFor(value, path) {
|
|
5584
5412
|
if (path.length === 0 || path[0] === "") {
|
|
5585
5413
|
return value;
|
|
@@ -5747,7 +5575,7 @@ function getEnvironmentSetting(name) {
|
|
|
5747
5575
|
}
|
|
5748
5576
|
return undefined;
|
|
5749
5577
|
}
|
|
5750
|
-
// version: 1.
|
|
5578
|
+
// version: 1.438.0-242a4ab027
|
|
5751
5579
|
|
|
5752
5580
|
const environmentHasAura = typeof window !== 'undefined' && typeof window.$A !== 'undefined';
|
|
5753
5581
|
const defaultConfig = {
|
|
@@ -9606,18 +9434,8 @@ class PredictionsReadyManager {
|
|
|
9606
9434
|
}
|
|
9607
9435
|
}
|
|
9608
9436
|
|
|
9609
|
-
/*!
|
|
9610
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
9611
|
-
* All rights reserved.
|
|
9612
|
-
* For full license text, see the LICENSE.txt file
|
|
9613
|
-
*/
|
|
9614
9437
|
class CacheInclusionPolicyService {
|
|
9615
9438
|
}
|
|
9616
|
-
/*!
|
|
9617
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
9618
|
-
* All rights reserved.
|
|
9619
|
-
* For full license text, see the LICENSE.txt file
|
|
9620
|
-
*/
|
|
9621
9439
|
class Ok {
|
|
9622
9440
|
constructor(value) {
|
|
9623
9441
|
this.value = value;
|
|
@@ -9679,18 +9497,8 @@ function rejectedPromiseLike(reason) {
|
|
|
9679
9497
|
};
|
|
9680
9498
|
}
|
|
9681
9499
|
function isPromiseLike(x) {
|
|
9682
|
-
return typeof
|
|
9500
|
+
return typeof x?.then === "function";
|
|
9683
9501
|
}
|
|
9684
|
-
/*!
|
|
9685
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
9686
|
-
* All rights reserved.
|
|
9687
|
-
* For full license text, see the LICENSE.txt file
|
|
9688
|
-
*/
|
|
9689
|
-
/*!
|
|
9690
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
9691
|
-
* All rights reserved.
|
|
9692
|
-
* For full license text, see the LICENSE.txt file
|
|
9693
|
-
*/
|
|
9694
9502
|
const { stringify, parse } = JSON;
|
|
9695
9503
|
function deepCopy(x) {
|
|
9696
9504
|
const stringified = stringify(x);
|
|
@@ -9714,7 +9522,7 @@ class DefaultRecordableCache {
|
|
|
9714
9522
|
if (value === void 0) {
|
|
9715
9523
|
this.missingKeysRead.add(key);
|
|
9716
9524
|
}
|
|
9717
|
-
if (options
|
|
9525
|
+
if (options?.copy) {
|
|
9718
9526
|
return deepCopy(value);
|
|
9719
9527
|
}
|
|
9720
9528
|
return value;
|
|
@@ -9758,7 +9566,7 @@ class DefaultFilteredCache {
|
|
|
9758
9566
|
get(key, options) {
|
|
9759
9567
|
const result = this.baseCache.get(key);
|
|
9760
9568
|
if (result && this.predicate(key, result)) {
|
|
9761
|
-
if (options
|
|
9569
|
+
if (options?.copy) {
|
|
9762
9570
|
return deepCopy(result);
|
|
9763
9571
|
}
|
|
9764
9572
|
return result;
|
|
@@ -9854,7 +9662,7 @@ class DefaultCache {
|
|
|
9854
9662
|
this.data = {};
|
|
9855
9663
|
}
|
|
9856
9664
|
get(key, options) {
|
|
9857
|
-
if (options
|
|
9665
|
+
if (options?.copy) {
|
|
9858
9666
|
return deepCopy(this.data[key]);
|
|
9859
9667
|
}
|
|
9860
9668
|
return this.data[key];
|
|
@@ -10917,4 +10725,4 @@ function ldsEngineCreator() {
|
|
|
10917
10725
|
}
|
|
10918
10726
|
|
|
10919
10727
|
export { LexRequestStrategy, PdlPrefetcherEventType, PdlRequestPriority, buildPredictorForContext, configService, ldsEngineCreator as default, initializeLDS, initializeOneStore, notifyUpdateAvailableFactory, registerRequestStrategy, saveRequestAsPrediction, subscribeToPrefetcherEvents, unregisterRequestStrategy, whenPredictionsReady };
|
|
10920
|
-
// version: 1.
|
|
10728
|
+
// version: 1.438.0-0ec0a89235
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-runtime-aura",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.438.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "LDS engine for Aura runtime",
|
|
6
6
|
"main": "dist/ldsEngineCreator.js",
|
|
@@ -34,52 +34,52 @@
|
|
|
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.
|
|
38
|
-
"@conduit-client/tools-core": "3.
|
|
39
|
-
"@salesforce/lds-adapters-apex": "^1.
|
|
40
|
-
"@salesforce/lds-adapters-uiapi": "^1.
|
|
41
|
-
"@salesforce/lds-ads-bridge": "^1.
|
|
42
|
-
"@salesforce/lds-aura-storage": "^1.
|
|
43
|
-
"@salesforce/lds-bindings": "^1.
|
|
44
|
-
"@salesforce/lds-instrumentation": "^1.
|
|
45
|
-
"@salesforce/lds-network-adapter": "^1.
|
|
46
|
-
"@salesforce/lds-network-aura": "^1.
|
|
47
|
-
"@salesforce/lds-network-fetch": "^1.
|
|
37
|
+
"@conduit-client/service-provisioner": "3.20.5",
|
|
38
|
+
"@conduit-client/tools-core": "3.20.5",
|
|
39
|
+
"@salesforce/lds-adapters-apex": "^1.438.0",
|
|
40
|
+
"@salesforce/lds-adapters-uiapi": "^1.438.0",
|
|
41
|
+
"@salesforce/lds-ads-bridge": "^1.438.0",
|
|
42
|
+
"@salesforce/lds-aura-storage": "^1.438.0",
|
|
43
|
+
"@salesforce/lds-bindings": "^1.438.0",
|
|
44
|
+
"@salesforce/lds-instrumentation": "^1.438.0",
|
|
45
|
+
"@salesforce/lds-network-adapter": "^1.438.0",
|
|
46
|
+
"@salesforce/lds-network-aura": "^1.438.0",
|
|
47
|
+
"@salesforce/lds-network-fetch": "^1.438.0",
|
|
48
48
|
"jwt-encode": "1.0.1"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@conduit-client/command-aura-graphql-normalized-cache-control": "3.
|
|
52
|
-
"@conduit-client/command-aura-network": "3.
|
|
53
|
-
"@conduit-client/command-aura-normalized-cache-control": "3.
|
|
54
|
-
"@conduit-client/command-aura-resource-cache-control": "3.
|
|
55
|
-
"@conduit-client/command-fetch-network": "3.
|
|
56
|
-
"@conduit-client/command-http-graphql-normalized-cache-control": "3.
|
|
57
|
-
"@conduit-client/command-http-normalized-cache-control": "3.
|
|
58
|
-
"@conduit-client/command-ndjson": "3.
|
|
59
|
-
"@conduit-client/command-network": "3.
|
|
60
|
-
"@conduit-client/command-sse": "3.
|
|
61
|
-
"@conduit-client/command-streaming": "3.
|
|
62
|
-
"@conduit-client/service-aura-network": "3.
|
|
63
|
-
"@conduit-client/service-bindings-imperative": "3.
|
|
64
|
-
"@conduit-client/service-bindings-lwc": "3.
|
|
65
|
-
"@conduit-client/service-cache": "3.
|
|
66
|
-
"@conduit-client/service-cache-control": "3.
|
|
67
|
-
"@conduit-client/service-cache-inclusion-policy": "3.
|
|
68
|
-
"@conduit-client/service-config": "3.
|
|
69
|
-
"@conduit-client/service-feature-flags": "3.
|
|
70
|
-
"@conduit-client/service-fetch-network": "3.
|
|
71
|
-
"@conduit-client/service-instrument-command": "3.
|
|
72
|
-
"@conduit-client/service-pubsub": "3.
|
|
73
|
-
"@conduit-client/service-store": "3.
|
|
74
|
-
"@conduit-client/utils": "3.
|
|
51
|
+
"@conduit-client/command-aura-graphql-normalized-cache-control": "3.20.5",
|
|
52
|
+
"@conduit-client/command-aura-network": "3.20.5",
|
|
53
|
+
"@conduit-client/command-aura-normalized-cache-control": "3.20.5",
|
|
54
|
+
"@conduit-client/command-aura-resource-cache-control": "3.20.5",
|
|
55
|
+
"@conduit-client/command-fetch-network": "3.20.5",
|
|
56
|
+
"@conduit-client/command-http-graphql-normalized-cache-control": "3.20.5",
|
|
57
|
+
"@conduit-client/command-http-normalized-cache-control": "3.20.5",
|
|
58
|
+
"@conduit-client/command-ndjson": "3.20.5",
|
|
59
|
+
"@conduit-client/command-network": "3.20.5",
|
|
60
|
+
"@conduit-client/command-sse": "3.20.5",
|
|
61
|
+
"@conduit-client/command-streaming": "3.20.5",
|
|
62
|
+
"@conduit-client/service-aura-network": "3.20.5",
|
|
63
|
+
"@conduit-client/service-bindings-imperative": "3.20.5",
|
|
64
|
+
"@conduit-client/service-bindings-lwc": "3.20.5",
|
|
65
|
+
"@conduit-client/service-cache": "3.20.5",
|
|
66
|
+
"@conduit-client/service-cache-control": "3.20.5",
|
|
67
|
+
"@conduit-client/service-cache-inclusion-policy": "3.20.5",
|
|
68
|
+
"@conduit-client/service-config": "3.20.5",
|
|
69
|
+
"@conduit-client/service-feature-flags": "3.20.5",
|
|
70
|
+
"@conduit-client/service-fetch-network": "3.20.5",
|
|
71
|
+
"@conduit-client/service-instrument-command": "3.20.5",
|
|
72
|
+
"@conduit-client/service-pubsub": "3.20.5",
|
|
73
|
+
"@conduit-client/service-store": "3.20.5",
|
|
74
|
+
"@conduit-client/utils": "3.20.5",
|
|
75
75
|
"@luvio/network-adapter-composable": "0.160.5",
|
|
76
76
|
"@luvio/network-adapter-fetch": "0.160.5",
|
|
77
77
|
"@lwc/state": "^0.29.0",
|
|
78
|
-
"@salesforce/lds-adapters-onestore-graphql": "^1.
|
|
78
|
+
"@salesforce/lds-adapters-onestore-graphql": "^1.438.0",
|
|
79
79
|
"@salesforce/lds-adapters-uiapi-lex": "^1.415.0",
|
|
80
|
-
"@salesforce/lds-durable-storage": "^1.
|
|
81
|
-
"@salesforce/lds-luvio-service": "^1.
|
|
82
|
-
"@salesforce/lds-luvio-uiapi-records-service": "^1.
|
|
80
|
+
"@salesforce/lds-durable-storage": "^1.438.0",
|
|
81
|
+
"@salesforce/lds-luvio-service": "^1.438.0",
|
|
82
|
+
"@salesforce/lds-luvio-uiapi-records-service": "^1.438.0"
|
|
83
83
|
},
|
|
84
84
|
"luvioBundlesize": [
|
|
85
85
|
{
|