@salesforce/lds-runtime-mobile 1.428.0-dev2 → 1.428.0-dev4
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 +61 -13
- package/package.json +34 -34
- package/sfdc/main.js +61 -13
package/dist/main.js
CHANGED
|
@@ -57804,6 +57804,7 @@ const _FetchNetworkCommand = class _FetchNetworkCommand extends NetworkCommand {
|
|
|
57804
57804
|
constructor(services) {
|
|
57805
57805
|
super(services);
|
|
57806
57806
|
this.services = services;
|
|
57807
|
+
this.additionalNullResponses = [];
|
|
57807
57808
|
}
|
|
57808
57809
|
fetch() {
|
|
57809
57810
|
try {
|
|
@@ -57812,6 +57813,15 @@ const _FetchNetworkCommand = class _FetchNetworkCommand extends NetworkCommand {
|
|
|
57812
57813
|
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
57813
57814
|
}
|
|
57814
57815
|
}
|
|
57816
|
+
isSemanticNullResponse(response) {
|
|
57817
|
+
return this.additionalNullResponses.includes(response.status);
|
|
57818
|
+
}
|
|
57819
|
+
isProtocolNoBodyStatus(status) {
|
|
57820
|
+
return status === 204 || status === 205;
|
|
57821
|
+
}
|
|
57822
|
+
isUndeclaredNoBodyResponse(response) {
|
|
57823
|
+
return this.isProtocolNoBodyStatus(response.status) && !this.isSemanticNullResponse(response);
|
|
57824
|
+
}
|
|
57815
57825
|
async coerceError(errorResponse) {
|
|
57816
57826
|
return toError(errorResponse.statusText);
|
|
57817
57827
|
}
|
|
@@ -57819,10 +57829,24 @@ const _FetchNetworkCommand = class _FetchNetworkCommand extends NetworkCommand {
|
|
|
57819
57829
|
return response.then(
|
|
57820
57830
|
(response2) => {
|
|
57821
57831
|
if (response2.ok) {
|
|
57822
|
-
|
|
57823
|
-
|
|
57824
|
-
|
|
57825
|
-
|
|
57832
|
+
let resultPromise;
|
|
57833
|
+
if (this.isSemanticNullResponse(response2)) {
|
|
57834
|
+
resultPromise = Promise.resolve(ok$1(null));
|
|
57835
|
+
} else if (this.isUndeclaredNoBodyResponse(response2)) {
|
|
57836
|
+
resultPromise = Promise.resolve(
|
|
57837
|
+
err$1(
|
|
57838
|
+
toError(
|
|
57839
|
+
`Unexpected ${response2.status} response: no-content status was not declared in the API specification. Declare this response in your OAS without a content property.`
|
|
57840
|
+
)
|
|
57841
|
+
)
|
|
57842
|
+
);
|
|
57843
|
+
} else {
|
|
57844
|
+
resultPromise = response2.json().then(
|
|
57845
|
+
(json) => ok$1(json),
|
|
57846
|
+
(reason) => err$1(toError(reason))
|
|
57847
|
+
);
|
|
57848
|
+
}
|
|
57849
|
+
return resultPromise.finally(() => {
|
|
57826
57850
|
try {
|
|
57827
57851
|
this.afterRequestHooks({ statusCode: response2.status });
|
|
57828
57852
|
} catch {
|
|
@@ -57869,6 +57893,7 @@ class HttpCacheControlCommand extends CacheControlCommand {
|
|
|
57869
57893
|
constructor(services) {
|
|
57870
57894
|
super(services);
|
|
57871
57895
|
this.services = services;
|
|
57896
|
+
this.additionalNullResponses = [];
|
|
57872
57897
|
}
|
|
57873
57898
|
requestFromNetwork() {
|
|
57874
57899
|
return this.fetch();
|
|
@@ -57880,6 +57905,15 @@ class HttpCacheControlCommand extends CacheControlCommand {
|
|
|
57880
57905
|
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
57881
57906
|
}
|
|
57882
57907
|
}
|
|
57908
|
+
isSemanticNullResponse(response) {
|
|
57909
|
+
return this.additionalNullResponses.includes(response.status);
|
|
57910
|
+
}
|
|
57911
|
+
isProtocolNoBodyStatus(status) {
|
|
57912
|
+
return status === 204 || status === 205;
|
|
57913
|
+
}
|
|
57914
|
+
isUndeclaredNoBodyResponse(response) {
|
|
57915
|
+
return this.isProtocolNoBodyStatus(response.status) && !this.isSemanticNullResponse(response);
|
|
57916
|
+
}
|
|
57883
57917
|
async coerceError(errorResponse) {
|
|
57884
57918
|
return toError(errorResponse.statusText);
|
|
57885
57919
|
}
|
|
@@ -57890,12 +57924,26 @@ class HttpCacheControlCommand extends CacheControlCommand {
|
|
|
57890
57924
|
return response.then(
|
|
57891
57925
|
(response2) => {
|
|
57892
57926
|
if (response2.ok) {
|
|
57893
|
-
|
|
57894
|
-
|
|
57895
|
-
|
|
57896
|
-
|
|
57897
|
-
|
|
57898
|
-
|
|
57927
|
+
let resultPromise;
|
|
57928
|
+
if (this.isSemanticNullResponse(response2)) {
|
|
57929
|
+
resultPromise = Promise.resolve(ok$1(null));
|
|
57930
|
+
} else if (this.isUndeclaredNoBodyResponse(response2)) {
|
|
57931
|
+
resultPromise = Promise.resolve(
|
|
57932
|
+
err$1(
|
|
57933
|
+
toError(
|
|
57934
|
+
`Unexpected ${response2.status} response: no-content status was not declared in the API specification. Declare this response in your OAS without a content property.`
|
|
57935
|
+
)
|
|
57936
|
+
)
|
|
57937
|
+
);
|
|
57938
|
+
} else {
|
|
57939
|
+
resultPromise = response2.json().then(
|
|
57940
|
+
(json) => {
|
|
57941
|
+
return this.processFetchReturnValue(json);
|
|
57942
|
+
},
|
|
57943
|
+
(reason) => err$1(toError(reason))
|
|
57944
|
+
);
|
|
57945
|
+
}
|
|
57946
|
+
return resultPromise.finally(() => {
|
|
57899
57947
|
try {
|
|
57900
57948
|
this.afterRequestHooks({ statusCode: response2.status });
|
|
57901
57949
|
} catch {
|
|
@@ -58883,7 +58931,7 @@ function buildServiceDescriptor$b(luvio) {
|
|
|
58883
58931
|
},
|
|
58884
58932
|
};
|
|
58885
58933
|
}
|
|
58886
|
-
// version: 1.428.0-
|
|
58934
|
+
// version: 1.428.0-dev4-42af22299b
|
|
58887
58935
|
|
|
58888
58936
|
/**
|
|
58889
58937
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -58909,7 +58957,7 @@ function buildServiceDescriptor$a(notifyRecordUpdateAvailable, getNormalizedLuvi
|
|
|
58909
58957
|
},
|
|
58910
58958
|
};
|
|
58911
58959
|
}
|
|
58912
|
-
// version: 1.428.0-
|
|
58960
|
+
// version: 1.428.0-dev4-42af22299b
|
|
58913
58961
|
|
|
58914
58962
|
/*!
|
|
58915
58963
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -61569,4 +61617,4 @@ register({
|
|
|
61569
61617
|
});
|
|
61570
61618
|
|
|
61571
61619
|
export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, ingest$1o as ingestDenormalizedRecordRepresentation, initializeOneStore, registerReportObserver, reportGraphqlQueryParseError };
|
|
61572
|
-
// version: 1.428.0-
|
|
61620
|
+
// version: 1.428.0-dev4-fee7d2eeee
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-runtime-mobile",
|
|
3
|
-
"version": "1.428.0-
|
|
3
|
+
"version": "1.428.0-dev4",
|
|
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.18.
|
|
36
|
-
"@conduit-client/service-bindings-lwc": "3.18.
|
|
37
|
-
"@conduit-client/service-provisioner": "3.18.
|
|
38
|
-
"@salesforce/lds-adapters-uiapi": "^1.428.0-
|
|
39
|
-
"@salesforce/lds-bindings": "^1.428.0-
|
|
40
|
-
"@salesforce/lds-instrumentation": "^1.428.0-
|
|
41
|
-
"@salesforce/lds-luvio-service": "^1.428.0-
|
|
42
|
-
"@salesforce/lds-luvio-uiapi-records-service": "^1.428.0-
|
|
35
|
+
"@conduit-client/service-bindings-imperative": "3.18.1-dev1",
|
|
36
|
+
"@conduit-client/service-bindings-lwc": "3.18.1-dev1",
|
|
37
|
+
"@conduit-client/service-provisioner": "3.18.1-dev1",
|
|
38
|
+
"@salesforce/lds-adapters-uiapi": "^1.428.0-dev4",
|
|
39
|
+
"@salesforce/lds-bindings": "^1.428.0-dev4",
|
|
40
|
+
"@salesforce/lds-instrumentation": "^1.428.0-dev4",
|
|
41
|
+
"@salesforce/lds-luvio-service": "^1.428.0-dev4",
|
|
42
|
+
"@salesforce/lds-luvio-uiapi-records-service": "^1.428.0-dev4",
|
|
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.18.
|
|
49
|
-
"@conduit-client/command-aura-normalized-cache-control": "3.18.
|
|
50
|
-
"@conduit-client/command-aura-resource-cache-control": "3.18.
|
|
51
|
-
"@conduit-client/command-fetch-network": "3.18.
|
|
52
|
-
"@conduit-client/command-http-normalized-cache-control": "3.18.
|
|
53
|
-
"@conduit-client/command-network": "3.18.
|
|
54
|
-
"@conduit-client/service-cache": "3.18.
|
|
55
|
-
"@conduit-client/service-cache-control": "3.18.
|
|
56
|
-
"@conduit-client/service-cache-inclusion-policy": "3.18.
|
|
57
|
-
"@conduit-client/service-fetch-network": "3.18.
|
|
58
|
-
"@conduit-client/service-instrument-command": "3.18.
|
|
59
|
-
"@conduit-client/service-instrumentation": "3.18.
|
|
60
|
-
"@conduit-client/service-pubsub": "3.18.
|
|
61
|
-
"@conduit-client/service-store": "3.18.
|
|
62
|
-
"@conduit-client/utils": "3.18.
|
|
63
|
-
"@salesforce/lds-adapters-graphql": "^1.428.0-
|
|
64
|
-
"@salesforce/lds-drafts": "^1.428.0-
|
|
65
|
-
"@salesforce/lds-durable-records": "^1.428.0-
|
|
66
|
-
"@salesforce/lds-network-adapter": "^1.428.0-
|
|
67
|
-
"@salesforce/lds-network-nimbus": "^1.428.0-
|
|
68
|
-
"@salesforce/lds-store-binary": "^1.428.0-
|
|
69
|
-
"@salesforce/lds-store-nimbus": "^1.428.0-
|
|
70
|
-
"@salesforce/lds-store-sql": "^1.428.0-
|
|
71
|
-
"@salesforce/lds-utils-adapters": "^1.428.0-
|
|
72
|
-
"@salesforce/nimbus-plugin-lds": "^1.428.0-
|
|
48
|
+
"@conduit-client/command-aura-network": "3.18.1-dev1",
|
|
49
|
+
"@conduit-client/command-aura-normalized-cache-control": "3.18.1-dev1",
|
|
50
|
+
"@conduit-client/command-aura-resource-cache-control": "3.18.1-dev1",
|
|
51
|
+
"@conduit-client/command-fetch-network": "3.18.1-dev1",
|
|
52
|
+
"@conduit-client/command-http-normalized-cache-control": "3.18.1-dev1",
|
|
53
|
+
"@conduit-client/command-network": "3.18.1-dev1",
|
|
54
|
+
"@conduit-client/service-cache": "3.18.1-dev1",
|
|
55
|
+
"@conduit-client/service-cache-control": "3.18.1-dev1",
|
|
56
|
+
"@conduit-client/service-cache-inclusion-policy": "3.18.1-dev1",
|
|
57
|
+
"@conduit-client/service-fetch-network": "3.18.1-dev1",
|
|
58
|
+
"@conduit-client/service-instrument-command": "3.18.1-dev1",
|
|
59
|
+
"@conduit-client/service-instrumentation": "3.18.1-dev1",
|
|
60
|
+
"@conduit-client/service-pubsub": "3.18.1-dev1",
|
|
61
|
+
"@conduit-client/service-store": "3.18.1-dev1",
|
|
62
|
+
"@conduit-client/utils": "3.18.1-dev1",
|
|
63
|
+
"@salesforce/lds-adapters-graphql": "^1.428.0-dev4",
|
|
64
|
+
"@salesforce/lds-drafts": "^1.428.0-dev4",
|
|
65
|
+
"@salesforce/lds-durable-records": "^1.428.0-dev4",
|
|
66
|
+
"@salesforce/lds-network-adapter": "^1.428.0-dev4",
|
|
67
|
+
"@salesforce/lds-network-nimbus": "^1.428.0-dev4",
|
|
68
|
+
"@salesforce/lds-store-binary": "^1.428.0-dev4",
|
|
69
|
+
"@salesforce/lds-store-nimbus": "^1.428.0-dev4",
|
|
70
|
+
"@salesforce/lds-store-sql": "^1.428.0-dev4",
|
|
71
|
+
"@salesforce/lds-utils-adapters": "^1.428.0-dev4",
|
|
72
|
+
"@salesforce/nimbus-plugin-lds": "^1.428.0-dev4",
|
|
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
|
@@ -57804,6 +57804,7 @@ const _FetchNetworkCommand = class _FetchNetworkCommand extends NetworkCommand {
|
|
|
57804
57804
|
constructor(services) {
|
|
57805
57805
|
super(services);
|
|
57806
57806
|
this.services = services;
|
|
57807
|
+
this.additionalNullResponses = [];
|
|
57807
57808
|
}
|
|
57808
57809
|
fetch() {
|
|
57809
57810
|
try {
|
|
@@ -57812,6 +57813,15 @@ const _FetchNetworkCommand = class _FetchNetworkCommand extends NetworkCommand {
|
|
|
57812
57813
|
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
57813
57814
|
}
|
|
57814
57815
|
}
|
|
57816
|
+
isSemanticNullResponse(response) {
|
|
57817
|
+
return this.additionalNullResponses.includes(response.status);
|
|
57818
|
+
}
|
|
57819
|
+
isProtocolNoBodyStatus(status) {
|
|
57820
|
+
return status === 204 || status === 205;
|
|
57821
|
+
}
|
|
57822
|
+
isUndeclaredNoBodyResponse(response) {
|
|
57823
|
+
return this.isProtocolNoBodyStatus(response.status) && !this.isSemanticNullResponse(response);
|
|
57824
|
+
}
|
|
57815
57825
|
async coerceError(errorResponse) {
|
|
57816
57826
|
return toError(errorResponse.statusText);
|
|
57817
57827
|
}
|
|
@@ -57819,10 +57829,24 @@ const _FetchNetworkCommand = class _FetchNetworkCommand extends NetworkCommand {
|
|
|
57819
57829
|
return response.then(
|
|
57820
57830
|
(response2) => {
|
|
57821
57831
|
if (response2.ok) {
|
|
57822
|
-
|
|
57823
|
-
|
|
57824
|
-
|
|
57825
|
-
|
|
57832
|
+
let resultPromise;
|
|
57833
|
+
if (this.isSemanticNullResponse(response2)) {
|
|
57834
|
+
resultPromise = Promise.resolve(ok$1(null));
|
|
57835
|
+
} else if (this.isUndeclaredNoBodyResponse(response2)) {
|
|
57836
|
+
resultPromise = Promise.resolve(
|
|
57837
|
+
err$1(
|
|
57838
|
+
toError(
|
|
57839
|
+
`Unexpected ${response2.status} response: no-content status was not declared in the API specification. Declare this response in your OAS without a content property.`
|
|
57840
|
+
)
|
|
57841
|
+
)
|
|
57842
|
+
);
|
|
57843
|
+
} else {
|
|
57844
|
+
resultPromise = response2.json().then(
|
|
57845
|
+
(json) => ok$1(json),
|
|
57846
|
+
(reason) => err$1(toError(reason))
|
|
57847
|
+
);
|
|
57848
|
+
}
|
|
57849
|
+
return resultPromise.finally(() => {
|
|
57826
57850
|
try {
|
|
57827
57851
|
this.afterRequestHooks({ statusCode: response2.status });
|
|
57828
57852
|
} catch {
|
|
@@ -57869,6 +57893,7 @@ class HttpCacheControlCommand extends CacheControlCommand {
|
|
|
57869
57893
|
constructor(services) {
|
|
57870
57894
|
super(services);
|
|
57871
57895
|
this.services = services;
|
|
57896
|
+
this.additionalNullResponses = [];
|
|
57872
57897
|
}
|
|
57873
57898
|
requestFromNetwork() {
|
|
57874
57899
|
return this.fetch();
|
|
@@ -57880,6 +57905,15 @@ class HttpCacheControlCommand extends CacheControlCommand {
|
|
|
57880
57905
|
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
57881
57906
|
}
|
|
57882
57907
|
}
|
|
57908
|
+
isSemanticNullResponse(response) {
|
|
57909
|
+
return this.additionalNullResponses.includes(response.status);
|
|
57910
|
+
}
|
|
57911
|
+
isProtocolNoBodyStatus(status) {
|
|
57912
|
+
return status === 204 || status === 205;
|
|
57913
|
+
}
|
|
57914
|
+
isUndeclaredNoBodyResponse(response) {
|
|
57915
|
+
return this.isProtocolNoBodyStatus(response.status) && !this.isSemanticNullResponse(response);
|
|
57916
|
+
}
|
|
57883
57917
|
async coerceError(errorResponse) {
|
|
57884
57918
|
return toError(errorResponse.statusText);
|
|
57885
57919
|
}
|
|
@@ -57890,12 +57924,26 @@ class HttpCacheControlCommand extends CacheControlCommand {
|
|
|
57890
57924
|
return response.then(
|
|
57891
57925
|
(response2) => {
|
|
57892
57926
|
if (response2.ok) {
|
|
57893
|
-
|
|
57894
|
-
|
|
57895
|
-
|
|
57896
|
-
|
|
57897
|
-
|
|
57898
|
-
|
|
57927
|
+
let resultPromise;
|
|
57928
|
+
if (this.isSemanticNullResponse(response2)) {
|
|
57929
|
+
resultPromise = Promise.resolve(ok$1(null));
|
|
57930
|
+
} else if (this.isUndeclaredNoBodyResponse(response2)) {
|
|
57931
|
+
resultPromise = Promise.resolve(
|
|
57932
|
+
err$1(
|
|
57933
|
+
toError(
|
|
57934
|
+
`Unexpected ${response2.status} response: no-content status was not declared in the API specification. Declare this response in your OAS without a content property.`
|
|
57935
|
+
)
|
|
57936
|
+
)
|
|
57937
|
+
);
|
|
57938
|
+
} else {
|
|
57939
|
+
resultPromise = response2.json().then(
|
|
57940
|
+
(json) => {
|
|
57941
|
+
return this.processFetchReturnValue(json);
|
|
57942
|
+
},
|
|
57943
|
+
(reason) => err$1(toError(reason))
|
|
57944
|
+
);
|
|
57945
|
+
}
|
|
57946
|
+
return resultPromise.finally(() => {
|
|
57899
57947
|
try {
|
|
57900
57948
|
this.afterRequestHooks({ statusCode: response2.status });
|
|
57901
57949
|
} catch {
|
|
@@ -58883,7 +58931,7 @@ function buildServiceDescriptor$b(luvio) {
|
|
|
58883
58931
|
},
|
|
58884
58932
|
};
|
|
58885
58933
|
}
|
|
58886
|
-
// version: 1.428.0-
|
|
58934
|
+
// version: 1.428.0-dev4-42af22299b
|
|
58887
58935
|
|
|
58888
58936
|
/**
|
|
58889
58937
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -58909,7 +58957,7 @@ function buildServiceDescriptor$a(notifyRecordUpdateAvailable, getNormalizedLuvi
|
|
|
58909
58957
|
},
|
|
58910
58958
|
};
|
|
58911
58959
|
}
|
|
58912
|
-
// version: 1.428.0-
|
|
58960
|
+
// version: 1.428.0-dev4-42af22299b
|
|
58913
58961
|
|
|
58914
58962
|
/*!
|
|
58915
58963
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -61569,4 +61617,4 @@ register({
|
|
|
61569
61617
|
});
|
|
61570
61618
|
|
|
61571
61619
|
export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, ingest$1o as ingestDenormalizedRecordRepresentation, initializeOneStore, registerReportObserver, reportGraphqlQueryParseError };
|
|
61572
|
-
// version: 1.428.0-
|
|
61620
|
+
// version: 1.428.0-dev4-fee7d2eeee
|