Compare commits

..

No commits in common. "303832ba8c4ee87cbdc6ae80ff12a56da6ce37cf" and "336e3ffc480d8a2c21cb4514cb3f3bd43b04499d" have entirely different histories.

8 changed files with 82 additions and 112 deletions

View file

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

View file

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

View file

@ -1,13 +1,6 @@
import z from 'zod'; import z from 'zod';
export { Dayjs, ManipulateType, default as dayjsbr } from 'dayjs'; import dayjs from 'dayjs';
export { default as duration } from 'dayjs/plugin/duration'; export { Dayjs, ManipulateType } from 'dayjs';
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'; import { v4 } from 'uuid';
declare const aleatorio: (tamanho?: number) => string; declare const aleatorio: (tamanho?: number) => string;
@ -100,6 +93,8 @@ declare const zFiltro: z.ZodObject<{
ou: z.ZodOptional<z.ZodBoolean>; ou: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strip>; }, z.core.$strip>;
declare const dayjsbr: typeof dayjs;
declare const link_paiol = "https://paiol.idz.one"; declare const link_paiol = "https://paiol.idz.one";
type tiposArquivo = "imagem" | "documento" | "vídeo" | "outros"; type tiposArquivo = "imagem" | "documento" | "vídeo" | "outros";
@ -327,4 +322,4 @@ declare const nomeVariavel: (v: {
[key: string]: any; [key: string]: any;
}) => string; }) => string;
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 }; 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 };

File diff suppressed because one or more lines are too long

8
package.json Normal file → Executable file
View file

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

Binary file not shown.

74
pnpm-lock.yaml generated
View file

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

View file

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