@opengis/fastify-table 1.3.41 → 1.3.43
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
|
@@ -58,7 +58,7 @@ export default async function update(req) {
|
|
|
58
58
|
const xssCheck = checkXSS({ body, schema });
|
|
59
59
|
|
|
60
60
|
if (xssCheck.error && formData?.xssCheck !== false) {
|
|
61
|
-
logger.
|
|
61
|
+
logger.file('injection/xss', { msg: xssCheck.error, table }, req);
|
|
62
62
|
return { message: 'Дані містять заборонені символи. Приберіть їх та спробуйте ще раз', status: 409 };
|
|
63
63
|
}
|
|
64
64
|
|
|
@@ -189,7 +189,7 @@ export default async function dataAPI(req, reply, called) {
|
|
|
189
189
|
count(*)::int as total,
|
|
190
190
|
count(*) FILTER(WHERE ${filterWhere.join(' and ') || 'true'})::int as filtered
|
|
191
191
|
${aggregates.length ? `,${aggregates.map((el) => `${aggColumns[el.name]}(${el.name}) FILTER(WHERE ${filterWhere.join(' and ') || 'true'}) as ${el.name}`).join(',')}` : ''}
|
|
192
|
-
from (select * ${sql?.filter(el => el.inline).map(el => `,(${el.sql})`).join('') || ''} from ${table} t ${sqlTable})
|
|
192
|
+
from (select * ${sql?.filter(el => el.inline).map(el => `,(${el.sql})`).join('') || ''} from ${table} t ${sqlTable}) t
|
|
193
193
|
where ${[loadTable?.query, tokenData?.query, accessQuery, contextQuery].filter(el => el).filter((el) => checkQuery(el)).join(' and ') || 'true'} `
|
|
194
194
|
.replace(/{{uid}}/g, uid);
|
|
195
195
|
|