dayjsbr
This commit is contained in:
parent
850a683ae0
commit
0bb66d830f
6 changed files with 17 additions and 22 deletions
|
|
@ -28,7 +28,7 @@ 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,
|
duration: () => import_duration.default,
|
||||||
isSameOrAfter: () => import_isSameOrAfter.default,
|
isSameOrAfter: () => import_isSameOrAfter.default,
|
||||||
isSameOrBefore: () => import_isSameOrBefore.default,
|
isSameOrBefore: () => import_isSameOrBefore.default,
|
||||||
|
|
@ -58,7 +58,6 @@ 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,
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
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';
|
|
||||||
import { v4 } from 'uuid';
|
|
||||||
export { default as duration } from 'dayjs/plugin/duration';
|
export { default as duration } from 'dayjs/plugin/duration';
|
||||||
export { default as isSameOrAfter } from 'dayjs/plugin/isSameOrAfter';
|
export { default as isSameOrAfter } from 'dayjs/plugin/isSameOrAfter';
|
||||||
export { default as isSameOrBefore } from 'dayjs/plugin/isSameOrBefore';
|
export { default as isSameOrBefore } from 'dayjs/plugin/isSameOrBefore';
|
||||||
|
|
@ -10,6 +8,7 @@ export { default as relativeTime } from 'dayjs/plugin/relativeTime';
|
||||||
export { default as timezone } from 'dayjs/plugin/timezone';
|
export { default as timezone } from 'dayjs/plugin/timezone';
|
||||||
export { default as utc } from 'dayjs/plugin/utc';
|
export { default as utc } from 'dayjs/plugin/utc';
|
||||||
export { default as weekOfYear } from 'dayjs/plugin/weekOfYear';
|
export { default as weekOfYear } from 'dayjs/plugin/weekOfYear';
|
||||||
|
import { v4 } from 'uuid';
|
||||||
|
|
||||||
declare const aleatorio: (tamanho?: number) => string;
|
declare const aleatorio: (tamanho?: number) => string;
|
||||||
|
|
||||||
|
|
@ -101,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";
|
||||||
|
|
@ -370,4 +367,4 @@ declare const nomeVariavel: (v: {
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}) => string;
|
}) => string;
|
||||||
|
|
||||||
export { Produtos, TipagemRotas, type TipoLoggerSessao, aleatorio, cacheM, cacheMFixo, cacheMemoria, camposComuns, dayjsbr, 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 };
|
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
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "p-comuns",
|
"name": "p-comuns",
|
||||||
"version": "0.302.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",
|
||||||
|
|
|
||||||
BIN
pacote.tgz
BIN
pacote.tgz
Binary file not shown.
23
src/dayjs.ts
23
src/dayjs.ts
|
|
@ -1,4 +1,4 @@
|
||||||
import dayjs, { type Dayjs } from "dayjs"
|
import dayjsbr, { type Dayjs } from "dayjs"
|
||||||
|
|
||||||
export type { ManipulateType } from "dayjs"
|
export type { ManipulateType } from "dayjs"
|
||||||
|
|
||||||
|
|
@ -11,20 +11,19 @@ import timezone from "dayjs/plugin/timezone"
|
||||||
import utc from "dayjs/plugin/utc"
|
import utc from "dayjs/plugin/utc"
|
||||||
import weekOfYear from "dayjs/plugin/weekOfYear"
|
import weekOfYear from "dayjs/plugin/weekOfYear"
|
||||||
import "dayjs/locale/pt-br"
|
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 {
|
export {
|
||||||
|
dayjsbr,
|
||||||
duration,
|
duration,
|
||||||
isSameOrAfter,
|
isSameOrAfter,
|
||||||
isSameOrBefore,
|
isSameOrBefore,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue