melhorias no dayjs
This commit is contained in:
parent
8c8802d6f7
commit
7f3c28ca1b
5 changed files with 24 additions and 16 deletions
|
|
@ -28,7 +28,8 @@ 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
|
dayjs: () => import_dayjs.default,
|
||||||
|
dayjsbr: () => dayjsbr
|
||||||
});
|
});
|
||||||
module.exports = __toCommonJS(dayjs_exports);
|
module.exports = __toCommonJS(dayjs_exports);
|
||||||
var import_dayjs = __toESM(require("dayjs"));
|
var import_dayjs = __toESM(require("dayjs"));
|
||||||
|
|
@ -41,16 +42,18 @@ var import_relativeTime = __toESM(require("dayjs/plugin/relativeTime"));
|
||||||
var import_timezone = __toESM(require("dayjs/plugin/timezone"));
|
var import_timezone = __toESM(require("dayjs/plugin/timezone"));
|
||||||
var import_utc = __toESM(require("dayjs/plugin/utc"));
|
var import_utc = __toESM(require("dayjs/plugin/utc"));
|
||||||
var import_weekOfYear = __toESM(require("dayjs/plugin/weekOfYear"));
|
var import_weekOfYear = __toESM(require("dayjs/plugin/weekOfYear"));
|
||||||
import_dayjs.default.extend(import_utc.default);
|
const dayjsbr = import_dayjs.default;
|
||||||
import_dayjs.default.extend(import_timezone.default);
|
dayjsbr.extend(import_utc.default);
|
||||||
import_dayjs.default.extend(import_weekOfYear.default);
|
dayjsbr.extend(import_timezone.default);
|
||||||
import_dayjs.default.extend(import_isSameOrBefore.default);
|
dayjsbr.extend(import_weekOfYear.default);
|
||||||
import_dayjs.default.extend(import_isSameOrAfter.default);
|
dayjsbr.extend(import_isSameOrBefore.default);
|
||||||
import_dayjs.default.extend(import_minMax.default);
|
dayjsbr.extend(import_isSameOrAfter.default);
|
||||||
import_dayjs.default.extend(import_relativeTime.default);
|
dayjsbr.extend(import_minMax.default);
|
||||||
import_dayjs.default.extend(import_duration.default);
|
dayjsbr.extend(import_relativeTime.default);
|
||||||
import_dayjs.default.locale("pt-br");
|
dayjsbr.extend(import_duration.default);
|
||||||
|
dayjsbr.locale("pt-br");
|
||||||
// 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 = {
|
||||||
|
dayjs,
|
||||||
dayjsbr
|
dayjsbr
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
import z from 'zod';
|
import z from 'zod';
|
||||||
export { ManipulateType, default as dayjsbr } from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
|
export { ManipulateType, default as dayjs } from 'dayjs';
|
||||||
import { v4 } from 'uuid';
|
import { v4 } from 'uuid';
|
||||||
|
|
||||||
declare const aleatorio: (tamanho?: number) => string;
|
declare const aleatorio: (tamanho?: number) => string;
|
||||||
|
|
@ -89,6 +90,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 cdn_carro_de_boi = "https://carro-de-boi-idz-one.b-cdn.net";
|
declare const cdn_carro_de_boi = "https://carro-de-boi-idz-one.b-cdn.net";
|
||||||
|
|
||||||
type tiposArquivo = "imagem" | "documento" | "vídeo" | "outros";
|
type tiposArquivo = "imagem" | "documento" | "vídeo" | "outros";
|
||||||
|
|
@ -308,4 +311,4 @@ declare const nomeVariavel: (v: {
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}) => string;
|
}) => string;
|
||||||
|
|
||||||
export { TipagemRotas, type TipoLoggerSessao, aleatorio, cacheM, cacheMFixo, cacheMemoria, camposComuns, cdn_carro_de_boi, defineCwd, erUuid, esperar, extensoes, graficos_pilao, type interfaceConsulta, localValor, logger, nomeVariavel, objetoPg, operadores, paraObjetoRegistroPg, pgObjeto, postLogger, siglas_unidades_medida, texto_busca, tipoArquivo, type tipoFiltro, type tipoLogger, type tipoLoggerLog, type tipoLokiObjeto, tipoUsuarioResiduos, tx, umaFuncao, umaVariavel, unidades_medida, uuid, uuidV3, uuidV4, uuid_null, validarUuid, verCacheM, zFiltro, zOperadores };
|
export { TipagemRotas, type TipoLoggerSessao, aleatorio, cacheM, cacheMFixo, cacheMemoria, camposComuns, cdn_carro_de_boi, dayjsbr, defineCwd, erUuid, esperar, extensoes, graficos_pilao, type interfaceConsulta, localValor, logger, nomeVariavel, objetoPg, operadores, paraObjetoRegistroPg, pgObjeto, postLogger, siglas_unidades_medida, texto_busca, tipoArquivo, type tipoFiltro, type tipoLogger, type tipoLoggerLog, type tipoLokiObjeto, tipoUsuarioResiduos, 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.246.0",
|
"version": "0.247.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "./dist-back/index.js",
|
"main": "./dist-back/index.js",
|
||||||
"module": "./dist-front/index.mjs",
|
"module": "./dist-front/index.mjs",
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
import dayjsbr from "dayjs"
|
import dayjs from "dayjs"
|
||||||
|
|
||||||
|
const dayjsbr = dayjs
|
||||||
|
|
||||||
export type { ManipulateType } from "dayjs"
|
export type { ManipulateType } from "dayjs"
|
||||||
import "dayjs/locale/pt-br"
|
import "dayjs/locale/pt-br"
|
||||||
|
|
@ -21,4 +23,4 @@ dayjsbr.extend(relativeTime)
|
||||||
dayjsbr.extend(duration)
|
dayjsbr.extend(duration)
|
||||||
dayjsbr.locale("pt-br")
|
dayjsbr.locale("pt-br")
|
||||||
|
|
||||||
export { dayjsbr }
|
export { dayjsbr, dayjs }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue