@ethlete/query 5.28.0 → 5.28.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @ethlete/query
|
|
2
2
|
|
|
3
|
+
## 5.28.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`89cf913`](https://github.com/ethlete-io/ethdk/commit/89cf913eafd1ec1215ad857f92b22d6a5b95092b) Thanks [@TomTomB](https://github.com/TomTomB)! - Fix access of undefined error in query 3
|
|
8
|
+
|
|
3
9
|
## 5.28.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -3345,8 +3345,8 @@ const getQueryFeatureUsage = (options) => {
|
|
|
3345
3345
|
? shouldAutoExecuteGqlQuery(options.creatorInternals.method)
|
|
3346
3346
|
: shouldAutoExecuteQuery(options.creatorInternals.method);
|
|
3347
3347
|
const shouldAutoExecute = shouldAutoExecuteMethod && !queryConfig.onlyManualExecution;
|
|
3348
|
-
const hasRouteFunction = typeof creatorInternals
|
|
3349
|
-
typeof creator
|
|
3348
|
+
const hasRouteFunction = typeof creatorInternals?.route === 'function' ||
|
|
3349
|
+
typeof creator?.route === 'function';
|
|
3350
3350
|
if (hasRouteFunction && !hasWithArgsFeature) {
|
|
3351
3351
|
throw withArgsQueryFeatureMissingButRouteIsFunction();
|
|
3352
3352
|
}
|