@salesforce/lds-runtime-aura 1.404.0-dev5 → 1.404.0-dev6
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 +62 -16
- package/package.json +38 -38
package/dist/ldsEngineCreator.js
CHANGED
|
@@ -471,7 +471,12 @@ class AuraNetworkCommand extends NetworkCommand$1 {
|
|
|
471
471
|
this.coerceAuraErrors
|
|
472
472
|
);
|
|
473
473
|
} else if (this.shouldUseFetch()) {
|
|
474
|
-
|
|
474
|
+
const params = this.fetchParams;
|
|
475
|
+
try {
|
|
476
|
+
return this.convertFetchResponseToData(this.services.fetch(...params));
|
|
477
|
+
} catch (reason) {
|
|
478
|
+
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
479
|
+
}
|
|
475
480
|
}
|
|
476
481
|
return resolvedPromiseLike$2(err$1(toError("Aura/Fetch network services not found")));
|
|
477
482
|
}
|
|
@@ -1069,7 +1074,12 @@ let AuraCacheControlCommand$1 = class AuraCacheControlCommand extends CacheContr
|
|
|
1069
1074
|
(errs) => this.coerceAuraErrors(errs)
|
|
1070
1075
|
);
|
|
1071
1076
|
} else if (this.shouldUseFetch()) {
|
|
1072
|
-
|
|
1077
|
+
const params = this.fetchParams;
|
|
1078
|
+
try {
|
|
1079
|
+
return this.convertFetchResponseToData(this.services.fetch(...params));
|
|
1080
|
+
} catch (reason) {
|
|
1081
|
+
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
1082
|
+
}
|
|
1073
1083
|
}
|
|
1074
1084
|
return resolvedPromiseLike$2(err$1(toError("Aura/Fetch network services not found")));
|
|
1075
1085
|
}
|
|
@@ -1212,7 +1222,12 @@ class AuraCacheControlCommand extends CacheControlCommand {
|
|
|
1212
1222
|
(errs) => this.coerceAuraErrors(errs)
|
|
1213
1223
|
);
|
|
1214
1224
|
} else if (this.shouldUseFetch()) {
|
|
1215
|
-
|
|
1225
|
+
const params = this.fetchParams;
|
|
1226
|
+
try {
|
|
1227
|
+
return this.convertFetchResponseToData(this.services.fetch(...params));
|
|
1228
|
+
} catch (reason) {
|
|
1229
|
+
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
1230
|
+
}
|
|
1216
1231
|
}
|
|
1217
1232
|
return resolvedPromiseLike$2(err$1(toError("Aura/Fetch network services not found")));
|
|
1218
1233
|
}
|
|
@@ -1330,7 +1345,11 @@ class HttpCacheControlCommand extends CacheControlCommand {
|
|
|
1330
1345
|
return this.fetch();
|
|
1331
1346
|
}
|
|
1332
1347
|
fetch() {
|
|
1333
|
-
|
|
1348
|
+
try {
|
|
1349
|
+
return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
|
|
1350
|
+
} catch (reason) {
|
|
1351
|
+
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
1352
|
+
}
|
|
1334
1353
|
}
|
|
1335
1354
|
async coerceError(errorResponse) {
|
|
1336
1355
|
return toError(errorResponse.statusText);
|
|
@@ -1533,7 +1552,11 @@ const _FetchNetworkCommand = class _FetchNetworkCommand extends NetworkCommand {
|
|
|
1533
1552
|
this.services = services;
|
|
1534
1553
|
}
|
|
1535
1554
|
fetch() {
|
|
1536
|
-
|
|
1555
|
+
try {
|
|
1556
|
+
return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
|
|
1557
|
+
} catch (reason) {
|
|
1558
|
+
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
1559
|
+
}
|
|
1537
1560
|
}
|
|
1538
1561
|
async coerceError(errorResponse) {
|
|
1539
1562
|
return toError(errorResponse.statusText);
|
|
@@ -1589,7 +1612,11 @@ class StreamingCommand extends BaseCommand {
|
|
|
1589
1612
|
this.services = services;
|
|
1590
1613
|
}
|
|
1591
1614
|
execute() {
|
|
1592
|
-
|
|
1615
|
+
try {
|
|
1616
|
+
return this.convertFetchStreamResponseToData(this.services.fetch(...this.fetchParams));
|
|
1617
|
+
} catch (reason) {
|
|
1618
|
+
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
1619
|
+
}
|
|
1593
1620
|
}
|
|
1594
1621
|
convertFetchStreamResponseToData(response) {
|
|
1595
1622
|
return response.then(
|
|
@@ -2425,9 +2452,13 @@ class OnlyIfCachedCacheControlStrategy extends CacheControlStrategy {
|
|
|
2425
2452
|
}
|
|
2426
2453
|
get expiredChecks() {
|
|
2427
2454
|
return [
|
|
2428
|
-
|
|
2455
|
+
...super.expiredChecks,
|
|
2456
|
+
(cacheControlMetadata) => cacheControlMetadata.type === "no-cache"
|
|
2429
2457
|
];
|
|
2430
2458
|
}
|
|
2459
|
+
// Note: If we add support for `stale-while-revalidate` in the future, we may
|
|
2460
|
+
// need to further override expiredChecks to allow stale entries that are within the
|
|
2461
|
+
// stale-while-revalidate window to be returned for only-if-cached requests.
|
|
2431
2462
|
collectCacheHitInstrumentation(startTime, instrumentationAttributes) {
|
|
2432
2463
|
if (this.services.instrumentation) {
|
|
2433
2464
|
const meter = this.services.instrumentation.metrics.getMeter("onestore");
|
|
@@ -2667,7 +2698,7 @@ function buildServiceDescriptor$d(luvio) {
|
|
|
2667
2698
|
},
|
|
2668
2699
|
};
|
|
2669
2700
|
}
|
|
2670
|
-
// version: 1.404.0-
|
|
2701
|
+
// version: 1.404.0-dev6-7d450dc392
|
|
2671
2702
|
|
|
2672
2703
|
/*!
|
|
2673
2704
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -2783,11 +2814,26 @@ class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheContro
|
|
|
2783
2814
|
return buildSubscribableResult$1(result, this.buildSubscribe(), () => this.refresh());
|
|
2784
2815
|
});
|
|
2785
2816
|
} else if (this.shouldUseFetch()) {
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2817
|
+
const params = this.originalFetchParams;
|
|
2818
|
+
try {
|
|
2819
|
+
return this.convertFetchResponseToData(this.services.fetch(...params)).then(
|
|
2820
|
+
(result) => {
|
|
2821
|
+
return buildSubscribableResult$1(
|
|
2822
|
+
result,
|
|
2823
|
+
this.buildSubscribe(),
|
|
2824
|
+
() => this.refresh()
|
|
2825
|
+
);
|
|
2826
|
+
}
|
|
2827
|
+
);
|
|
2828
|
+
} catch (reason) {
|
|
2829
|
+
return resolvedPromiseLike$2(
|
|
2830
|
+
buildSubscribableResult$1(
|
|
2831
|
+
err$1(toError(reason)),
|
|
2832
|
+
this.buildSubscribe(),
|
|
2833
|
+
() => this.refresh()
|
|
2834
|
+
)
|
|
2835
|
+
);
|
|
2836
|
+
}
|
|
2791
2837
|
}
|
|
2792
2838
|
return resolvedPromiseLike$2(
|
|
2793
2839
|
buildSubscribableResult$1(
|
|
@@ -3005,7 +3051,7 @@ function buildServiceDescriptor$9(notifyRecordUpdateAvailable, getNormalizedLuvi
|
|
|
3005
3051
|
},
|
|
3006
3052
|
};
|
|
3007
3053
|
}
|
|
3008
|
-
// version: 1.404.0-
|
|
3054
|
+
// version: 1.404.0-dev6-7d450dc392
|
|
3009
3055
|
|
|
3010
3056
|
/*!
|
|
3011
3057
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -4708,7 +4754,7 @@ function getEnvironmentSetting(name) {
|
|
|
4708
4754
|
}
|
|
4709
4755
|
return undefined;
|
|
4710
4756
|
}
|
|
4711
|
-
// version: 1.404.0-
|
|
4757
|
+
// version: 1.404.0-dev6-7d450dc392
|
|
4712
4758
|
|
|
4713
4759
|
/**
|
|
4714
4760
|
* Observability / Critical Availability Program (230+)
|
|
@@ -9842,4 +9888,4 @@ function ldsEngineCreator() {
|
|
|
9842
9888
|
}
|
|
9843
9889
|
|
|
9844
9890
|
export { LexRequestStrategy, PdlRequestPriority, buildPredictorForContext, ldsEngineCreator as default, initializeLDS, initializeOneStore, notifyUpdateAvailableFactory, registerRequestStrategy, saveRequestAsPrediction, unregisterRequestStrategy, whenPredictionsReady };
|
|
9845
|
-
// version: 1.404.0-
|
|
9891
|
+
// version: 1.404.0-dev6-37e463b2dc
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-runtime-aura",
|
|
3
|
-
"version": "1.404.0-
|
|
3
|
+
"version": "1.404.0-dev6",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "LDS engine for Aura runtime",
|
|
6
6
|
"main": "dist/ldsEngineCreator.js",
|
|
@@ -34,49 +34,49 @@
|
|
|
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.404.0-
|
|
40
|
-
"@salesforce/lds-adapters-uiapi": "^1.404.0-
|
|
41
|
-
"@salesforce/lds-ads-bridge": "^1.404.0-
|
|
42
|
-
"@salesforce/lds-aura-storage": "^1.404.0-
|
|
43
|
-
"@salesforce/lds-bindings": "^1.404.0-
|
|
44
|
-
"@salesforce/lds-instrumentation": "^1.404.0-
|
|
45
|
-
"@salesforce/lds-network-aura": "^1.404.0-
|
|
46
|
-
"@salesforce/lds-network-fetch": "^1.404.0-
|
|
37
|
+
"@conduit-client/service-provisioner": "3.7.0-dev1",
|
|
38
|
+
"@conduit-client/tools-core": "3.7.0-dev1",
|
|
39
|
+
"@salesforce/lds-adapters-apex": "^1.404.0-dev6",
|
|
40
|
+
"@salesforce/lds-adapters-uiapi": "^1.404.0-dev6",
|
|
41
|
+
"@salesforce/lds-ads-bridge": "^1.404.0-dev6",
|
|
42
|
+
"@salesforce/lds-aura-storage": "^1.404.0-dev6",
|
|
43
|
+
"@salesforce/lds-bindings": "^1.404.0-dev6",
|
|
44
|
+
"@salesforce/lds-instrumentation": "^1.404.0-dev6",
|
|
45
|
+
"@salesforce/lds-network-aura": "^1.404.0-dev6",
|
|
46
|
+
"@salesforce/lds-network-fetch": "^1.404.0-dev6",
|
|
47
47
|
"jwt-encode": "1.0.1"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@conduit-client/command-aura-graphql-normalized-cache-control": "3.
|
|
51
|
-
"@conduit-client/command-aura-network": "3.
|
|
52
|
-
"@conduit-client/command-aura-normalized-cache-control": "3.
|
|
53
|
-
"@conduit-client/command-aura-resource-cache-control": "3.
|
|
54
|
-
"@conduit-client/command-fetch-network": "3.
|
|
55
|
-
"@conduit-client/command-http-graphql-normalized-cache-control": "3.
|
|
56
|
-
"@conduit-client/command-http-normalized-cache-control": "3.
|
|
57
|
-
"@conduit-client/command-ndjson": "3.
|
|
58
|
-
"@conduit-client/command-network": "3.
|
|
59
|
-
"@conduit-client/command-sse": "3.
|
|
60
|
-
"@conduit-client/command-streaming": "3.
|
|
61
|
-
"@conduit-client/service-aura-network": "3.
|
|
62
|
-
"@conduit-client/service-bindings-imperative": "3.
|
|
63
|
-
"@conduit-client/service-bindings-lwc": "3.
|
|
64
|
-
"@conduit-client/service-cache": "3.
|
|
65
|
-
"@conduit-client/service-cache-control": "3.
|
|
66
|
-
"@conduit-client/service-cache-inclusion-policy": "3.
|
|
67
|
-
"@conduit-client/service-feature-flags": "3.
|
|
68
|
-
"@conduit-client/service-fetch-network": "3.
|
|
69
|
-
"@conduit-client/service-instrument-command": "3.
|
|
70
|
-
"@conduit-client/service-pubsub": "3.
|
|
71
|
-
"@conduit-client/service-store": "3.
|
|
72
|
-
"@conduit-client/utils": "3.
|
|
50
|
+
"@conduit-client/command-aura-graphql-normalized-cache-control": "3.7.0-dev1",
|
|
51
|
+
"@conduit-client/command-aura-network": "3.7.0-dev1",
|
|
52
|
+
"@conduit-client/command-aura-normalized-cache-control": "3.7.0-dev1",
|
|
53
|
+
"@conduit-client/command-aura-resource-cache-control": "3.7.0-dev1",
|
|
54
|
+
"@conduit-client/command-fetch-network": "3.7.0-dev1",
|
|
55
|
+
"@conduit-client/command-http-graphql-normalized-cache-control": "3.7.0-dev1",
|
|
56
|
+
"@conduit-client/command-http-normalized-cache-control": "3.7.0-dev1",
|
|
57
|
+
"@conduit-client/command-ndjson": "3.7.0-dev1",
|
|
58
|
+
"@conduit-client/command-network": "3.7.0-dev1",
|
|
59
|
+
"@conduit-client/command-sse": "3.7.0-dev1",
|
|
60
|
+
"@conduit-client/command-streaming": "3.7.0-dev1",
|
|
61
|
+
"@conduit-client/service-aura-network": "3.7.0-dev1",
|
|
62
|
+
"@conduit-client/service-bindings-imperative": "3.7.0-dev1",
|
|
63
|
+
"@conduit-client/service-bindings-lwc": "3.7.0-dev1",
|
|
64
|
+
"@conduit-client/service-cache": "3.7.0-dev1",
|
|
65
|
+
"@conduit-client/service-cache-control": "3.7.0-dev1",
|
|
66
|
+
"@conduit-client/service-cache-inclusion-policy": "3.7.0-dev1",
|
|
67
|
+
"@conduit-client/service-feature-flags": "3.7.0-dev1",
|
|
68
|
+
"@conduit-client/service-fetch-network": "3.7.0-dev1",
|
|
69
|
+
"@conduit-client/service-instrument-command": "3.7.0-dev1",
|
|
70
|
+
"@conduit-client/service-pubsub": "3.7.0-dev1",
|
|
71
|
+
"@conduit-client/service-store": "3.7.0-dev1",
|
|
72
|
+
"@conduit-client/utils": "3.7.0-dev1",
|
|
73
73
|
"@luvio/network-adapter-composable": "0.158.7",
|
|
74
74
|
"@luvio/network-adapter-fetch": "0.158.7",
|
|
75
75
|
"@lwc/state": "^0.23.0",
|
|
76
|
-
"@salesforce/lds-adapters-onestore-graphql": "^1.404.0-
|
|
77
|
-
"@salesforce/lds-adapters-uiapi-lex": "^1.404.0-
|
|
78
|
-
"@salesforce/lds-luvio-service": "^1.404.0-
|
|
79
|
-
"@salesforce/lds-luvio-uiapi-records-service": "^1.404.0-
|
|
76
|
+
"@salesforce/lds-adapters-onestore-graphql": "^1.404.0-dev6",
|
|
77
|
+
"@salesforce/lds-adapters-uiapi-lex": "^1.404.0-dev6",
|
|
78
|
+
"@salesforce/lds-luvio-service": "^1.404.0-dev6",
|
|
79
|
+
"@salesforce/lds-luvio-uiapi-records-service": "^1.404.0-dev6"
|
|
80
80
|
},
|
|
81
81
|
"luvioBundlesize": [
|
|
82
82
|
{
|