Compare commits

...

5 commits

Author SHA1 Message Date
303832ba8c build 2026-02-15 15:16:02 -03:00
dfec5a4527 Merge branch 'compatibilidade' 2026-02-15 15:15:58 -03:00
0bb66d830f dayjsbr 2026-02-15 15:09:53 -03:00
850a683ae0 ajustes de importação 2026-02-15 15:05:45 -03:00
287f308c3f agualização biome 2026-02-15 14:19:37 -03:00
8 changed files with 112 additions and 82 deletions

View file

@ -1,7 +1,7 @@
{
"$schema": "../node_modules/@biomejs/biome/configuration_schema.json",
"root": false,
"linter": {
"enabled": true,
"rules": {
@ -36,7 +36,7 @@
"useLiteralKeys": "off",
"useArrowFunction": "warn",
"useDateNow": "off",
"noUselessFragments":"off"
"noUselessFragments": "off"
},
"performance": {
"noAccumulatingSpread": "off"
@ -61,4 +61,4 @@
"attributePosition": "multiline"
}
}
}
}

View file

@ -28,19 +28,27 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var dayjs_exports = {};
__export(dayjs_exports, {
dayjsbr: () => dayjsbr
dayjsbr: () => import_dayjs.default,
duration: () => import_duration.default,
isSameOrAfter: () => import_isSameOrAfter.default,
isSameOrBefore: () => import_isSameOrBefore.default,
minMax: () => import_minMax.default,
relativeTime: () => import_relativeTime.default,
timezone: () => import_timezone.default,
utc: () => import_utc.default,
weekOfYear: () => import_weekOfYear.default
});
module.exports = __toCommonJS(dayjs_exports);
var import_dayjs = __toESM(require("dayjs"));
var import_duration = __toESM(require("dayjs/plugin/duration.js"));
var import_isSameOrAfter = __toESM(require("dayjs/plugin/isSameOrAfter.js"));
var import_isSameOrBefore = __toESM(require("dayjs/plugin/isSameOrBefore.js"));
var import_minMax = __toESM(require("dayjs/plugin/minMax.js"));
var import_relativeTime = __toESM(require("dayjs/plugin/relativeTime.js"));
var import_timezone = __toESM(require("dayjs/plugin/timezone.js"));
var import_utc = __toESM(require("dayjs/plugin/utc.js"));
var import_weekOfYear = __toESM(require("dayjs/plugin/weekOfYear.js"));
var import_pt_br = require("dayjs/locale/pt-br.js");
var import_duration = __toESM(require("dayjs/plugin/duration"));
var import_isSameOrAfter = __toESM(require("dayjs/plugin/isSameOrAfter"));
var import_isSameOrBefore = __toESM(require("dayjs/plugin/isSameOrBefore"));
var import_minMax = __toESM(require("dayjs/plugin/minMax"));
var import_relativeTime = __toESM(require("dayjs/plugin/relativeTime"));
var import_timezone = __toESM(require("dayjs/plugin/timezone"));
var import_utc = __toESM(require("dayjs/plugin/utc"));
var import_weekOfYear = __toESM(require("dayjs/plugin/weekOfYear"));
var import_pt_br = require("dayjs/locale/pt-br");
import_dayjs.default.locale("pt-br");
import_dayjs.default.extend(import_utc.default);
import_dayjs.default.extend(import_timezone.default);
@ -50,8 +58,15 @@ import_dayjs.default.extend(import_isSameOrAfter.default);
import_dayjs.default.extend(import_minMax.default);
import_dayjs.default.extend(import_relativeTime.default);
import_dayjs.default.extend(import_duration.default);
const dayjsbr = import_dayjs.default;
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
dayjsbr
dayjsbr,
duration,
isSameOrAfter,
isSameOrBefore,
minMax,
relativeTime,
timezone,
utc,
weekOfYear
});

View file

