Compare commits

..

2 commits

Author SHA1 Message Date
6df27ff3b0 build 2025-09-26 09:23:19 -03:00
3e9aa7eeb4 . 2025-09-26 09:22:52 -03:00
4 changed files with 6 additions and 3 deletions

View file

@ -106,6 +106,7 @@ class TipagemRotas {
try {
queryObj[chave] = JSON.parse(queryObj[chave]);
} catch {
console.log(`[${queryObj[chave]}] n\xE3o \xE9 um json v\xE1lido.`);
}
}
return queryObj;

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
{
"name": "p-comuns",
"version": "0.235.0",
"version": "0.236.0",
"description": "",
"main": "./dist-back/index.js",
"module": "./dist-front/index.mjs",

View file

@ -129,7 +129,9 @@ export class TipagemRotas<T extends { [q: string]: any }> {
for (const chave in queryObj) {
try {
queryObj[chave] = JSON.parse(queryObj[chave])
} catch {}
} catch {
console.log(`[${queryObj[chave]}] não é um json válido.`)
}
}
return queryObj as Partial<T>