ajustes de importação
This commit is contained in:
parent
287f308c3f
commit
850a683ae0
6 changed files with 57 additions and 22 deletions
|
|
@ -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: () => dayjsbr,
|
||||||
|
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);
|
||||||
|
|
@ -53,5 +61,13 @@ import_dayjs.default.extend(import_duration.default);
|
||||||
const dayjsbr = import_dayjs.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
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,14 @@ import z from 'zod';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
export { Dayjs, ManipulateType } from 'dayjs';
|
export { Dayjs, ManipulateType } from 'dayjs';
|
||||||
import { v4 } from 'uuid';
|
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';
|
||||||
|
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';
|
||||||
|
|
||||||
declare const aleatorio: (tamanho?: number) => string;
|
declare const aleatorio: (tamanho?: number) => string;
|
||||||
|
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "p-comuns",
|
"name": "p-comuns",
|
||||||
"version": "0.299.0",
|
"version": "0.302.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.
29
src/dayjs.ts
29
src/dayjs.ts
|
|
@ -2,15 +2,15 @@ import dayjs, { 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")
|
dayjs.locale("pt-br")
|
||||||
|
|
||||||
dayjs.extend(utc)
|
dayjs.extend(utc)
|
||||||
|
|
@ -24,4 +24,15 @@ dayjs.extend(duration)
|
||||||
|
|
||||||
export const dayjsbr = dayjs
|
export const dayjsbr = dayjs
|
||||||
|
|
||||||
|
export {
|
||||||
|
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