@salesforce/lds-runtime-mobile 1.410.0 → 1.410.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/main.js +56 -14
- package/package.json +34 -34
- package/sfdc/main.js +56 -14
package/dist/main.js
CHANGED
|
@@ -56341,7 +56341,12 @@ class AuraNetworkCommand extends NetworkCommand$1 {
|
|
|
56341
56341
|
this.coerceAuraErrors
|
|
56342
56342
|
);
|
|
56343
56343
|
} else if (this.shouldUseFetch()) {
|
|
56344
|
-
|
|
56344
|
+
const params = this.fetchParams;
|
|
56345
|
+
try {
|
|
56346
|
+
return this.convertFetchResponseToData(this.services.fetch(...params));
|
|
56347
|
+
} catch (reason) {
|
|
56348
|
+
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
56349
|
+
}
|
|
56345
56350
|
}
|
|
56346
56351
|
return resolvedPromiseLike$2(err$1(toError("Aura/Fetch network services not found")));
|
|
56347
56352
|
}
|
|
@@ -56939,7 +56944,12 @@ let AuraCacheControlCommand$1 = class AuraCacheControlCommand extends CacheContr
|
|
|
56939
56944
|
(errs) => this.coerceAuraErrors(errs)
|
|
56940
56945
|
);
|
|
56941
56946
|
} else if (this.shouldUseFetch()) {
|
|
56942
|
-
|
|
56947
|
+
const params = this.fetchParams;
|
|
56948
|
+
try {
|
|
56949
|
+
return this.convertFetchResponseToData(this.services.fetch(...params));
|
|
56950
|
+
} catch (reason) {
|
|
56951
|
+
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
56952
|
+
}
|
|
56943
56953
|
}
|
|
56944
56954
|
return resolvedPromiseLike$2(err$1(toError("Aura/Fetch network services not found")));
|
|
56945
56955
|
}
|
|
@@ -57078,7 +57088,12 @@ class AuraCacheControlCommand extends CacheControlCommand {
|
|
|
57078
57088
|
(errs) => this.coerceAuraErrors(errs)
|
|
57079
57089
|
);
|
|
57080
57090
|
} else if (this.shouldUseFetch()) {
|
|
57081
|
-
|
|
57091
|
+
const params = this.fetchParams;
|
|
57092
|
+
try {
|
|
57093
|
+
return this.convertFetchResponseToData(this.services.fetch(...params));
|
|
57094
|
+
} catch (reason) {
|
|
57095
|
+
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
57096
|
+
}
|
|
57082
57097
|
}
|
|
57083
57098
|
return resolvedPromiseLike$2(err$1(toError("Aura/Fetch network services not found")));
|
|
57084
57099
|
}
|
|
@@ -57314,7 +57329,11 @@ const _FetchNetworkCommand = class _FetchNetworkCommand extends NetworkCommand {
|
|
|
57314
57329
|
this.services = services;
|
|
57315
57330
|
}
|
|
57316
57331
|
fetch() {
|
|
57317
|
-
|
|
57332
|
+
try {
|
|
57333
|
+
return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
|
|
57334
|
+
} catch (reason) {
|
|
57335
|
+
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
57336
|
+
}
|
|
57318
57337
|
}
|
|
57319
57338
|
async coerceError(errorResponse) {
|
|
57320
57339
|
return toError(errorResponse.statusText);
|
|
@@ -57378,7 +57397,11 @@ class HttpCacheControlCommand extends CacheControlCommand {
|
|
|
57378
57397
|
return this.fetch();
|
|
57379
57398
|
}
|
|
57380
57399
|
fetch() {
|
|
57381
|
-
|
|
57400
|
+
try {
|
|
57401
|
+
return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
|
|
57402
|
+
} catch (reason) {
|
|
57403
|
+
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
57404
|
+
}
|
|
57382
57405
|
}
|
|
57383
57406
|
async coerceError(errorResponse) {
|
|
57384
57407
|
return toError(errorResponse.statusText);
|
|
@@ -57855,9 +57878,13 @@ class OnlyIfCachedCacheControlStrategy extends CacheControlStrategy {
|
|
|
57855
57878
|
}
|
|
57856
57879
|
get expiredChecks() {
|
|
57857
57880
|
return [
|
|
57858
|
-
|
|
57881
|
+
...super.expiredChecks,
|
|
57882
|
+
(cacheControlMetadata) => cacheControlMetadata.type === "no-cache"
|
|
57859
57883
|
];
|
|
57860
57884
|
}
|
|
57885
|
+
// Note: If we add support for `stale-while-revalidate` in the future, we may
|
|
57886
|
+
// need to further override expiredChecks to allow stale entries that are within the
|
|
57887
|
+
// stale-while-revalidate window to be returned for only-if-cached requests.
|
|
57861
57888
|
collectCacheHitInstrumentation(startTime, instrumentationAttributes) {
|
|
57862
57889
|
if (this.services.instrumentation) {
|
|
57863
57890
|
const meter = this.services.instrumentation.metrics.getMeter("onestore");
|
|
@@ -58379,7 +58406,7 @@ function buildServiceDescriptor$b(luvio) {
|
|
|
58379
58406
|
},
|
|
58380
58407
|
};
|
|
58381
58408
|
}
|
|
58382
|
-
// version: 1.410.
|
|
58409
|
+
// version: 1.410.1-ee98040f21
|
|
58383
58410
|
|
|
58384
58411
|
/**
|
|
58385
58412
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -58405,7 +58432,7 @@ function buildServiceDescriptor$a(notifyRecordUpdateAvailable, getNormalizedLuvi
|
|
|
58405
58432
|
},
|
|
58406
58433
|
};
|
|
58407
58434
|
}
|
|
58408
|
-
// version: 1.410.
|
|
58435
|
+
// version: 1.410.1-ee98040f21
|
|
58409
58436
|
|
|
58410
58437
|
/*!
|
|
58411
58438
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -58616,11 +58643,26 @@ class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheContro
|
|
|
58616
58643
|
return buildSubscribableResult$1(result, this.buildSubscribe(), () => this.refresh());
|
|
58617
58644
|
});
|
|
58618
58645
|
} else if (this.shouldUseFetch()) {
|
|
58619
|
-
|
|
58620
|
-
|
|
58621
|
-
|
|
58622
|
-
|
|
58623
|
-
|
|
58646
|
+
const params = this.originalFetchParams;
|
|
58647
|
+
try {
|
|
58648
|
+
return this.convertFetchResponseToData(this.services.fetch(...params)).then(
|
|
58649
|
+
(result) => {
|
|
58650
|
+
return buildSubscribableResult$1(
|
|
58651
|
+
result,
|
|
58652
|
+
this.buildSubscribe(),
|
|
58653
|
+
() => this.refresh()
|
|
58654
|
+
);
|
|
58655
|
+
}
|
|
58656
|
+
);
|
|
58657
|
+
} catch (reason) {
|
|
58658
|
+
return resolvedPromiseLike$2(
|
|
58659
|
+
buildSubscribableResult$1(
|
|
58660
|
+
err$1(toError(reason)),
|
|
58661
|
+
this.buildSubscribe(),
|
|
58662
|
+
() => this.refresh()
|
|
58663
|
+
)
|
|
58664
|
+
);
|
|
58665
|
+
}
|
|
58624
58666
|
}
|
|
58625
58667
|
return resolvedPromiseLike$2(
|
|
58626
58668
|
buildSubscribableResult$1(
|
|
@@ -60978,4 +61020,4 @@ register({
|
|
|
60978
61020
|
});
|
|
60979
61021
|
|
|
60980
61022
|
export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, ingest$1o as ingestDenormalizedRecordRepresentation, initializeOneStore, registerReportObserver, reportGraphqlQueryParseError };
|
|
60981
|
-
// version: 1.410.
|
|
61023
|
+
// version: 1.410.1-f2ce00a20c
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-runtime-mobile",
|
|
3
|
-
"version": "1.410.
|
|
3
|
+
"version": "1.410.1",
|
|
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.6.
|
|
36
|
-
"@conduit-client/service-bindings-lwc": "3.6.
|
|
37
|
-
"@conduit-client/service-provisioner": "3.6.
|
|
38
|
-
"@salesforce/lds-adapters-uiapi": "^1.410.
|
|
39
|
-
"@salesforce/lds-bindings": "^1.410.
|
|
40
|
-
"@salesforce/lds-instrumentation": "^1.410.
|
|
41
|
-
"@salesforce/lds-luvio-service": "^1.410.
|
|
42
|
-
"@salesforce/lds-luvio-uiapi-records-service": "^1.410.
|
|
35
|
+
"@conduit-client/service-bindings-imperative": "3.6.3",
|
|
36
|
+
"@conduit-client/service-bindings-lwc": "3.6.3",
|
|
37
|
+
"@conduit-client/service-provisioner": "3.6.3",
|
|
38
|
+
"@salesforce/lds-adapters-uiapi": "^1.410.1",
|
|
39
|
+
"@salesforce/lds-bindings": "^1.410.1",
|
|
40
|
+
"@salesforce/lds-instrumentation": "^1.410.1",
|
|
41
|
+
"@salesforce/lds-luvio-service": "^1.410.1",
|
|
42
|
+
"@salesforce/lds-luvio-uiapi-records-service": "^1.410.1",
|
|
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.6.
|
|
49
|
-
"@conduit-client/command-aura-normalized-cache-control": "3.6.
|
|
50
|
-
"@conduit-client/command-aura-resource-cache-control": "3.6.
|
|
51
|
-
"@conduit-client/command-fetch-network": "3.6.
|
|
52
|
-
"@conduit-client/command-http-normalized-cache-control": "3.6.
|
|
53
|
-
"@conduit-client/command-network": "3.6.
|
|
54
|
-
"@conduit-client/service-cache": "3.6.
|
|
55
|
-
"@conduit-client/service-cache-control": "3.6.
|
|
56
|
-
"@conduit-client/service-cache-inclusion-policy": "3.6.
|
|
57
|
-
"@conduit-client/service-fetch-network": "3.6.
|
|
58
|
-
"@conduit-client/service-instrument-command": "3.6.
|
|
59
|
-
"@conduit-client/service-instrumentation": "3.6.
|
|
60
|
-
"@conduit-client/service-pubsub": "3.6.
|
|
61
|
-
"@conduit-client/service-store": "3.6.
|
|
62
|
-
"@conduit-client/utils": "3.6.
|
|
63
|
-
"@salesforce/lds-adapters-graphql": "^1.410.
|
|
64
|
-
"@salesforce/lds-drafts": "^1.410.
|
|
65
|
-
"@salesforce/lds-durable-records": "^1.410.
|
|
66
|
-
"@salesforce/lds-network-adapter": "^1.410.
|
|
67
|
-
"@salesforce/lds-network-nimbus": "^1.410.
|
|
68
|
-
"@salesforce/lds-store-binary": "^1.410.
|
|
69
|
-
"@salesforce/lds-store-nimbus": "^1.410.
|
|
70
|
-
"@salesforce/lds-store-sql": "^1.410.
|
|
71
|
-
"@salesforce/lds-utils-adapters": "^1.410.
|
|
72
|
-
"@salesforce/nimbus-plugin-lds": "^1.410.
|
|
48
|
+
"@conduit-client/command-aura-network": "3.6.3",
|
|
49
|
+
"@conduit-client/command-aura-normalized-cache-control": "3.6.3",
|
|
50
|
+
"@conduit-client/command-aura-resource-cache-control": "3.6.3",
|
|
51
|
+
"@conduit-client/command-fetch-network": "3.6.3",
|
|
52
|
+
"@conduit-client/command-http-normalized-cache-control": "3.6.3",
|
|
53
|
+
"@conduit-client/command-network": "3.6.3",
|
|
54
|
+
"@conduit-client/service-cache": "3.6.3",
|
|
55
|
+
"@conduit-client/service-cache-control": "3.6.3",
|
|
56
|
+
"@conduit-client/service-cache-inclusion-policy": "3.6.3",
|
|
57
|
+
"@conduit-client/service-fetch-network": "3.6.3",
|
|
58
|
+
"@conduit-client/service-instrument-command": "3.6.3",
|
|
59
|
+
"@conduit-client/service-instrumentation": "3.6.3",
|
|
60
|
+
"@conduit-client/service-pubsub": "3.6.3",
|
|
61
|
+
"@conduit-client/service-store": "3.6.3",
|
|
62
|
+
"@conduit-client/utils": "3.6.3",
|
|
63
|
+
"@salesforce/lds-adapters-graphql": "^1.410.1",
|
|
64
|
+
"@salesforce/lds-drafts": "^1.410.1",
|
|
65
|
+
"@salesforce/lds-durable-records": "^1.410.1",
|
|
66
|
+
"@salesforce/lds-network-adapter": "^1.410.1",
|
|
67
|
+
"@salesforce/lds-network-nimbus": "^1.410.1",
|
|
68
|
+
"@salesforce/lds-store-binary": "^1.410.1",
|
|
69
|
+
"@salesforce/lds-store-nimbus": "^1.410.1",
|
|
70
|
+
"@salesforce/lds-store-sql": "^1.410.1",
|
|
71
|
+
"@salesforce/lds-utils-adapters": "^1.410.1",
|
|
72
|
+
"@salesforce/nimbus-plugin-lds": "^1.410.1",
|
|
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
|
@@ -56341,7 +56341,12 @@ class AuraNetworkCommand extends NetworkCommand$1 {
|
|
|
56341
56341
|
this.coerceAuraErrors
|
|
56342
56342
|
);
|
|
56343
56343
|
} else if (this.shouldUseFetch()) {
|
|
56344
|
-
|
|
56344
|
+
const params = this.fetchParams;
|
|
56345
|
+
try {
|
|
56346
|
+
return this.convertFetchResponseToData(this.services.fetch(...params));
|
|
56347
|
+
} catch (reason) {
|
|
56348
|
+
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
56349
|
+
}
|
|
56345
56350
|
}
|
|
56346
56351
|
return resolvedPromiseLike$2(err$1(toError("Aura/Fetch network services not found")));
|
|
56347
56352
|
}
|
|
@@ -56939,7 +56944,12 @@ let AuraCacheControlCommand$1 = class AuraCacheControlCommand extends CacheContr
|
|
|
56939
56944
|
(errs) => this.coerceAuraErrors(errs)
|
|
56940
56945
|
);
|
|
56941
56946
|
} else if (this.shouldUseFetch()) {
|
|
56942
|
-
|
|
56947
|
+
const params = this.fetchParams;
|
|
56948
|
+
try {
|
|
56949
|
+
return this.convertFetchResponseToData(this.services.fetch(...params));
|
|
56950
|
+
} catch (reason) {
|
|
56951
|
+
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
56952
|
+
}
|
|
56943
56953
|
}
|
|
56944
56954
|
return resolvedPromiseLike$2(err$1(toError("Aura/Fetch network services not found")));
|
|
56945
56955
|
}
|
|
@@ -57078,7 +57088,12 @@ class AuraCacheControlCommand extends CacheControlCommand {
|
|
|
57078
57088
|
(errs) => this.coerceAuraErrors(errs)
|
|
57079
57089
|
);
|
|
57080
57090
|
} else if (this.shouldUseFetch()) {
|
|
57081
|
-
|
|
57091
|
+
const params = this.fetchParams;
|
|
57092
|
+
try {
|
|
57093
|
+
return this.convertFetchResponseToData(this.services.fetch(...params));
|
|
57094
|
+
} catch (reason) {
|
|
57095
|
+
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
57096
|
+
}
|
|
57082
57097
|
}
|
|
57083
57098
|
return resolvedPromiseLike$2(err$1(toError("Aura/Fetch network services not found")));
|
|
57084
57099
|
}
|
|
@@ -57314,7 +57329,11 @@ const _FetchNetworkCommand = class _FetchNetworkCommand extends NetworkCommand {
|
|
|
57314
57329
|
this.services = services;
|
|
57315
57330
|
}
|
|
57316
57331
|
fetch() {
|
|
57317
|
-
|
|
57332
|
+
try {
|
|
57333
|
+
return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
|
|
57334
|
+
} catch (reason) {
|
|
57335
|
+
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
57336
|
+
}
|
|
57318
57337
|
}
|
|
57319
57338
|
async coerceError(errorResponse) {
|
|
57320
57339
|
return toError(errorResponse.statusText);
|
|
@@ -57378,7 +57397,11 @@ class HttpCacheControlCommand extends CacheControlCommand {
|
|
|
57378
57397
|
return this.fetch();
|
|
57379
57398
|
}
|
|
57380
57399
|
fetch() {
|
|
57381
|
-
|
|
57400
|
+
try {
|
|
57401
|
+
return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
|
|
57402
|
+
} catch (reason) {
|
|
57403
|
+
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
57404
|
+
}
|
|
57382
57405
|
}
|
|
57383
57406
|
async coerceError(errorResponse) {
|
|
57384
57407
|
return toError(errorResponse.statusText);
|
|
@@ -57855,9 +57878,13 @@ class OnlyIfCachedCacheControlStrategy extends CacheControlStrategy {
|
|
|
57855
57878
|
}
|
|
57856
57879
|
get expiredChecks() {
|
|
57857
57880
|
return [
|
|
57858
|
-
|
|
57881
|
+
...super.expiredChecks,
|
|
57882
|
+
(cacheControlMetadata) => cacheControlMetadata.type === "no-cache"
|
|
57859
57883
|
];
|
|
57860
57884
|
}
|
|
57885
|
+
// Note: If we add support for `stale-while-revalidate` in the future, we may
|
|
57886
|
+
// need to further override expiredChecks to allow stale entries that are within the
|
|
57887
|
+
// stale-while-revalidate window to be returned for only-if-cached requests.
|
|
57861
57888
|
collectCacheHitInstrumentation(startTime, instrumentationAttributes) {
|
|
57862
57889
|
if (this.services.instrumentation) {
|
|
57863
57890
|
const meter = this.services.instrumentation.metrics.getMeter("onestore");
|
|
@@ -58379,7 +58406,7 @@ function buildServiceDescriptor$b(luvio) {
|
|
|
58379
58406
|
},
|
|
58380
58407
|
};
|
|
58381
58408
|
}
|
|
58382
|
-
// version: 1.410.
|
|
58409
|
+
// version: 1.410.1-ee98040f21
|
|
58383
58410
|
|
|
58384
58411
|
/**
|
|
58385
58412
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -58405,7 +58432,7 @@ function buildServiceDescriptor$a(notifyRecordUpdateAvailable, getNormalizedLuvi
|
|
|
58405
58432
|
},
|
|
58406
58433
|
};
|
|
58407
58434
|
}
|
|
58408
|
-
// version: 1.410.
|
|
58435
|
+
// version: 1.410.1-ee98040f21
|
|
58409
58436
|
|
|
58410
58437
|
/*!
|
|
58411
58438
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -58616,11 +58643,26 @@ class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheContro
|
|
|
58616
58643
|
return buildSubscribableResult$1(result, this.buildSubscribe(), () => this.refresh());
|
|
58617
58644
|
});
|
|
58618
58645
|
} else if (this.shouldUseFetch()) {
|
|
58619
|
-
|
|
58620
|
-
|
|
58621
|
-
|
|
58622
|
-
|
|
58623
|
-
|
|
58646
|
+
const params = this.originalFetchParams;
|
|
58647
|
+
try {
|
|
58648
|
+
return this.convertFetchResponseToData(this.services.fetch(...params)).then(
|
|
58649
|
+
(result) => {
|
|
58650
|
+
return buildSubscribableResult$1(
|
|
58651
|
+
result,
|
|
58652
|
+
this.buildSubscribe(),
|
|
58653
|
+
() => this.refresh()
|
|
58654
|
+
);
|
|
58655
|
+
}
|
|
58656
|
+
);
|
|
58657
|
+
} catch (reason) {
|
|
58658
|
+
return resolvedPromiseLike$2(
|
|
58659
|
+
buildSubscribableResult$1(
|
|
58660
|
+
err$1(toError(reason)),
|
|
58661
|
+
this.buildSubscribe(),
|
|
58662
|
+
() => this.refresh()
|
|
58663
|
+
)
|
|
58664
|
+
);
|
|
58665
|
+
}
|
|
58624
58666
|
}
|
|
58625
58667
|
return resolvedPromiseLike$2(
|
|
58626
58668
|
buildSubscribableResult$1(
|
|
@@ -60978,4 +61020,4 @@ register({
|
|
|
60978
61020
|
});
|
|
60979
61021
|
|
|
60980
61022
|
export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, ingest$1o as ingestDenormalizedRecordRepresentation, initializeOneStore, registerReportObserver, reportGraphqlQueryParseError };
|
|
60981
|
-
// version: 1.410.
|
|
61023
|
+
// version: 1.410.1-f2ce00a20c
|