@ditojs/server 2.30.2 → 2.30.3
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ditojs/server",
|
|
3
|
-
"version": "2.30.
|
|
3
|
+
"version": "2.30.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Dito.js Server – Dito.js is a declarative and modern web framework, based on Objection.js, Koa.js and Vue.js",
|
|
6
6
|
"repository": "https://github.com/ditojs/dito/tree/master/packages/server",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"typescript": "^5.4.5"
|
|
91
91
|
},
|
|
92
92
|
"types": "types",
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "7ea9e5bd85295f299825a8560dc25caee1cc94d2",
|
|
94
94
|
"scripts": {
|
|
95
95
|
"types": "tsc --noEmit --esModuleInterop ./types/index.d.ts"
|
|
96
96
|
},
|
|
@@ -267,7 +267,12 @@ export class QueryBuilder extends objection.QueryBuilder {
|
|
|
267
267
|
const name = `^${scope}`
|
|
268
268
|
const modifiers = {
|
|
269
269
|
[name]: query => {
|
|
270
|
-
query.withScope(
|
|
270
|
+
query.withScope(
|
|
271
|
+
name,
|
|
272
|
+
// Pass `false` for `checkAllowedScopes` as when `#applyScope()`
|
|
273
|
+
// was called, no further checks are required.
|
|
274
|
+
false
|
|
275
|
+
)
|
|
271
276
|
if (query.#isJoinChildQuery) {
|
|
272
277
|
// Join child queries are never executed, and need to apply
|
|
273
278
|
// their scopes manually. Note that it's OK to call this
|