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