@fjell/core 4.4.66 → 4.4.68
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/index.js +19 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -571,6 +571,9 @@ var queryToParams = (query) => {
|
|
|
571
571
|
if (query.events) {
|
|
572
572
|
params.events = JSON.stringify(query.events);
|
|
573
573
|
}
|
|
574
|
+
if (query.orderBy) {
|
|
575
|
+
params.orderBy = JSON.stringify(query.orderBy);
|
|
576
|
+
}
|
|
574
577
|
return params;
|
|
575
578
|
};
|
|
576
579
|
var dateTimeReviver = function(key, value) {
|
|
@@ -603,6 +606,9 @@ var paramsToQuery = (params) => {
|
|
|
603
606
|
if (params.events) {
|
|
604
607
|
query.events = JSON.parse(params.events, dateTimeReviver);
|
|
605
608
|
}
|
|
609
|
+
if (params.orderBy) {
|
|
610
|
+
query.orderBy = JSON.parse(params.orderBy);
|
|
611
|
+
}
|
|
606
612
|
return query;
|
|
607
613
|
};
|
|
608
614
|
var isRefQueryMatch = (refKey, queryRef, references) => {
|
|
@@ -2212,8 +2218,20 @@ function createFindWrapper(coordinate, implementation, options = {}) {
|
|
|
2212
2218
|
};
|
|
2213
2219
|
throw options.onError(error, context);
|
|
2214
2220
|
}
|
|
2221
|
+
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
2222
|
+
const errorStack = error instanceof Error ? error.stack : null;
|
|
2223
|
+
const errorCause = error instanceof Error && "cause" in error ? error.cause : null;
|
|
2224
|
+
logger16.error(`[${operationName}] Operation failed for finder "${finder}"`, {
|
|
2225
|
+
finder,
|
|
2226
|
+
params,
|
|
2227
|
+
locations,
|
|
2228
|
+
findOptions,
|
|
2229
|
+
errorMessage,
|
|
2230
|
+
errorStack,
|
|
2231
|
+
errorCause
|
|
2232
|
+
});
|
|
2215
2233
|
throw new Error(
|
|
2216
|
-
`[${operationName}] Operation failed for finder "${finder}": ${
|
|
2234
|
+
`[${operationName}] Operation failed for finder "${finder}": ${errorMessage}`,
|
|
2217
2235
|
{ cause: error }
|
|
2218
2236
|
);
|
|
2219
2237
|
}
|