ajuste no biome
This commit is contained in:
parent
fa33b5c23f
commit
eb88195f6a
14 changed files with 93 additions and 78 deletions
12
src/index.ts
12
src/index.ts
|
|
@ -1,11 +1,11 @@
|
|||
export * from "./aleatorio"
|
||||
export * from "./constantes"
|
||||
export * from "./consulta"
|
||||
export * from "./aleatorio"
|
||||
export * from "./texto_busca"
|
||||
export * from "./unidades_medida"
|
||||
export * from "./uuid"
|
||||
export * from "./ecosistema"
|
||||
export * from "./variaveisComuns"
|
||||
export * from "./tipagemRotas"
|
||||
export * from "./extensoes"
|
||||
export * from "./logger"
|
||||
export * from "./texto_busca"
|
||||
export * from "./tipagemRotas"
|
||||
export * from "./unidades_medida"
|
||||
export * from "./uuid"
|
||||
export * from "./variaveisComuns"
|
||||
|
|
|
|||
|
|
@ -14,9 +14,9 @@ export type tipoLokiObjeto = {
|
|||
|
||||
export const postLogger = async ({
|
||||
objeto,
|
||||
}: { objeto: tipoLokiObjeto }): Promise<
|
||||
[objeto: tipoLokiObjeto, erro?: string]
|
||||
> => {
|
||||
}: {
|
||||
objeto: tipoLokiObjeto
|
||||
}): Promise<[objeto: tipoLokiObjeto, erro?: string]> => {
|
||||
const response = await crossFetch(`${LOKI_BASE_URL}${LOKI_ENDPOINT}`, {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
|
|
@ -24,9 +24,8 @@ export const postLogger = async ({
|
|||
}).catch((a) => a)
|
||||
if (!response.ok) {
|
||||
return [objeto, `Erro ${response.status}: ${await response?.text?.()}`]
|
||||
} else {
|
||||
return [objeto]
|
||||
}
|
||||
return [objeto]
|
||||
}
|
||||
|
||||
let cwd = ""
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ export const texto_busca = (...texto: any[]): string =>
|
|||
? ""
|
||||
: String(txt)
|
||||
.normalize("NFD")
|
||||
// biome-ignore lint/suspicious/noMisleadingCharacterClass: <explanation>
|
||||
.replace(/[\u0300-\u036f]/g, "")
|
||||
.replace(/\s+/g, " ")
|
||||
.toLowerCase(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue