@kadirgun/lucid-bravo 0.2.0 → 0.2.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/build/index.js +3 -2
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -209,8 +209,9 @@ var LucidBravo = class {
|
|
|
209
209
|
* Apply preload include relations based on allowlist
|
|
210
210
|
*/
|
|
211
211
|
async applyIncludes() {
|
|
212
|
-
const includes =
|
|
213
|
-
if (
|
|
212
|
+
const includes = [];
|
|
213
|
+
if (Array.isArray(this.$params.include)) includes.push(...this.$params.include);
|
|
214
|
+
else if (typeof this.$params.include === "string") includes.push(this.$params.include);
|
|
214
215
|
const allowed = this.getAllowedIncludes();
|
|
215
216
|
for (const relation of includes) {
|
|
216
217
|
if (!allowed.includes(relation)) continue;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@kadirgun/lucid-bravo",
|
|
3
3
|
"description": "A powerful, fluent query builder for AdonisJS Lucid to handle filtering, sorting and pagination in a single flow",
|
|
4
4
|
"homepage": "https://github.com/kadirgun/lucid-bravo",
|
|
5
|
-
"version": "0.2.
|
|
5
|
+
"version": "0.2.1",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=24.0.0"
|
|
8
8
|
},
|