@salesforce/lds-runtime-mobile 1.382.0 → 1.383.0
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 +47 -6
- package/package.json +32 -32
- package/sfdc/main.js +47 -6
package/dist/main.js
CHANGED
|
@@ -57866,7 +57866,7 @@ function buildServiceDescriptor$5(luvio) {
|
|
|
57866
57866
|
},
|
|
57867
57867
|
};
|
|
57868
57868
|
}
|
|
57869
|
-
// version: 1.
|
|
57869
|
+
// version: 1.383.0-d85dce8db1
|
|
57870
57870
|
|
|
57871
57871
|
/**
|
|
57872
57872
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -57892,7 +57892,7 @@ function buildServiceDescriptor$4(notifyRecordUpdateAvailable, getNormalizedLuvi
|
|
|
57892
57892
|
},
|
|
57893
57893
|
};
|
|
57894
57894
|
}
|
|
57895
|
-
// version: 1.
|
|
57895
|
+
// version: 1.383.0-d85dce8db1
|
|
57896
57896
|
|
|
57897
57897
|
/*!
|
|
57898
57898
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -58777,7 +58777,7 @@ function buildGraphQLInputExtension(input) {
|
|
|
58777
58777
|
};
|
|
58778
58778
|
return prev;
|
|
58779
58779
|
}, {})) || {};
|
|
58780
|
-
const fragments = input.query.definitions.filter(
|
|
58780
|
+
const fragments = input.query.definitions.filter(isFragmentDefinition).reduce((prev, fragment) => {
|
|
58781
58781
|
prev[fragment.name.value] = fragment;
|
|
58782
58782
|
return prev;
|
|
58783
58783
|
}, {});
|
|
@@ -58787,6 +58787,47 @@ function buildGraphQLInputExtension(input) {
|
|
|
58787
58787
|
parentFieldSelection: void 0
|
|
58788
58788
|
});
|
|
58789
58789
|
}
|
|
58790
|
+
const TYPENAME_FIELD = {
|
|
58791
|
+
kind: Kind.FIELD,
|
|
58792
|
+
name: {
|
|
58793
|
+
kind: Kind.NAME,
|
|
58794
|
+
value: "__typename"
|
|
58795
|
+
}
|
|
58796
|
+
};
|
|
58797
|
+
function addTypenameToDocument(doc) {
|
|
58798
|
+
return visit(doc, {
|
|
58799
|
+
SelectionSet: {
|
|
58800
|
+
enter(node, _key, parent) {
|
|
58801
|
+
if (isOperationDefinition(parent)) {
|
|
58802
|
+
return;
|
|
58803
|
+
}
|
|
58804
|
+
const { selections } = node;
|
|
58805
|
+
if (!selections || selections.length === 0) {
|
|
58806
|
+
return;
|
|
58807
|
+
}
|
|
58808
|
+
const skip = selections.some((selection) => {
|
|
58809
|
+
return isField(selection) && (selection.name.value === "__typename" || selection.name.value.lastIndexOf("__", 0) === 0);
|
|
58810
|
+
});
|
|
58811
|
+
if (skip) {
|
|
58812
|
+
return;
|
|
58813
|
+
}
|
|
58814
|
+
return {
|
|
58815
|
+
...node,
|
|
58816
|
+
selections: [...selections, TYPENAME_FIELD]
|
|
58817
|
+
};
|
|
58818
|
+
}
|
|
58819
|
+
}
|
|
58820
|
+
});
|
|
58821
|
+
}
|
|
58822
|
+
function isOperationDefinition(parent) {
|
|
58823
|
+
return !!parent && !Array.isArray(parent) && parent.kind === Kind.OPERATION_DEFINITION;
|
|
58824
|
+
}
|
|
58825
|
+
function isField(node) {
|
|
58826
|
+
return node.kind === Kind.FIELD;
|
|
58827
|
+
}
|
|
58828
|
+
function isFragmentDefinition(node) {
|
|
58829
|
+
return node.kind === Kind.FRAGMENT_DEFINITION;
|
|
58830
|
+
}
|
|
58790
58831
|
|
|
58791
58832
|
/*!
|
|
58792
58833
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -58910,7 +58951,7 @@ class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheContro
|
|
|
58910
58951
|
if (augmentedQueryResult.isErr()) {
|
|
58911
58952
|
throw augmentedQueryResult.error;
|
|
58912
58953
|
}
|
|
58913
|
-
return augmentedQueryResult.value;
|
|
58954
|
+
return addTypenameToDocument(augmentedQueryResult.value);
|
|
58914
58955
|
}
|
|
58915
58956
|
buildWriteInput(data) {
|
|
58916
58957
|
const extensionResult = buildGraphQLInputExtension({
|
|
@@ -59004,7 +59045,7 @@ class HttpGraphQLNormalizedCacheControlCommand extends HttpNormalizedCacheContro
|
|
|
59004
59045
|
if (augmentedQueryResult.isErr()) {
|
|
59005
59046
|
throw augmentedQueryResult.error;
|
|
59006
59047
|
}
|
|
59007
|
-
return augmentedQueryResult.value;
|
|
59048
|
+
return addTypenameToDocument(augmentedQueryResult.value);
|
|
59008
59049
|
}
|
|
59009
59050
|
buildWriteInput(data) {
|
|
59010
59051
|
const extensionResult = buildGraphQLInputExtension({
|
|
@@ -60013,4 +60054,4 @@ register({
|
|
|
60013
60054
|
});
|
|
60014
60055
|
|
|
60015
60056
|
export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, ingest$1o as ingestDenormalizedRecordRepresentation, initializeOneStore, registerReportObserver, reportGraphqlQueryParseError };
|
|
60016
|
-
// version: 1.
|
|
60057
|
+
// version: 1.383.0-b9875fc4e1
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-runtime-mobile",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.383.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "LDS runtime for mobile/hybrid environments.",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -32,42 +32,42 @@
|
|
|
32
32
|
"release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-runtime-mobile"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@luvio/service-provisioner": "5.
|
|
36
|
-
"@salesforce/lds-adapters-uiapi": "^1.
|
|
37
|
-
"@salesforce/lds-bindings": "^1.
|
|
38
|
-
"@salesforce/lds-instrumentation": "^1.
|
|
39
|
-
"@salesforce/lds-luvio-service": "^1.
|
|
40
|
-
"@salesforce/lds-luvio-uiapi-records-service": "^1.
|
|
35
|
+
"@luvio/service-provisioner": "5.58.0",
|
|
36
|
+
"@salesforce/lds-adapters-uiapi": "^1.383.0",
|
|
37
|
+
"@salesforce/lds-bindings": "^1.383.0",
|
|
38
|
+
"@salesforce/lds-instrumentation": "^1.383.0",
|
|
39
|
+
"@salesforce/lds-luvio-service": "^1.383.0",
|
|
40
|
+
"@salesforce/lds-luvio-uiapi-records-service": "^1.383.0",
|
|
41
41
|
"@salesforce/user": "0.0.21",
|
|
42
42
|
"o11y": "250.7.0",
|
|
43
43
|
"o11y_schema": "256.126.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@luvio/command-aura-network": "5.
|
|
47
|
-
"@luvio/command-aura-normalized-cache-control": "5.
|
|
48
|
-
"@luvio/command-aura-resource-cache-control": "5.
|
|
49
|
-
"@luvio/command-fetch-network": "5.
|
|
50
|
-
"@luvio/command-http-normalized-cache-control": "5.
|
|
51
|
-
"@luvio/command-network": "5.
|
|
52
|
-
"@luvio/service-cache": "5.
|
|
53
|
-
"@luvio/service-cache-control": "5.
|
|
54
|
-
"@luvio/service-cache-inclusion-policy": "5.
|
|
55
|
-
"@luvio/service-fetch-network": "5.
|
|
56
|
-
"@luvio/service-instrument-command": "5.
|
|
57
|
-
"@luvio/service-instrumentation": "5.
|
|
58
|
-
"@luvio/service-pubsub": "5.
|
|
59
|
-
"@luvio/service-store": "5.
|
|
60
|
-
"@luvio/utils": "5.
|
|
61
|
-
"@salesforce/lds-adapters-graphql": "^1.
|
|
62
|
-
"@salesforce/lds-drafts": "^1.
|
|
63
|
-
"@salesforce/lds-durable-records": "^1.
|
|
64
|
-
"@salesforce/lds-network-adapter": "^1.
|
|
65
|
-
"@salesforce/lds-network-nimbus": "^1.
|
|
66
|
-
"@salesforce/lds-store-binary": "^1.
|
|
67
|
-
"@salesforce/lds-store-nimbus": "^1.
|
|
68
|
-
"@salesforce/lds-store-sql": "^1.
|
|
69
|
-
"@salesforce/lds-utils-adapters": "^1.
|
|
70
|
-
"@salesforce/nimbus-plugin-lds": "^1.
|
|
46
|
+
"@luvio/command-aura-network": "5.58.0",
|
|
47
|
+
"@luvio/command-aura-normalized-cache-control": "5.58.0",
|
|
48
|
+
"@luvio/command-aura-resource-cache-control": "5.58.0",
|
|
49
|
+
"@luvio/command-fetch-network": "5.58.0",
|
|
50
|
+
"@luvio/command-http-normalized-cache-control": "5.58.0",
|
|
51
|
+
"@luvio/command-network": "5.58.0",
|
|
52
|
+
"@luvio/service-cache": "5.58.0",
|
|
53
|
+
"@luvio/service-cache-control": "5.58.0",
|
|
54
|
+
"@luvio/service-cache-inclusion-policy": "5.58.0",
|
|
55
|
+
"@luvio/service-fetch-network": "5.58.0",
|
|
56
|
+
"@luvio/service-instrument-command": "5.58.0",
|
|
57
|
+
"@luvio/service-instrumentation": "5.58.0",
|
|
58
|
+
"@luvio/service-pubsub": "5.58.0",
|
|
59
|
+
"@luvio/service-store": "5.58.0",
|
|
60
|
+
"@luvio/utils": "5.58.0",
|
|
61
|
+
"@salesforce/lds-adapters-graphql": "^1.383.0",
|
|
62
|
+
"@salesforce/lds-drafts": "^1.383.0",
|
|
63
|
+
"@salesforce/lds-durable-records": "^1.383.0",
|
|
64
|
+
"@salesforce/lds-network-adapter": "^1.383.0",
|
|
65
|
+
"@salesforce/lds-network-nimbus": "^1.383.0",
|
|
66
|
+
"@salesforce/lds-store-binary": "^1.383.0",
|
|
67
|
+
"@salesforce/lds-store-nimbus": "^1.383.0",
|
|
68
|
+
"@salesforce/lds-store-sql": "^1.383.0",
|
|
69
|
+
"@salesforce/lds-utils-adapters": "^1.383.0",
|
|
70
|
+
"@salesforce/nimbus-plugin-lds": "^1.383.0",
|
|
71
71
|
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
72
72
|
"wait-for-expect": "^3.0.2"
|
|
73
73
|
},
|
package/sfdc/main.js
CHANGED
|
@@ -57866,7 +57866,7 @@ function buildServiceDescriptor$5(luvio) {
|
|
|
57866
57866
|
},
|
|
57867
57867
|
};
|
|
57868
57868
|
}
|
|
57869
|
-
// version: 1.
|
|
57869
|
+
// version: 1.383.0-d85dce8db1
|
|
57870
57870
|
|
|
57871
57871
|
/**
|
|
57872
57872
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -57892,7 +57892,7 @@ function buildServiceDescriptor$4(notifyRecordUpdateAvailable, getNormalizedLuvi
|
|
|
57892
57892
|
},
|
|
57893
57893
|
};
|
|
57894
57894
|
}
|
|
57895
|
-
// version: 1.
|
|
57895
|
+
// version: 1.383.0-d85dce8db1
|
|
57896
57896
|
|
|
57897
57897
|
/*!
|
|
57898
57898
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -58777,7 +58777,7 @@ function buildGraphQLInputExtension(input) {
|
|
|
58777
58777
|
};
|
|
58778
58778
|
return prev;
|
|
58779
58779
|
}, {})) || {};
|
|
58780
|
-
const fragments = input.query.definitions.filter(
|
|
58780
|
+
const fragments = input.query.definitions.filter(isFragmentDefinition).reduce((prev, fragment) => {
|
|
58781
58781
|
prev[fragment.name.value] = fragment;
|
|
58782
58782
|
return prev;
|
|
58783
58783
|
}, {});
|
|
@@ -58787,6 +58787,47 @@ function buildGraphQLInputExtension(input) {
|
|
|
58787
58787
|
parentFieldSelection: void 0
|
|
58788
58788
|
});
|
|
58789
58789
|
}
|
|
58790
|
+
const TYPENAME_FIELD = {
|
|
58791
|
+
kind: Kind.FIELD,
|
|
58792
|
+
name: {
|
|
58793
|
+
kind: Kind.NAME,
|
|
58794
|
+
value: "__typename"
|
|
58795
|
+
}
|
|
58796
|
+
};
|
|
58797
|
+
function addTypenameToDocument(doc) {
|
|
58798
|
+
return visit(doc, {
|
|
58799
|
+
SelectionSet: {
|
|
58800
|
+
enter(node, _key, parent) {
|
|
58801
|
+
if (isOperationDefinition(parent)) {
|
|
58802
|
+
return;
|
|
58803
|
+
}
|
|
58804
|
+
const { selections } = node;
|
|
58805
|
+
if (!selections || selections.length === 0) {
|
|
58806
|
+
return;
|
|
58807
|
+
}
|
|
58808
|
+
const skip = selections.some((selection) => {
|
|
58809
|
+
return isField(selection) && (selection.name.value === "__typename" || selection.name.value.lastIndexOf("__", 0) === 0);
|
|
58810
|
+
});
|
|
58811
|
+
if (skip) {
|
|
58812
|
+
return;
|
|
58813
|
+
}
|
|
58814
|
+
return {
|
|
58815
|
+
...node,
|
|
58816
|
+
selections: [...selections, TYPENAME_FIELD]
|
|
58817
|
+
};
|
|
58818
|
+
}
|
|
58819
|
+
}
|
|
58820
|
+
});
|
|
58821
|
+
}
|
|
58822
|
+
function isOperationDefinition(parent) {
|
|
58823
|
+
return !!parent && !Array.isArray(parent) && parent.kind === Kind.OPERATION_DEFINITION;
|
|
58824
|
+
}
|
|
58825
|
+
function isField(node) {
|
|
58826
|
+
return node.kind === Kind.FIELD;
|
|
58827
|
+
}
|
|
58828
|
+
function isFragmentDefinition(node) {
|
|
58829
|
+
return node.kind === Kind.FRAGMENT_DEFINITION;
|
|
58830
|
+
}
|
|
58790
58831
|
|
|
58791
58832
|
/*!
|
|
58792
58833
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -58910,7 +58951,7 @@ class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheContro
|
|
|
58910
58951
|
if (augmentedQueryResult.isErr()) {
|
|
58911
58952
|
throw augmentedQueryResult.error;
|
|
58912
58953
|
}
|
|
58913
|
-
return augmentedQueryResult.value;
|
|
58954
|
+
return addTypenameToDocument(augmentedQueryResult.value);
|
|
58914
58955
|
}
|
|
58915
58956
|
buildWriteInput(data) {
|
|
58916
58957
|
const extensionResult = buildGraphQLInputExtension({
|
|
@@ -59004,7 +59045,7 @@ class HttpGraphQLNormalizedCacheControlCommand extends HttpNormalizedCacheContro
|
|
|
59004
59045
|
if (augmentedQueryResult.isErr()) {
|
|
59005
59046
|
throw augmentedQueryResult.error;
|
|
59006
59047
|
}
|
|
59007
|
-
return augmentedQueryResult.value;
|
|
59048
|
+
return addTypenameToDocument(augmentedQueryResult.value);
|
|
59008
59049
|
}
|
|
59009
59050
|
buildWriteInput(data) {
|
|
59010
59051
|
const extensionResult = buildGraphQLInputExtension({
|
|
@@ -60013,4 +60054,4 @@ register({
|
|
|
60013
60054
|
});
|
|
60014
60055
|
|
|
60015
60056
|
export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, ingest$1o as ingestDenormalizedRecordRepresentation, initializeOneStore, registerReportObserver, reportGraphqlQueryParseError };
|
|
60016
|
-
// version: 1.
|
|
60057
|
+
// version: 1.383.0-b9875fc4e1
|