Skip to content

Commit 0a7c4f1

Browse files
committed
Formatting
1 parent bdd29ee commit 0a7c4f1

1 file changed

Lines changed: 23 additions & 23 deletions

File tree

client.js

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -112,21 +112,21 @@ class Client {
112112
* to ensure compatibility with certain features.
113113
*
114114
* Version History:
115-
* - 3.0 (2017-08, CDP 4.3): Minimum supported version.
116-
* - 3.1 (2020-08, CDP 4.9):
117-
* - Support for reading full resolution data by setting num_of_datapoints to 0.
118-
* - Added a limit argument to SignalDataRequest (behaves like SQL LIMIT, where 0 means no limit).
119-
* - The server now notifies of dropped queries by returning a TooManyRequests error
120-
* when too many pending requests exist.
121-
* - 3.2 (2022-11, CDP 4.11): Limits queries to 50,000 rows to avoid overloading the logger app;
122-
* larger data sets should be downloaded in patches.
123-
* - 4.0 (2024-01, CDP 4.12):
124-
* - Added NodeTag support to save custom tags for logged values (e.g. Unit or Description),
125-
* accessible through the NodeInfo struct and TagMap protobuf message.
126-
* - Reduced network usage on the built-in server by having SignalDataResponse
127-
* only include changes instead of repeating unchanged values.
128-
* - Added support for string values and events.
129-
*
115+
* - 3.0 (2017-08, CDP 4.3): Minimum supported version.
116+
* - 3.1 (2020-08, CDP 4.9):
117+
* - Support for reading full resolution data by setting num_of_datapoints to 0.
118+
* - Added a limit argument to SignalDataRequest (behaves like SQL LIMIT, where 0 means no limit).
119+
* - The server now notifies of dropped queries by returning a TooManyRequests error
120+
* when too many pending requests exist.
121+
* - 3.2 (2022-11, CDP 4.11): Limits queries to 50,000 rows to avoid overloading the logger app;
122+
* larger data sets should be downloaded in patches.
123+
* - 4.0 (2024-01, CDP 4.12):
124+
* - Added NodeTag support to save custom tags for logged values (e.g. Unit or Description),
125+
* accessible through the NodeInfo struct and TagMap protobuf message.
126+
* - Reduced network usage on the built-in server by having SignalDataResponse
127+
* only include changes instead of repeating unchanged values.
128+
* - Added support for string values and events.
129+
*
130130
* @returns {Promise<string>} A promise that resolves with the version string
131131
* (e.g., "4.5.2"). If the version is below 3.0, the promise is rejected with
132132
* an error indicating an incompatible version.
@@ -870,10 +870,10 @@ class Client {
870870
_buildEventQuery(query) {
871871
// Validate the query object before building the EventQuery.
872872
this._validateEventQuery(query);
873-
873+
874874
const root = require('./generated/containerPb.js');
875875
const { EventQuery } = root.DBMessaging.Protobuf;
876-
876+
877877
// Conditionally include these fields only if the user has set them
878878
const optionalFields = [
879879
"timeRangeBegin",
@@ -883,15 +883,15 @@ class Client {
883883
"offset",
884884
"flags"
885885
];
886-
886+
887887
// Build a base query object that includes only the fields provided
888888
const baseQuery = {};
889889
optionalFields.forEach(field => {
890890
if (query[field] !== undefined) {
891891
baseQuery[field] = query[field];
892892
}
893893
});
894-
894+
895895
// Build senderConditions if present
896896
if (query.senderConditions && query.senderConditions.length > 0) {
897897
baseQuery.senderConditions = {
@@ -917,14 +917,14 @@ class Client {
917917
})
918918
};
919919
}
920-
920+
921921
// Build data conditions if present
922922
if (query.dataConditions) {
923923
const dataConds = {};
924924
for (const key in query.dataConditions) {
925925
const val = query.dataConditions[key];
926926
const conditions = [];
927-
927+
928928
if (Array.isArray(val)) {
929929
for (const item of val) {
930930
if (typeof item === 'object' && item !== null) {
@@ -964,12 +964,12 @@ class Client {
964964
type: Client.MatchType.Wildcard
965965
});
966966
}
967-
967+
968968
dataConds[key] = { conditions };
969969
}
970970
baseQuery.dataConditions = dataConds;
971971
}
972-
972+
973973
return EventQuery.create(baseQuery);
974974
}
975975
}

0 commit comments

Comments
 (0)