@ -1,6 +1,13 @@
import z from 'zod';
import dayjs from 'dayjs';
export { Dayjs, ManipulateType } from 'dayjs';
export { Dayjs, ManipulateType, default as dayjsbr } from 'dayjs';
export { default as duration } from 'dayjs/plugin/duration';
export { default as isSameOrAfter } from 'dayjs/plugin/isSameOrAfter';
export { default as isSameOrBefore } from 'dayjs/plugin/isSameOrBefore';
export { default as minMax } from 'dayjs/plugin/minMax';
export { default as relativeTime } from 'dayjs/plugin/relativeTime';
export { default as timezone } from 'dayjs/plugin/timezone';
export { default as utc } from 'dayjs/plugin/utc';
export { default as weekOfYear } from 'dayjs/plugin/weekOfYear';
import { v4 } from 'uuid';
declare const aleatorio: (tamanho?: number) => string;
@ -93,8 +100,6 @@ declare const zFiltro: z.ZodObject<{
ou: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strip>;
declare const dayjsbr: typeof dayjs;
declare const link_paiol = "https://paiol.idz.one";
type tiposArquivo = "imagem" | "documento" | "vídeo" | "outros";
@ -322,4 +327,4 @@ declare const nomeVariavel: (v: {
[key: string]: any;
}) => string;
export { Produtos, TipagemRotas, aleatorio, cacheM, cacheMFixo, cacheMemoria, camposComuns, dayjsbr, erUuid, esperar, extensoes, type interfaceConsulta, link_paiol, localValor, nomeVariavel, objetoPg, operadores, paraObjetoRegistroPg, pgObjeto, siglas_unidades_medida, texto_busca, tipoArquivo, type tipoFiltro, tipoUsuarioResiduos, tiposSituacoesElicencie, tx, umaFuncao, umaVariavel, unidades_medida, uuid, uuidV3, uuidV4, uuid_null, validarUuid, verCacheM, zFiltro, zOperadores };
export { Produtos, TipagemRotas, aleatorio, cacheM, cacheMFixo, cacheMemoria, camposComuns, erUuid, esperar, extensoes, type interfaceConsulta, link_paiol, localValor, nomeVariavel, objetoPg, operadores, paraObjetoRegistroPg, pgObjeto, siglas_unidades_medida, texto_busca, tipoArquivo, type tipoFiltro, tipoUsuarioResiduos, tiposSituacoesElicencie, tx, umaFuncao, umaVariavel, unidades_medida, uuid, uuidV3, uuidV4, uuid_null, validarUuid, verCacheM, zFiltro, zOperadores };

File diff suppressed because one or more lines are too long

8
package.json Executable file → Normal file
View file

@ -1,6 +1,6 @@
{
"name": "p-comuns",
"version": "0.299.0",
"version": "0.304.0",
"description": "",
"main": "./dist-front/index.mjs",
"module": "./dist-front/index.mjs",
@ -27,12 +27,12 @@
"license": "ISC",
"dependencies": {
"cross-fetch": "4.1.0",
"dayjs": "1.11.13",
"dayjs": "^1.11.18",
"uuid": "^11.1.0",
"zod": "4.1.4"
},
"devDependencies": {
"@biomejs/biome": "2.1.4",
"@biomejs/biome": "2.4.0",
"@types/node": "^20.19.22",
"tsup": "8.5.0",
"typescript": "~5.9.3",
@ -41,7 +41,7 @@
},
"peerDependencies": {
"cross-fetch": "4.1.0",
"dayjs": "1.11.13",
"dayjs": "^1.11.18",
"uuid": "^11.1.0",
"zod": "4.1.4"
}

Binary file not shown.

74
pnpm-lock.yaml generated
View file

@ -22,8 +22,8 @@ importers:
version: 4.1.4
devDependencies:
'@biomejs/biome':
specifier: 2.1.4
version: 2.1.4
specifier: 2.4.0
version: 2.4.0
'@types/node':
specifier: ^20.19.22
version: 20.19.22
@ -50,55 +50,55 @@ packages:
resolution: {integrity: sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==}
engines: {node: '>=6.9.0'}
'@biomejs/biome@2.1.4':
resolution: {integrity: sha512-QWlrqyxsU0FCebuMnkvBIkxvPqH89afiJzjMl+z67ybutse590jgeaFdDurE9XYtzpjRGTI1tlUZPGWmbKsElA==}
'@biomejs/biome@2.4.0':
resolution: {integrity: sha512-iluT61cORUDIC5i/y42ljyQraCemmmcgbMLLCnYO+yh+2hjTmcMFcwY8G0zTzWCsPb3t3AyKc+0t/VuhPZULUg==}
engines: {node: '>=14.21.3'}
hasBin: true
'@biomejs/cli-darwin-arm64@2.1.4':
resolution: {integrity: sha512-sCrNENE74I9MV090Wq/9Dg7EhPudx3+5OiSoQOkIe3DLPzFARuL1dOwCWhKCpA3I5RHmbrsbNSRfZwCabwd8Qg==}
'@biomejs/cli-darwin-arm64@2.4.0':
resolution: {integrity: sha512-L+YpOtPSuU0etomfvFTPWRsa7+8ejaJL3yaROEoT/96HDJbR6OsvZQk0C8JUYou+XFdP+JcGxqZknkp4n934RA==}
engines: {node: '>=14.21.3'}
cpu: [arm64]
os: [darwin]
'@biomejs/cli-darwin-x64@2.1.4':
resolution: {integrity: sha512-gOEICJbTCy6iruBywBDcG4X5rHMbqCPs3clh3UQ+hRKlgvJTk4NHWQAyHOXvaLe+AxD1/TNX1jbZeffBJzcrOw==}
'@biomejs/cli-darwin-x64@2.4.0':
resolution: {integrity: sha512-Aq+S7ffpb5ynTyLgtnEjG+W6xuTd2F7FdC7J6ShpvRhZwJhjzwITGF9vrqoOnw0sv1XWkt2Q1Rpg+hleg/Xg7Q==}
engines: {node: '>=14.21.3'}
cpu: [x64]
os: [darwin]
'@biomejs/cli-linux-arm64-musl@2.1.4':
resolution: {integrity: sha512-nYr7H0CyAJPaLupFE2cH16KZmRC5Z9PEftiA2vWxk+CsFkPZQ6dBRdcC6RuS+zJlPc/JOd8xw3uCCt9Pv41WvQ==}
'@biomejs/cli-linux-arm64-musl@2.4.0':
resolution: {integrity: sha512-1rhDUq8sf7xX3tg7vbnU3WVfanKCKi40OXc4VleBMzRStmQHdeBY46aFP6VdwEomcVjyNiu+Zcr3LZtAdrZrjQ==}
engines: {node: '>=14.21.3'}
cpu: [arm64]
os: [linux]
'@biomejs/cli-linux-arm64@2.1.4':
resolution: {integrity: sha512-juhEkdkKR4nbUi5k/KRp1ocGPNWLgFRD4NrHZSveYrD6i98pyvuzmS9yFYgOZa5JhaVqo0HPnci0+YuzSwT2fw==}
'@biomejs/cli-linux-arm64@2.4.0':
resolution: {integrity: sha512-u2p54IhvNAWB+h7+rxCZe3reNfQYFK+ppDw+q0yegrGclFYnDPZAntv/PqgUacpC3uxTeuWFgWW7RFe3lHuxOA==}
engines: {node: '>=14.21.3'}
cpu: [arm64]
os: [linux]
'@biomejs/cli-linux-x64-musl@2.1.4':
resolution: {integrity: sha512-lvwvb2SQQHctHUKvBKptR6PLFCM7JfRjpCCrDaTmvB7EeZ5/dQJPhTYBf36BE/B4CRWR2ZiBLRYhK7hhXBCZAg==}
'@biomejs/cli-linux-x64-musl@2.4.0':
resolution: {integrity: sha512-Omo0xhl63z47X+CrE5viEWKJhejJyndl577VoXg763U/aoATrK3r5+8DPh02GokWPeODX1Hek00OtjjooGan9w==}
engines: {node: '>=14.21.3'}
cpu: [x64]
os: [linux]
'@biomejs/cli-linux-x64@2.1.4':
resolution: {integrity: sha512-Eoy9ycbhpJVYuR+LskV9s3uyaIkp89+qqgqhGQsWnp/I02Uqg2fXFblHJOpGZR8AxdB9ADy87oFVxn9MpFKUrw==}
'@biomejs/cli-linux-x64@2.4.0':
resolution: {integrity: sha512-WVFOhsnzhrbMGOSIcB9yFdRV2oG2KkRRhIZiunI9gJqSU3ax9ErdnTxRfJUxZUI9NbzVxC60OCXNcu+mXfF/Tw==}
engines: {node: '>=14.21.3'}
cpu: [x64]
os: [linux]
'@biomejs/cli-win32-arm64@2.1.4':
resolution: {integrity: sha512-3WRYte7orvyi6TRfIZkDN9Jzoogbv+gSvR+b9VOXUg1We1XrjBg6WljADeVEaKTvOcpVdH0a90TwyOQ6ue4fGw==}
'@biomejs/cli-win32-arm64@2.4.0':
resolution: {integrity: sha512-aqRwW0LJLV1v1NzyLvLWQhdLmDSAV1vUh+OBdYJaa8f28XBn5BZavo+WTfqgEzALZxlNfBmu6NGO6Al3MbCULw==}
engines: {node: '>=14.21.3'}
cpu: [arm64]
os: [win32]
'@biomejs/cli-win32-x64@2.1.4':
resolution: {integrity: sha512-tBc+W7anBPSFXGAoQW+f/+svkpt8/uXfRwDzN1DvnatkRMt16KIYpEi/iw8u9GahJlFv98kgHcIrSsZHZTR0sw==}
'@biomejs/cli-win32-x64@2.4.0':
resolution: {integrity: sha512-g47s+V+OqsGxbSZN3lpav6WYOk0PIc3aCBAq+p6dwSynL3K5MA6Cg6nkzDOlu28GEHwbakW+BllzHCJCxnfK5Q==}
engines: {node: '>=14.21.3'}
cpu: [x64]
os: [win32]
@ -1479,39 +1479,39 @@ snapshots:
'@babel/helper-validator-identifier@7.28.5':
optional: true
'@biomejs/biome@2.1.4':
'@biomejs/biome@2.4.0':
optionalDependencies:
'@biomejs/cli-darwin-arm64': 2.1.4
'@biomejs/cli-darwin-x64': 2.1.4
'@biomejs/cli-linux-arm64': 2.1.4
'@biomejs/cli-linux-arm64-musl': 2.1.4
'@biomejs/cli-linux-x64': 2.1.4
'@biomejs/cli-linux-x64-musl': 2.1.4
'@biomejs/cli-win32-arm64': 2.1.4
'@biomejs/cli-win32-x64': 2.1.4
'@biomejs/cli-darwin-arm64': 2.4.0
'@biomejs/cli-darwin-x64': 2.4.0
'@biomejs/cli-linux-arm64': 2.4.0
'@biomejs/cli-linux-arm64-musl': 2.4.0
'@biomejs/cli-linux-x64': 2.4.0
'@biomejs/cli-linux-x64-musl': 2.4.0
'@biomejs/cli-win32-arm64': 2.4.0
'@biomejs/cli-win32-x64': 2.4.0
'@biomejs/cli-darwin-arm64@2.1.4':
'@biomejs/cli-darwin-arm64@2.4.0':
optional: true
'@biomejs/cli-darwin-x64@2.1.4':
'@biomejs/cli-darwin-x64@2.4.0':
optional: true
'@biomejs/cli-linux-arm64-musl@2.1.4':
'@biomejs/cli-linux-arm64-musl@2.4.0':
optional: true
'@biomejs/cli-linux-arm64@2.1.4':
'@biomejs/cli-linux-arm64@2.4.0':
optional: true
'@biomejs/cli-linux-x64-musl@2.1.4':
'@biomejs/cli-linux-x64-musl@2.4.0':
optional: true
'@biomejs/cli-linux-x64@2.1.4':
'@biomejs/cli-linux-x64@2.4.0':
optional: true
'@biomejs/cli-win32-arm64@2.1.4':
'@biomejs/cli-win32-arm64@2.4.0':
optional: true
'@biomejs/cli-win32-x64@2.1.4':
'@biomejs/cli-win32-x64@2.4.0':
optional: true
'@esbuild/aix-ppc64@0.25.11':

View file

@ -1,27 +1,37 @@
import dayjs, { type Dayjs } from "dayjs"
import dayjsbr, { type Dayjs } from "dayjs"
export type { ManipulateType } from "dayjs"
import duration from "dayjs/plugin/duration.js"
import isSameOrAfter from "dayjs/plugin/isSameOrAfter.js"
import isSameOrBefore from "dayjs/plugin/isSameOrBefore.js"
import minMax from "dayjs/plugin/minMax.js"
import relativeTime from "dayjs/plugin/relativeTime.js"
import timezone from "dayjs/plugin/timezone.js"
import utc from "dayjs/plugin/utc.js"
import weekOfYear from "dayjs/plugin/weekOfYear.js"
import "dayjs/locale/pt-br.js"
dayjs.locale("pt-br")
import duration from "dayjs/plugin/duration"
import isSameOrAfter from "dayjs/plugin/isSameOrAfter"
import isSameOrBefore from "dayjs/plugin/isSameOrBefore"
import minMax from "dayjs/plugin/minMax"
import relativeTime from "dayjs/plugin/relativeTime"
import timezone from "dayjs/plugin/timezone"
import utc from "dayjs/plugin/utc"
import weekOfYear from "dayjs/plugin/weekOfYear"
import "dayjs/locale/pt-br"
dayjsbr.locale("pt-br")
dayjs.extend(utc)
dayjs.extend(timezone)
dayjs.extend(weekOfYear)
dayjs.extend(isSameOrBefore)
dayjs.extend(isSameOrAfter)
dayjs.extend(minMax)
dayjs.extend(relativeTime)
dayjs.extend(duration)
dayjsbr.extend(utc)
dayjsbr.extend(timezone)
dayjsbr.extend(weekOfYear)
dayjsbr.extend(isSameOrBefore)
dayjsbr.extend(isSameOrAfter)
dayjsbr.extend(minMax)
dayjsbr.extend(relativeTime)
dayjsbr.extend(duration)
export const dayjsbr = dayjs
export {
dayjsbr,
duration,
isSameOrAfter,
isSameOrBefore,
minMax,
relativeTime,
timezone,
utc,
weekOfYear,
}
export type { Dayjs }