Compare commits
1 commit
master
...
master-day
| Author | SHA1 | Date | |
|---|---|---|---|
| e4662fe240 |
6 changed files with 31 additions and 31 deletions
|
|
@ -28,10 +28,9 @@ 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: () => dayjsbr
|
||||
definirDayjsbr: () => definirDayjsbr
|
||||
});
|
||||
module.exports = __toCommonJS(dayjs_exports);
|
||||
var import_dayjs = __toESM(require("dayjs"));
|
||||
var import_duration = __toESM(require("dayjs/plugin/duration"));
|
||||
var import_isSameOrAfter = __toESM(require("dayjs/plugin/isSameOrAfter"));
|
||||
var import_isSameOrBefore = __toESM(require("dayjs/plugin/isSameOrBefore"));
|
||||
|
|
@ -41,17 +40,19 @@ 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");
|
||||
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);
|
||||
const definirDayjsbr = (dayjsEntrada) => {
|
||||
dayjsEntrada.locale("pt-br");
|
||||
dayjsEntrada.extend(import_utc.default);
|
||||
dayjsEntrada.extend(import_timezone.default);
|
||||
dayjsEntrada.extend(import_weekOfYear.default);
|
||||
dayjsEntrada.extend(import_isSameOrBefore.default);
|
||||
dayjsEntrada.extend(import_isSameOrAfter.default);
|
||||
dayjsEntrada.extend(import_minMax.default);
|
||||
dayjsEntrada.extend(import_relativeTime.default);
|
||||
dayjsEntrada.extend(import_duration.default);
|
||||
return dayjsEntrada;
|
||||
};
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
dayjsbr
|
||||
definirDayjsbr
|
||||
});
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ declare const zFiltro: z.ZodObject<{
|
|||
ou: z.ZodOptional<z.ZodBoolean>;
|
||||
}, z.core.$strip>;
|
||||
|
||||
declare const dayjsbr: typeof dayjs;
|
||||
declare const definirDayjsbr: (dayjsEntrada: typeof dayjs) => typeof dayjs;
|
||||
|
||||
declare const link_paiol = "https://paiol.idz.one";
|
||||
|
||||
|
|
@ -467,4 +467,4 @@ declare const nomeVariavel: (v: {
|
|||
[key: string]: any;
|
||||
}) => string;
|
||||
|
||||
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 };
|
||||
export { Produtos, TipagemRotas, agrupadores26, aleatorio, cacheM, cacheMFixo, cacheMemoria, camposComuns, criarFiltro26, definirDayjsbr, 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.313.0",
|
||||
"version": "0.314.0",
|
||||
"description": "",
|
||||
"main": "./dist-front/index.mjs",
|
||||
"module": "./dist-front/index.mjs",
|
||||
|
|
|
|||
BIN
pacote.tgz
BIN
pacote.tgz
Binary file not shown.
27
src/dayjs.ts
27
src/dayjs.ts
|
|
@ -1,7 +1,5 @@
|
|||
import type dayjs from "dayjs"
|
||||
import type { Dayjs } from "dayjs"
|
||||
import dayjs from "dayjs"
|
||||
|
||||
const dayjsbr = dayjs
|
||||
|
||||
export type { ManipulateType } from "dayjs"
|
||||
|
||||
|
|
@ -14,17 +12,18 @@ import timezone from "dayjs/plugin/timezone"
|
|||
import utc from "dayjs/plugin/utc"
|
||||
import weekOfYear from "dayjs/plugin/weekOfYear"
|
||||
import "dayjs/locale/pt-br"
|
||||
dayjsbr.locale("pt-br")
|
||||
|
||||
dayjsbr.extend(utc)
|
||||
dayjsbr.extend(timezone)
|
||||
dayjsbr.extend(weekOfYear)
|
||||
dayjsbr.extend(isSameOrBefore)
|
||||
dayjsbr.extend(isSameOrAfter)
|
||||
dayjsbr.extend(minMax)
|
||||
dayjsbr.extend(relativeTime)
|
||||
dayjsbr.extend(duration)
|
||||
|
||||
export { dayjsbr }
|
||||
export const definirDayjsbr = (dayjsEntrada: typeof dayjs) => {
|
||||
dayjsEntrada.locale("pt-br")
|
||||
dayjsEntrada.extend(utc)
|
||||
dayjsEntrada.extend(timezone)
|
||||
dayjsEntrada.extend(weekOfYear)
|
||||
dayjsEntrada.extend(isSameOrBefore)
|
||||
dayjsEntrada.extend(isSameOrAfter)
|
||||
dayjsEntrada.extend(minMax)
|
||||
dayjsEntrada.extend(relativeTime)
|
||||
dayjsEntrada.extend(duration)
|
||||
return dayjsEntrada
|
||||
}
|
||||
|
||||
export type { Dayjs }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue