ajuste no dayjs
This commit is contained in:
parent
64ddd6ad8a
commit
b964e826d5
6 changed files with 23 additions and 16 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 dayjs_exports = {};
|
||||
__export(dayjs_exports, {
|
||||
dayjsbr: () => import_dayjs.default,
|
||||
dayjsbr: () => dayjsbr,
|
||||
duration: () => import_duration.default,
|
||||
isSameOrAfter: () => import_isSameOrAfter.default,
|
||||
isSameOrBefore: () => import_isSameOrBefore.default,
|
||||
|
|
@ -49,15 +49,16 @@ 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);
|
||||
import_dayjs.default.extend(import_weekOfYear.default);
|
||||
import_dayjs.default.extend(import_isSameOrBefore.default);
|
||||
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;
|
||||
dayjsbr.locale("pt-br");
|
||||
dayjsbr.extend(import_utc.default);
|
||||
dayjsbr.extend(import_timezone.default);
|
||||
dayjsbr.extend(import_weekOfYear.default);
|
||||
dayjsbr.extend(import_isSameOrBefore.default);
|
||||
dayjsbr.extend(import_isSameOrAfter.default);
|
||||
dayjsbr.extend(import_minMax.default);
|
||||
dayjsbr.extend(import_relativeTime.default);
|
||||
dayjsbr.extend(import_duration.default);
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
dayjsbr,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
import z, { z as z$1 } from 'zod';
|
||||
export { Dayjs, ManipulateType, default as dayjsbr } from 'dayjs';
|
||||
import dayjs from 'dayjs';
|
||||
export { Dayjs, ManipulateType } from 'dayjs';
|
||||
import { v4 } from 'uuid';
|
||||
export { default as duration } from 'dayjs/plugin/duration';
|
||||
export { default as isSameOrAfter } from 'dayjs/plugin/isSameOrAfter';
|
||||
export { default as isSameOrBefore } from 'dayjs/plugin/isSameOrBefore';
|
||||
|
|
@ -8,7 +10,6 @@ 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;
|
||||
|
||||
|
|
@ -100,6 +101,8 @@ 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";
|
||||
|
|
@ -472,4 +475,4 @@ declare const nomeVariavel: (v: {
|
|||
[key: string]: any;
|
||||
}) => string;
|
||||
|
||||
export { Produtos, TipagemRotas, agrupadores26, aleatorio, cacheM, cacheMFixo, cacheMemoria, camposComuns, criarFiltro26, erUuid, esperar, extensoes, type interfaceConsulta, link_paiol, localValor, nomeVariavel, objetoPg, operadores, operadores26, paraObjetoRegistroPg, pgObjeto, siglas_unidades_medida, texto_busca, tipoArquivo, type tipoFiltro, type tipoFiltro26, tipoUsuarioResiduos, tiposSituacoesElicencie, tx, umaFuncao, umaVariavel, unidades_medida, uuid, uuidV3, uuidV4, uuid_null, validarUuid, verCacheM, zFiltro, zFiltro26, zOperadores };
|
||||
export { Produtos, TipagemRotas, agrupadores26, aleatorio, cacheM, cacheMFixo, cacheMemoria, camposComuns, criarFiltro26, dayjsbr, erUuid, esperar, extensoes, type interfaceConsulta, link_paiol, localValor, nomeVariavel, objetoPg, operadores, operadores26, paraObjetoRegistroPg, pgObjeto, siglas_unidades_medida, texto_busca, tipoArquivo, type tipoFiltro, type tipoFiltro26, tipoUsuarioResiduos, tiposSituacoesElicencie, tx, umaFuncao, umaVariavel, unidades_medida, uuid, uuidV3, uuidV4, uuid_null, validarUuid, verCacheM, zFiltro, zFiltro26, zOperadores };
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "p-comuns",
|
||||
"version": "0.310.0",
|
||||
"version": "0.311.0",
|
||||
"description": "",
|
||||
"main": "./dist-front/index.mjs",
|
||||
"module": "./dist-front/index.mjs",
|
||||
|
|
|
|||
BIN
pacote.tgz
BIN
pacote.tgz
Binary file not shown.
|
|
@ -1,4 +1,7 @@
|
|||
import dayjsbr, { type Dayjs } from "dayjs"
|
||||
import type { Dayjs } from "dayjs"
|
||||
import dayjs from "dayjs"
|
||||
|
||||
const dayjsbr = dayjs
|
||||
|
||||
export type { ManipulateType } from "dayjs"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue