Merge branch 'compatibilidade'
This commit is contained in:
commit
dfec5a4527
7 changed files with 152 additions and 82 deletions
|
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -28,19 +28,27 @@ 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: () => 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);
|
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.js"));
|
var import_duration = __toESM(require("dayjs/plugin/duration"));
|
||||||
var import_isSameOrAfter = __toESM(require("dayjs/plugin/isSameOrAfter.js"));
|
var import_isSameOrAfter = __toESM(require("dayjs/plugin/isSameOrAfter"));
|
||||||
var import_isSameOrBefore = __toESM(require("dayjs/plugin/isSameOrBefore.js"));
|
var import_isSameOrBefore = __toESM(require("dayjs/plugin/isSameOrBefore"));
|
||||||
var import_minMax = __toESM(require("dayjs/plugin/minMax.js"));
|
var import_minMax = __toESM(require("dayjs/plugin/minMax"));
|
||||||
var import_relativeTime = __toESM(require("dayjs/plugin/relativeTime.js"));
|
var import_relativeTime = __toESM(require("dayjs/plugin/relativeTime"));
|
||||||
var import_timezone = __toESM(require("dayjs/plugin/timezone.js"));
|
var import_timezone = __toESM(require("dayjs/plugin/timezone"));
|
||||||
var import_utc = __toESM(require("dayjs/plugin/utc.js"));
|
var import_utc = __toESM(require("dayjs/plugin/utc"));
|
||||||
var import_weekOfYear = __toESM(require("dayjs/plugin/weekOfYear.js"));
|
var import_weekOfYear = __toESM(require("dayjs/plugin/weekOfYear"));
|
||||||
var import_pt_br = require("dayjs/locale/pt-br.js");
|
var import_pt_br = require("dayjs/locale/pt-br");
|
||||||
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);
|
||||||
|
|
@ -50,8 +58,15 @@ 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
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,13 @@
|
||||||
import z from 'zod';
|
import z from 'zod';
|
||||||
import dayjs from 'dayjs';
|
export { Dayjs, ManipulateType, default as dayjsbr } from 'dayjs';
|
||||||
export { Dayjs, ManipulateType } 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';
|
import { v4 } from 'uuid';
|
||||||
|
|
||||||
declare const aleatorio: (tamanho?: number) => string;
|
declare const aleatorio: (tamanho?: number) => string;
|
||||||
|
|
@ -93,8 +100,6 @@ 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";
|
||||||
|
|
@ -116,6 +121,46 @@ declare const tipoArquivo: (nomeArquivo: string | null | undefined) => tiposArqu
|
||||||
*/
|
*/
|
||||||
declare const localValor: <T>(chave_: string | any, valor?: T | null) => T | null;
|
declare const localValor: <T>(chave_: string | any, valor?: T | null) => T | null;
|
||||||
|
|
||||||
|
type tipoLokiObjeto = {
|
||||||
|
streams: {
|
||||||
|
stream: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
values: [string, string][];
|
||||||
|
}[];
|
||||||
|
};
|
||||||
|
declare const postLogger: ({ objeto, }: {
|
||||||
|
objeto: tipoLokiObjeto;
|
||||||
|
}) => Promise<[objeto: tipoLokiObjeto, erro?: string]>;
|
||||||
|
/** define a localização da pasta do projeto */
|
||||||
|
declare const defineCwd: (novoCwd: string) => void;
|
||||||
|
type tipoLevel = "info" | "warn" | "error";
|
||||||
|
type tipoOpSessao = {
|
||||||
|
inquilino: string;
|
||||||
|
usuario: string;
|
||||||
|
parametros?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
type tipoLog = {
|
||||||
|
detalhes?: unknown[];
|
||||||
|
__filename?: string;
|
||||||
|
local?: string;
|
||||||
|
parametros?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
type tipoLoggerLog = (level: tipoLevel, mensagem: string, op_tipoLog?: tipoLog) => Promise<[objeto: tipoLokiObjeto, erro?: string]>;
|
||||||
|
type TipoLoggerSessao = (sess: tipoOpSessao) => tipoLoggerLog;
|
||||||
|
type tipoLogger = (amb: {
|
||||||
|
app: string;
|
||||||
|
eProducao: boolean;
|
||||||
|
parametros?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
}) => TipoLoggerSessao;
|
||||||
|
declare const logger: tipoLogger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Trata um objeto para ser imput para postgres
|
* Trata um objeto para ser imput para postgres
|
||||||
* @param entrada
|
* @param entrada
|
||||||
|
|
@ -322,4 +367,4 @@ declare const nomeVariavel: (v: {
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}) => string;
|
}) => 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, type TipoLoggerSessao, aleatorio, cacheM, cacheMFixo, cacheMemoria, camposComuns, defineCwd, erUuid, esperar, extensoes, type interfaceConsulta, link_paiol, localValor, logger, nomeVariavel, objetoPg, operadores, paraObjetoRegistroPg, pgObjeto, postLogger, siglas_unidades_medida, texto_busca, tipoArquivo, type tipoFiltro, type tipoLogger, type tipoLoggerLog, type tipoLokiObjeto, 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
8
package.json
Executable file → Normal file
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "p-comuns",
|
"name": "p-comuns",
|
||||||
"version": "0.299.0",
|
"version": "0.303.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.13",
|
"dayjs": "^1.11.18",
|
||||||
"uuid": "^11.1.0",
|
"uuid": "^11.1.0",
|
||||||
"zod": "4.1.4"
|
"zod": "4.1.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@biomejs/biome": "2.1.4",
|
"@biomejs/biome": "2.4.0",
|
||||||
"@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.13",
|
"dayjs": "^1.11.18",
|
||||||
"uuid": "^11.1.0",
|
"uuid": "^11.1.0",
|
||||||
"zod": "4.1.4"
|
"zod": "4.1.4"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
74
pnpm-lock.yaml
generated
74
pnpm-lock.yaml
generated
|
|
@ -22,8 +22,8 @@ importers:
|
||||||
version: 4.1.4
|
version: 4.1.4
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@biomejs/biome':
|
'@biomejs/biome':
|
||||||
specifier: 2.1.4
|
specifier: 2.4.0
|
||||||
version: 2.1.4
|
version: 2.4.0
|
||||||
'@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.1.4':
|
'@biomejs/biome@2.4.0':
|
||||||
resolution: {integrity: sha512-QWlrqyxsU0FCebuMnkvBIkxvPqH89afiJzjMl+z67ybutse590jgeaFdDurE9XYtzpjRGTI1tlUZPGWmbKsElA==}
|
resolution: {integrity: sha512-iluT61cORUDIC5i/y42ljyQraCemmmcgbMLLCnYO+yh+2hjTmcMFcwY8G0zTzWCsPb3t3AyKc+0t/VuhPZULUg==}
|
||||||
engines: {node: '>=14.21.3'}
|
engines: {node: '>=14.21.3'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
'@biomejs/cli-darwin-arm64@2.1.4':
|
'@biomejs/cli-darwin-arm64@2.4.0':
|
||||||
resolution: {integrity: sha512-sCrNENE74I9MV090Wq/9Dg7EhPudx3+5OiSoQOkIe3DLPzFARuL1dOwCWhKCpA3I5RHmbrsbNSRfZwCabwd8Qg==}
|
resolution: {integrity: sha512-L+YpOtPSuU0etomfvFTPWRsa7+8ejaJL3yaROEoT/96HDJbR6OsvZQk0C8JUYou+XFdP+JcGxqZknkp4n934RA==}
|
||||||
engines: {node: '>=14.21.3'}
|
engines: {node: '>=14.21.3'}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [darwin]
|
os: [darwin]
|
||||||
|
|
||||||
'@biomejs/cli-darwin-x64@2.1.4':
|
'@biomejs/cli-darwin-x64@2.4.0':
|
||||||
resolution: {integrity: sha512-gOEICJbTCy6iruBywBDcG4X5rHMbqCPs3clh3UQ+hRKlgvJTk4NHWQAyHOXvaLe+AxD1/TNX1jbZeffBJzcrOw==}
|
resolution: {integrity: sha512-Aq+S7ffpb5ynTyLgtnEjG+W6xuTd2F7FdC7J6ShpvRhZwJhjzwITGF9vrqoOnw0sv1XWkt2Q1Rpg+hleg/Xg7Q==}
|
||||||
engines: {node: '>=14.21.3'}
|
engines: {node: '>=14.21.3'}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [darwin]
|
os: [darwin]
|
||||||
|
|
||||||
'@biomejs/cli-linux-arm64-musl@2.1.4':
|
'@biomejs/cli-linux-arm64-musl@2.4.0':
|
||||||
resolution: {integrity: sha512-nYr7H0CyAJPaLupFE2cH16KZmRC5Z9PEftiA2vWxk+CsFkPZQ6dBRdcC6RuS+zJlPc/JOd8xw3uCCt9Pv41WvQ==}
|
resolution: {integrity: sha512-1rhDUq8sf7xX3tg7vbnU3WVfanKCKi40OXc4VleBMzRStmQHdeBY46aFP6VdwEomcVjyNiu+Zcr3LZtAdrZrjQ==}
|
||||||
engines: {node: '>=14.21.3'}
|
engines: {node: '>=14.21.3'}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
|
|
||||||
'@biomejs/cli-linux-arm64@2.1.4':
|
'@biomejs/cli-linux-arm64@2.4.0':
|
||||||
resolution: {integrity: sha512-juhEkdkKR4nbUi5k/KRp1ocGPNWLgFRD4NrHZSveYrD6i98pyvuzmS9yFYgOZa5JhaVqo0HPnci0+YuzSwT2fw==}
|
resolution: {integrity: sha512-u2p54IhvNAWB+h7+rxCZe3reNfQYFK+ppDw+q0yegrGclFYnDPZAntv/PqgUacpC3uxTeuWFgWW7RFe3lHuxOA==}
|
||||||
engines: {node: '>=14.21.3'}
|
engines: {node: '>=14.21.3'}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
|
|
||||||
'@biomejs/cli-linux-x64-musl@2.1.4':
|
'@biomejs/cli-linux-x64-musl@2.4.0':
|
||||||
resolution: {integrity: sha512-lvwvb2SQQHctHUKvBKptR6PLFCM7JfRjpCCrDaTmvB7EeZ5/dQJPhTYBf36BE/B4CRWR2ZiBLRYhK7hhXBCZAg==}
|
resolution: {integrity: sha512-Omo0xhl63z47X+CrE5viEWKJhejJyndl577VoXg763U/aoATrK3r5+8DPh02GokWPeODX1Hek00OtjjooGan9w==}
|
||||||
engines: {node: '>=14.21.3'}
|
engines: {node: '>=14.21.3'}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
|
|
||||||
'@biomejs/cli-linux-x64@2.1.4':
|
'@biomejs/cli-linux-x64@2.4.0':
|
||||||
resolution: {integrity: sha512-Eoy9ycbhpJVYuR+LskV9s3uyaIkp89+qqgqhGQsWnp/I02Uqg2fXFblHJOpGZR8AxdB9ADy87oFVxn9MpFKUrw==}
|
resolution: {integrity: sha512-WVFOhsnzhrbMGOSIcB9yFdRV2oG2KkRRhIZiunI9gJqSU3ax9ErdnTxRfJUxZUI9NbzVxC60OCXNcu+mXfF/Tw==}
|
||||||
engines: {node: '>=14.21.3'}
|
engines: {node: '>=14.21.3'}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
|
|
||||||
'@biomejs/cli-win32-arm64@2.1.4':
|
'@biomejs/cli-win32-arm64@2.4.0':
|
||||||
resolution: {integrity: sha512-3WRYte7orvyi6TRfIZkDN9Jzoogbv+gSvR+b9VOXUg1We1XrjBg6WljADeVEaKTvOcpVdH0a90TwyOQ6ue4fGw==}
|
resolution: {integrity: sha512-aqRwW0LJLV1v1NzyLvLWQhdLmDSAV1vUh+OBdYJaa8f28XBn5BZavo+WTfqgEzALZxlNfBmu6NGO6Al3MbCULw==}
|
||||||
engines: {node: '>=14.21.3'}
|
engines: {node: '>=14.21.3'}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [win32]
|
os: [win32]
|
||||||
|
|
||||||
'@biomejs/cli-win32-x64@2.1.4':
|
'@biomejs/cli-win32-x64@2.4.0':
|
||||||
resolution: {integrity: sha512-tBc+W7anBPSFXGAoQW+f/+svkpt8/uXfRwDzN1DvnatkRMt16KIYpEi/iw8u9GahJlFv98kgHcIrSsZHZTR0sw==}
|
resolution: {integrity: sha512-g47s+V+OqsGxbSZN3lpav6WYOk0PIc3aCBAq+p6dwSynL3K5MA6Cg6nkzDOlu28GEHwbakW+BllzHCJCxnfK5Q==}
|
||||||
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.1.4':
|
'@biomejs/biome@2.4.0':
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
'@biomejs/cli-darwin-arm64': 2.1.4
|
'@biomejs/cli-darwin-arm64': 2.4.0
|
||||||
'@biomejs/cli-darwin-x64': 2.1.4
|
'@biomejs/cli-darwin-x64': 2.4.0
|
||||||
'@biomejs/cli-linux-arm64': 2.1.4
|
'@biomejs/cli-linux-arm64': 2.4.0
|
||||||
'@biomejs/cli-linux-arm64-musl': 2.1.4
|
'@biomejs/cli-linux-arm64-musl': 2.4.0
|
||||||
'@biomejs/cli-linux-x64': 2.1.4
|
'@biomejs/cli-linux-x64': 2.4.0
|
||||||
'@biomejs/cli-linux-x64-musl': 2.1.4
|
'@biomejs/cli-linux-x64-musl': 2.4.0
|
||||||
'@biomejs/cli-win32-arm64': 2.1.4
|
'@biomejs/cli-win32-arm64': 2.4.0
|
||||||
'@biomejs/cli-win32-x64': 2.1.4
|
'@biomejs/cli-win32-x64': 2.4.0
|
||||||
|
|
||||||
'@biomejs/cli-darwin-arm64@2.1.4':
|
'@biomejs/cli-darwin-arm64@2.4.0':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@biomejs/cli-darwin-x64@2.1.4':
|
'@biomejs/cli-darwin-x64@2.4.0':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@biomejs/cli-linux-arm64-musl@2.1.4':
|
'@biomejs/cli-linux-arm64-musl@2.4.0':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@biomejs/cli-linux-arm64@2.1.4':
|
'@biomejs/cli-linux-arm64@2.4.0':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@biomejs/cli-linux-x64-musl@2.1.4':
|
'@biomejs/cli-linux-x64-musl@2.4.0':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@biomejs/cli-linux-x64@2.1.4':
|
'@biomejs/cli-linux-x64@2.4.0':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@biomejs/cli-win32-arm64@2.1.4':
|
'@biomejs/cli-win32-arm64@2.4.0':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@biomejs/cli-win32-x64@2.1.4':
|
'@biomejs/cli-win32-x64@2.4.0':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@esbuild/aix-ppc64@0.25.11':
|
'@esbuild/aix-ppc64@0.25.11':
|
||||||
|
|
|
||||||
50
src/dayjs.ts
50
src/dayjs.ts
|
|
@ -1,27 +1,37 @@
|
||||||
import dayjs, { type Dayjs } from "dayjs"
|
import dayjsbr, { type Dayjs } from "dayjs"
|
||||||
|
|
||||||
export type { ManipulateType } from "dayjs"
|
export type { ManipulateType } from "dayjs"
|
||||||
|
|
||||||
import duration from "dayjs/plugin/duration.js"
|
import duration from "dayjs/plugin/duration"
|
||||||
import isSameOrAfter from "dayjs/plugin/isSameOrAfter.js"
|
import isSameOrAfter from "dayjs/plugin/isSameOrAfter"
|
||||||
import isSameOrBefore from "dayjs/plugin/isSameOrBefore.js"
|
import isSameOrBefore from "dayjs/plugin/isSameOrBefore"
|
||||||
import minMax from "dayjs/plugin/minMax.js"
|
import minMax from "dayjs/plugin/minMax"
|
||||||
import relativeTime from "dayjs/plugin/relativeTime.js"
|
import relativeTime from "dayjs/plugin/relativeTime"
|
||||||
import timezone from "dayjs/plugin/timezone.js"
|
import timezone from "dayjs/plugin/timezone"
|
||||||
import utc from "dayjs/plugin/utc.js"
|
import utc from "dayjs/plugin/utc"
|
||||||
import weekOfYear from "dayjs/plugin/weekOfYear.js"
|
import weekOfYear from "dayjs/plugin/weekOfYear"
|
||||||
import "dayjs/locale/pt-br.js"
|
import "dayjs/locale/pt-br"
|
||||||
dayjs.locale("pt-br")
|
dayjsbr.locale("pt-br")
|
||||||
|
|
||||||
dayjs.extend(utc)
|
dayjsbr.extend(utc)
|
||||||
dayjs.extend(timezone)
|
dayjsbr.extend(timezone)
|
||||||
dayjs.extend(weekOfYear)
|
dayjsbr.extend(weekOfYear)
|
||||||
dayjs.extend(isSameOrBefore)
|
dayjsbr.extend(isSameOrBefore)
|
||||||
dayjs.extend(isSameOrAfter)
|
dayjsbr.extend(isSameOrAfter)
|
||||||
dayjs.extend(minMax)
|
dayjsbr.extend(minMax)
|
||||||
dayjs.extend(relativeTime)
|
dayjsbr.extend(relativeTime)
|
||||||
dayjs.extend(duration)
|
dayjsbr.extend(duration)
|
||||||
|
|
||||||
export const dayjsbr = dayjs
|
export {
|
||||||
|
dayjsbr,
|
||||||
|
duration,
|
||||||
|
isSameOrAfter,
|
||||||
|
isSameOrBefore,
|
||||||
|
minMax,
|
||||||
|
relativeTime,
|
||||||
|
timezone,
|
||||||
|
utc,
|
||||||
|
weekOfYear,
|
||||||
|
}
|
||||||
|
|
||||||
export type { Dayjs }
|
export type { Dayjs }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue