@salesforce/lds-runtime-mobile 1.404.0-dev4 → 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/main.js +70 -18
- package/package.json +34 -34
- package/sfdc/main.js +70 -18
package/dist/main.js
CHANGED
|
@@ -56309,7 +56309,12 @@ class AuraNetworkCommand extends NetworkCommand$1 {
|
|
|
56309
56309
|
this.coerceAuraErrors
|
|
56310
56310
|
);
|
|
56311
56311
|
} else if (this.shouldUseFetch()) {
|
|
56312
|
-
|
|
56312
|
+
const params = this.fetchParams;
|
|
56313
|
+
try {
|
|
56314
|
+
return this.convertFetchResponseToData(this.services.fetch(...params));
|
|
56315
|
+
} catch (reason) {
|
|
56316
|
+
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
56317
|
+
}
|
|
56313
56318
|
}
|
|
56314
56319
|
return resolvedPromiseLike$2(err$1(toError("Aura/Fetch network services not found")));
|
|
56315
56320
|
}
|
|
@@ -56907,7 +56912,12 @@ let AuraCacheControlCommand$1 = class AuraCacheControlCommand extends CacheContr
|
|
|
56907
56912
|
(errs) => this.coerceAuraErrors(errs)
|
|
56908
56913
|
);
|
|
56909
56914
|
} else if (this.shouldUseFetch()) {
|
|
56910
|
-
|
|
56915
|
+
const params = this.fetchParams;
|
|
56916
|
+
try {
|
|
56917
|
+
return this.convertFetchResponseToData(this.services.fetch(...params));
|
|
56918
|
+
} catch (reason) {
|
|
56919
|
+
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
56920
|
+
}
|
|
56911
56921
|
}
|
|
56912
56922
|
return resolvedPromiseLike$2(err$1(toError("Aura/Fetch network services not found")));
|
|
56913
56923
|
}
|
|
@@ -57046,7 +57056,12 @@ class AuraCacheControlCommand extends CacheControlCommand {
|
|
|
57046
57056
|
(errs) => this.coerceAuraErrors(errs)
|
|
57047
57057
|
);
|
|
57048
57058
|
} else if (this.shouldUseFetch()) {
|
|
57049
|
-
|
|
57059
|
+
const params = this.fetchParams;
|
|
57060
|
+
try {
|
|
57061
|
+
return this.convertFetchResponseToData(this.services.fetch(...params));
|
|
57062
|
+
} catch (reason) {
|
|
57063
|
+
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
57064
|
+
}
|
|
57050
57065
|
}
|
|
57051
57066
|
return resolvedPromiseLike$2(err$1(toError("Aura/Fetch network services not found")));
|
|
57052
57067
|
}
|
|
@@ -57282,7 +57297,11 @@ const _FetchNetworkCommand = class _FetchNetworkCommand extends NetworkCommand {
|
|
|
57282
57297
|
this.services = services;
|
|
57283
57298
|
}
|
|
57284
57299
|
fetch() {
|
|
57285
|
-
|
|
57300
|
+
try {
|
|
57301
|
+
return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
|
|
57302
|
+
} catch (reason) {
|
|
57303
|
+
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
57304
|
+
}
|
|
57286
57305
|
}
|
|
57287
57306
|
async coerceError(errorResponse) {
|
|
57288
57307
|
return toError(errorResponse.statusText);
|
|
@@ -57346,7 +57365,11 @@ class HttpCacheControlCommand extends CacheControlCommand {
|
|
|
57346
57365
|
return this.fetch();
|
|
57347
57366
|
}
|
|
57348
57367
|
fetch() {
|
|
57349
|
-
|
|
57368
|
+
try {
|
|
57369
|
+
return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
|
|
57370
|
+
} catch (reason) {
|
|
57371
|
+
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
57372
|
+
}
|
|
57350
57373
|
}
|
|
57351
57374
|
async coerceError(errorResponse) {
|
|
57352
57375
|
return toError(errorResponse.statusText);
|
|
@@ -57823,9 +57846,13 @@ class OnlyIfCachedCacheControlStrategy extends CacheControlStrategy {
|
|
|
57823
57846
|
}
|
|
57824
57847
|
get expiredChecks() {
|
|
57825
57848
|
return [
|
|
57826
|
-
|
|
57849
|
+
...super.expiredChecks,
|
|
57850
|
+
(cacheControlMetadata) => cacheControlMetadata.type === "no-cache"
|
|
57827
57851
|
];
|
|
57828
57852
|
}
|
|
57853
|
+
// Note: If we add support for `stale-while-revalidate` in the future, we may
|
|
57854
|
+
// need to further override expiredChecks to allow stale entries that are within the
|
|
57855
|
+
// stale-while-revalidate window to be returned for only-if-cached requests.
|
|
57829
57856
|
collectCacheHitInstrumentation(startTime, instrumentationAttributes) {
|
|
57830
57857
|
if (this.services.instrumentation) {
|
|
57831
57858
|
const meter = this.services.instrumentation.metrics.getMeter("onestore");
|
|
@@ -58347,7 +58374,7 @@ function buildServiceDescriptor$b(luvio) {
|
|
|
58347
58374
|
},
|
|
58348
58375
|
};
|
|
58349
58376
|
}
|
|
58350
|
-
// version: 1.404.0-
|
|
58377
|
+
// version: 1.404.0-dev6-7d450dc392
|
|
58351
58378
|
|
|
58352
58379
|
/**
|
|
58353
58380
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -58373,7 +58400,7 @@ function buildServiceDescriptor$a(notifyRecordUpdateAvailable, getNormalizedLuvi
|
|
|
58373
58400
|
},
|
|
58374
58401
|
};
|
|
58375
58402
|
}
|
|
58376
|
-
// version: 1.404.0-
|
|
58403
|
+
// version: 1.404.0-dev6-7d450dc392
|
|
58377
58404
|
|
|
58378
58405
|
/*!
|
|
58379
58406
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -58584,11 +58611,26 @@ class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheContro
|
|
|
58584
58611
|
return buildSubscribableResult$1(result, this.buildSubscribe(), () => this.refresh());
|
|
58585
58612
|
});
|
|
58586
58613
|
} else if (this.shouldUseFetch()) {
|
|
58587
|
-
|
|
58588
|
-
|
|
58589
|
-
|
|
58590
|
-
|
|
58591
|
-
|
|
58614
|
+
const params = this.originalFetchParams;
|
|
58615
|
+
try {
|
|
58616
|
+
return this.convertFetchResponseToData(this.services.fetch(...params)).then(
|
|
58617
|
+
(result) => {
|
|
58618
|
+
return buildSubscribableResult$1(
|
|
58619
|
+
result,
|
|
58620
|
+
this.buildSubscribe(),
|
|
58621
|
+
() => this.refresh()
|
|
58622
|
+
);
|
|
58623
|
+
}
|
|
58624
|
+
);
|
|
58625
|
+
} catch (reason) {
|
|
58626
|
+
return resolvedPromiseLike$2(
|
|
58627
|
+
buildSubscribableResult$1(
|
|
58628
|
+
err$1(toError(reason)),
|
|
58629
|
+
this.buildSubscribe(),
|
|
58630
|
+
() => this.refresh()
|
|
58631
|
+
)
|
|
58632
|
+
);
|
|
58633
|
+
}
|
|
58592
58634
|
}
|
|
58593
58635
|
return resolvedPromiseLike$2(
|
|
58594
58636
|
buildSubscribableResult$1(
|
|
@@ -59903,7 +59945,12 @@ function buildServiceDescriptor$2() {
|
|
|
59903
59945
|
* All rights reserved.
|
|
59904
59946
|
* For full license text, see the LICENSE.txt file
|
|
59905
59947
|
*/
|
|
59906
|
-
function buildServiceDescriptor$1(interceptors = {
|
|
59948
|
+
function buildServiceDescriptor$1(interceptors = {
|
|
59949
|
+
request: [],
|
|
59950
|
+
retry: void 0,
|
|
59951
|
+
response: [],
|
|
59952
|
+
finally: []
|
|
59953
|
+
}, retryService) {
|
|
59907
59954
|
return {
|
|
59908
59955
|
type: "fetch",
|
|
59909
59956
|
version: "1.0",
|
|
@@ -59912,6 +59959,7 @@ function buildServiceDescriptor$1(interceptors = { request: [], response: [], fi
|
|
|
59912
59959
|
const context = (_a = interceptors.createContext) == null ? void 0 : _a.call(interceptors);
|
|
59913
59960
|
const {
|
|
59914
59961
|
request: requestInterceptors = [],
|
|
59962
|
+
retry: retryInterceptor = void 0,
|
|
59915
59963
|
response: responseInterceptors = [],
|
|
59916
59964
|
finally: finallyInterceptors = []
|
|
59917
59965
|
} = interceptors;
|
|
@@ -59920,10 +59968,14 @@ function buildServiceDescriptor$1(interceptors = { request: [], response: [], fi
|
|
|
59920
59968
|
resolvedPromiseLike$2(args)
|
|
59921
59969
|
);
|
|
59922
59970
|
return Promise.resolve(pending).then((args2) => {
|
|
59923
|
-
if (
|
|
59924
|
-
return
|
|
59971
|
+
if (retryInterceptor) {
|
|
59972
|
+
return retryInterceptor(args2, retryService, context);
|
|
59973
|
+
} else {
|
|
59974
|
+
if (retryService) {
|
|
59975
|
+
return retryService.applyRetry(() => fetch(...args2));
|
|
59976
|
+
}
|
|
59977
|
+
return fetch(...args2);
|
|
59925
59978
|
}
|
|
59926
|
-
return fetch(...args2);
|
|
59927
59979
|
}).then((response) => {
|
|
59928
59980
|
return responseInterceptors.reduce(
|
|
59929
59981
|
(previousPromise, interceptor) => previousPromise.then((response2) => interceptor(response2, context)),
|
|
@@ -60936,4 +60988,4 @@ register({
|
|
|
60936
60988
|
});
|
|
60937
60989
|
|
|
60938
60990
|
export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, ingest$1o as ingestDenormalizedRecordRepresentation, initializeOneStore, registerReportObserver, reportGraphqlQueryParseError };
|
|
60939
|
-
// version: 1.404.0-
|
|
60991
|
+
// version: 1.404.0-dev6-37e463b2dc
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-runtime-mobile",
|
|
3
|
-
"version": "1.404.0-
|
|
3
|
+
"version": "1.404.0-dev6",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "LDS runtime for mobile/hybrid environments.",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -32,44 +32,44 @@
|
|
|
32
32
|
"release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-runtime-mobile"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@conduit-client/service-bindings-imperative": "3.
|
|
36
|
-
"@conduit-client/service-bindings-lwc": "3.
|
|
37
|
-
"@conduit-client/service-provisioner": "3.
|
|
38
|
-
"@salesforce/lds-adapters-uiapi": "^1.404.0-
|
|
39
|
-
"@salesforce/lds-bindings": "^1.404.0-
|
|
40
|
-
"@salesforce/lds-instrumentation": "^1.404.0-
|
|
41
|
-
"@salesforce/lds-luvio-service": "^1.404.0-
|
|
42
|
-
"@salesforce/lds-luvio-uiapi-records-service": "^1.404.0-
|
|
35
|
+
"@conduit-client/service-bindings-imperative": "3.7.0-dev1",
|
|
36
|
+
"@conduit-client/service-bindings-lwc": "3.7.0-dev1",
|
|
37
|
+
"@conduit-client/service-provisioner": "3.7.0-dev1",
|
|
38
|
+
"@salesforce/lds-adapters-uiapi": "^1.404.0-dev6",
|
|
39
|
+
"@salesforce/lds-bindings": "^1.404.0-dev6",
|
|
40
|
+
"@salesforce/lds-instrumentation": "^1.404.0-dev6",
|
|
41
|
+
"@salesforce/lds-luvio-service": "^1.404.0-dev6",
|
|
42
|
+
"@salesforce/lds-luvio-uiapi-records-service": "^1.404.0-dev6",
|
|
43
43
|
"@salesforce/user": "0.0.21",
|
|
44
44
|
"o11y": "250.7.0",
|
|
45
45
|
"o11y_schema": "256.126.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@conduit-client/command-aura-network": "3.
|
|
49
|
-
"@conduit-client/command-aura-normalized-cache-control": "3.
|
|
50
|
-
"@conduit-client/command-aura-resource-cache-control": "3.
|
|
51
|
-
"@conduit-client/command-fetch-network": "3.
|
|
52
|
-
"@conduit-client/command-http-normalized-cache-control": "3.
|
|
53
|
-
"@conduit-client/command-network": "3.
|
|
54
|
-
"@conduit-client/service-cache": "3.
|
|
55
|
-
"@conduit-client/service-cache-control": "3.
|
|
56
|
-
"@conduit-client/service-cache-inclusion-policy": "3.
|
|
57
|
-
"@conduit-client/service-fetch-network": "3.
|
|
58
|
-
"@conduit-client/service-instrument-command": "3.
|
|
59
|
-
"@conduit-client/service-instrumentation": "3.
|
|
60
|
-
"@conduit-client/service-pubsub": "3.
|
|
61
|
-
"@conduit-client/service-store": "3.
|
|
62
|
-
"@conduit-client/utils": "3.
|
|
63
|
-
"@salesforce/lds-adapters-graphql": "^1.404.0-
|
|
64
|
-
"@salesforce/lds-drafts": "^1.404.0-
|
|
65
|
-
"@salesforce/lds-durable-records": "^1.404.0-
|
|
66
|
-
"@salesforce/lds-network-adapter": "^1.404.0-
|
|
67
|
-
"@salesforce/lds-network-nimbus": "^1.404.0-
|
|
68
|
-
"@salesforce/lds-store-binary": "^1.404.0-
|
|
69
|
-
"@salesforce/lds-store-nimbus": "^1.404.0-
|
|
70
|
-
"@salesforce/lds-store-sql": "^1.404.0-
|
|
71
|
-
"@salesforce/lds-utils-adapters": "^1.404.0-
|
|
72
|
-
"@salesforce/nimbus-plugin-lds": "^1.404.0-
|
|
48
|
+
"@conduit-client/command-aura-network": "3.7.0-dev1",
|
|
49
|
+
"@conduit-client/command-aura-normalized-cache-control": "3.7.0-dev1",
|
|
50
|
+
"@conduit-client/command-aura-resource-cache-control": "3.7.0-dev1",
|
|
51
|
+
"@conduit-client/command-fetch-network": "3.7.0-dev1",
|
|
52
|
+
"@conduit-client/command-http-normalized-cache-control": "3.7.0-dev1",
|
|
53
|
+
"@conduit-client/command-network": "3.7.0-dev1",
|
|
54
|
+
"@conduit-client/service-cache": "3.7.0-dev1",
|
|
55
|
+
"@conduit-client/service-cache-control": "3.7.0-dev1",
|
|
56
|
+
"@conduit-client/service-cache-inclusion-policy": "3.7.0-dev1",
|
|
57
|
+
"@conduit-client/service-fetch-network": "3.7.0-dev1",
|
|
58
|
+
"@conduit-client/service-instrument-command": "3.7.0-dev1",
|
|
59
|
+
"@conduit-client/service-instrumentation": "3.7.0-dev1",
|
|
60
|
+
"@conduit-client/service-pubsub": "3.7.0-dev1",
|
|
61
|
+
"@conduit-client/service-store": "3.7.0-dev1",
|
|
62
|
+
"@conduit-client/utils": "3.7.0-dev1",
|
|
63
|
+
"@salesforce/lds-adapters-graphql": "^1.404.0-dev6",
|
|
64
|
+
"@salesforce/lds-drafts": "^1.404.0-dev6",
|
|
65
|
+
"@salesforce/lds-durable-records": "^1.404.0-dev6",
|
|
66
|
+
"@salesforce/lds-network-adapter": "^1.404.0-dev6",
|
|
67
|
+
"@salesforce/lds-network-nimbus": "^1.404.0-dev6",
|
|
68
|
+
"@salesforce/lds-store-binary": "^1.404.0-dev6",
|
|
69
|
+
"@salesforce/lds-store-nimbus": "^1.404.0-dev6",
|
|
70
|
+
"@salesforce/lds-store-sql": "^1.404.0-dev6",
|
|
71
|
+
"@salesforce/lds-utils-adapters": "^1.404.0-dev6",
|
|
72
|
+
"@salesforce/nimbus-plugin-lds": "^1.404.0-dev6",
|
|
73
73
|
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
74
74
|
"wait-for-expect": "^3.0.2"
|
|
75
75
|
},
|
package/sfdc/main.js
CHANGED
|
@@ -56309,7 +56309,12 @@ class AuraNetworkCommand extends NetworkCommand$1 {
|
|
|
56309
56309
|
this.coerceAuraErrors
|
|
56310
56310
|
);
|
|
56311
56311
|
} else if (this.shouldUseFetch()) {
|
|
56312
|
-
|
|
56312
|
+
const params = this.fetchParams;
|
|
56313
|
+
try {
|
|
56314
|
+
return this.convertFetchResponseToData(this.services.fetch(...params));
|
|
56315
|
+
} catch (reason) {
|
|
56316
|
+
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
56317
|
+
}
|
|
56313
56318
|
}
|
|
56314
56319
|
return resolvedPromiseLike$2(err$1(toError("Aura/Fetch network services not found")));
|
|
56315
56320
|
}
|
|
@@ -56907,7 +56912,12 @@ let AuraCacheControlCommand$1 = class AuraCacheControlCommand extends CacheContr
|
|
|
56907
56912
|
(errs) => this.coerceAuraErrors(errs)
|
|
56908
56913
|
);
|
|
56909
56914
|
} else if (this.shouldUseFetch()) {
|
|
56910
|
-
|
|
56915
|
+
const params = this.fetchParams;
|
|
56916
|
+
try {
|
|
56917
|
+
return this.convertFetchResponseToData(this.services.fetch(...params));
|
|
56918
|
+
} catch (reason) {
|
|
56919
|
+
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
56920
|
+
}
|
|
56911
56921
|
}
|
|
56912
56922
|
return resolvedPromiseLike$2(err$1(toError("Aura/Fetch network services not found")));
|
|
56913
56923
|
}
|
|
@@ -57046,7 +57056,12 @@ class AuraCacheControlCommand extends CacheControlCommand {
|
|
|
57046
57056
|
(errs) => this.coerceAuraErrors(errs)
|
|
57047
57057
|
);
|
|
57048
57058
|
} else if (this.shouldUseFetch()) {
|
|
57049
|
-
|
|
57059
|
+
const params = this.fetchParams;
|
|
57060
|
+
try {
|
|
57061
|
+
return this.convertFetchResponseToData(this.services.fetch(...params));
|
|
57062
|
+
} catch (reason) {
|
|
57063
|
+
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
57064
|
+
}
|
|
57050
57065
|
}
|
|
57051
57066
|
return resolvedPromiseLike$2(err$1(toError("Aura/Fetch network services not found")));
|
|
57052
57067
|
}
|
|
@@ -57282,7 +57297,11 @@ const _FetchNetworkCommand = class _FetchNetworkCommand extends NetworkCommand {
|
|
|
57282
57297
|
this.services = services;
|
|
57283
57298
|
}
|
|
57284
57299
|
fetch() {
|
|
57285
|
-
|
|
57300
|
+
try {
|
|
57301
|
+
return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
|
|
57302
|
+
} catch (reason) {
|
|
57303
|
+
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
57304
|
+
}
|
|
57286
57305
|
}
|
|
57287
57306
|
async coerceError(errorResponse) {
|
|
57288
57307
|
return toError(errorResponse.statusText);
|
|
@@ -57346,7 +57365,11 @@ class HttpCacheControlCommand extends CacheControlCommand {
|
|
|
57346
57365
|
return this.fetch();
|
|
57347
57366
|
}
|
|
57348
57367
|
fetch() {
|
|
57349
|
-
|
|
57368
|
+
try {
|
|
57369
|
+
return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
|
|
57370
|
+
} catch (reason) {
|
|
57371
|
+
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
57372
|
+
}
|
|
57350
57373
|
}
|
|
57351
57374
|
async coerceError(errorResponse) {
|
|
57352
57375
|
return toError(errorResponse.statusText);
|
|
@@ -57823,9 +57846,13 @@ class OnlyIfCachedCacheControlStrategy extends CacheControlStrategy {
|
|
|
57823
57846
|
}
|
|
57824
57847
|
get expiredChecks() {
|
|
57825
57848
|
return [
|
|
57826
|
-
|
|
57849
|
+
...super.expiredChecks,
|
|
57850
|
+
(cacheControlMetadata) => cacheControlMetadata.type === "no-cache"
|
|
57827
57851
|
];
|
|
57828
57852
|
}
|
|
57853
|
+
// Note: If we add support for `stale-while-revalidate` in the future, we may
|
|
57854
|
+
// need to further override expiredChecks to allow stale entries that are within the
|
|
57855
|
+
// stale-while-revalidate window to be returned for only-if-cached requests.
|
|
57829
57856
|
collectCacheHitInstrumentation(startTime, instrumentationAttributes) {
|
|
57830
57857
|
if (this.services.instrumentation) {
|
|
57831
57858
|
const meter = this.services.instrumentation.metrics.getMeter("onestore");
|
|
@@ -58347,7 +58374,7 @@ function buildServiceDescriptor$b(luvio) {
|
|
|
58347
58374
|
},
|
|
58348
58375
|
};
|
|
58349
58376
|
}
|
|
58350
|
-
// version: 1.404.0-
|
|
58377
|
+
// version: 1.404.0-dev6-7d450dc392
|
|
58351
58378
|
|
|
58352
58379
|
/**
|
|
58353
58380
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -58373,7 +58400,7 @@ function buildServiceDescriptor$a(notifyRecordUpdateAvailable, getNormalizedLuvi
|
|
|
58373
58400
|
},
|
|
58374
58401
|
};
|
|
58375
58402
|
}
|
|
58376
|
-
// version: 1.404.0-
|
|
58403
|
+
// version: 1.404.0-dev6-7d450dc392
|
|
58377
58404
|
|
|
58378
58405
|
/*!
|
|
58379
58406
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -58584,11 +58611,26 @@ class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheContro
|
|
|
58584
58611
|
return buildSubscribableResult$1(result, this.buildSubscribe(), () => this.refresh());
|
|
58585
58612
|
});
|
|
58586
58613
|
} else if (this.shouldUseFetch()) {
|
|
58587
|
-
|
|
58588
|
-
|
|
58589
|
-
|
|
58590
|
-
|
|
58591
|
-
|
|
58614
|
+
const params = this.originalFetchParams;
|
|
58615
|
+
try {
|
|
58616
|
+
return this.convertFetchResponseToData(this.services.fetch(...params)).then(
|
|
58617
|
+
(result) => {
|
|
58618
|
+
return buildSubscribableResult$1(
|
|
58619
|
+
result,
|
|
58620
|
+
this.buildSubscribe(),
|
|
58621
|
+
() => this.refresh()
|
|
58622
|
+
);
|
|
58623
|
+
}
|
|
58624
|
+
);
|
|
58625
|
+
} catch (reason) {
|
|
58626
|
+
return resolvedPromiseLike$2(
|
|
58627
|
+
buildSubscribableResult$1(
|
|
58628
|
+
err$1(toError(reason)),
|
|
58629
|
+
this.buildSubscribe(),
|
|
58630
|
+
() => this.refresh()
|
|
58631
|
+
)
|
|
58632
|
+
);
|
|
58633
|
+
}
|
|
58592
58634
|
}
|
|
58593
58635
|
return resolvedPromiseLike$2(
|
|
58594
58636
|
buildSubscribableResult$1(
|
|
@@ -59903,7 +59945,12 @@ function buildServiceDescriptor$2() {
|
|
|
59903
59945
|
* All rights reserved.
|
|
59904
59946
|
* For full license text, see the LICENSE.txt file
|
|
59905
59947
|
*/
|
|
59906
|
-
function buildServiceDescriptor$1(interceptors = {
|
|
59948
|
+
function buildServiceDescriptor$1(interceptors = {
|
|
59949
|
+
request: [],
|
|
59950
|
+
retry: void 0,
|
|
59951
|
+
response: [],
|
|
59952
|
+
finally: []
|
|
59953
|
+
}, retryService) {
|
|
59907
59954
|
return {
|
|
59908
59955
|
type: "fetch",
|
|
59909
59956
|
version: "1.0",
|
|
@@ -59912,6 +59959,7 @@ function buildServiceDescriptor$1(interceptors = { request: [], response: [], fi
|
|
|
59912
59959
|
const context = (_a = interceptors.createContext) == null ? void 0 : _a.call(interceptors);
|
|
59913
59960
|
const {
|
|
59914
59961
|
request: requestInterceptors = [],
|
|
59962
|
+
retry: retryInterceptor = void 0,
|
|
59915
59963
|
response: responseInterceptors = [],
|
|
59916
59964
|
finally: finallyInterceptors = []
|
|
59917
59965
|
} = interceptors;
|
|
@@ -59920,10 +59968,14 @@ function buildServiceDescriptor$1(interceptors = { request: [], response: [], fi
|
|
|
59920
59968
|
resolvedPromiseLike$2(args)
|
|
59921
59969
|
);
|
|
59922
59970
|
return Promise.resolve(pending).then((args2) => {
|
|
59923
|
-
if (
|
|
59924
|
-
return
|
|
59971
|
+
if (retryInterceptor) {
|
|
59972
|
+
return retryInterceptor(args2, retryService, context);
|
|
59973
|
+
} else {
|
|
59974
|
+
if (retryService) {
|
|
59975
|
+
return retryService.applyRetry(() => fetch(...args2));
|
|
59976
|
+
}
|
|
59977
|
+
return fetch(...args2);
|
|
59925
59978
|
}
|
|
59926
|
-
return fetch(...args2);
|
|
59927
59979
|
}).then((response) => {
|
|
59928
59980
|
return responseInterceptors.reduce(
|
|
59929
59981
|
(previousPromise, interceptor) => previousPromise.then((response2) => interceptor(response2, context)),
|
|
@@ -60936,4 +60988,4 @@ register({
|
|
|
60936
60988
|
});
|
|
60937
60989
|
|
|
60938
60990
|
export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, ingest$1o as ingestDenormalizedRecordRepresentation, initializeOneStore, registerReportObserver, reportGraphqlQueryParseError };
|
|
60939
|
-
// version: 1.404.0-
|
|
60991
|
+
// version: 1.404.0-dev6-37e463b2dc
|