package.cjs.utils.dayjs.js.map Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neeto-commons-frontend Show documentation
Show all versions of neeto-commons-frontend Show documentation
A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.
{"version":3,"file":"dayjs.js","names":["_dayjs","_interopRequireDefault","require","_default","exports","dayjs"],"sources":["../../../src/utils/dayjs.js"],"sourcesContent":["import dayjs from \"dayjs\";\n\n// const hasTimezone = dateString => {\n// const timezoneRegex = /Z|[+-]\\d{2}:\\d{2}$|GMT([+-]\\d{4})?$/;\n\n// return timezoneRegex.test(dateString);\n// };\n\n// const dayjs = (...args) => {\n// if (args.length > 0 && typeof args[0] === \"string\" && hasTimezone(args[0])) {\n// args[0] = pureDayjs(args[0]);\n// }\n\n// const timezone = pureDayjs.tz().$x.$timezone || pureDayjs.tz.guess();\n\n// return args.length === 2\n// ? pureDayjs.tz(...args, timezone)\n// : pureDayjs.tz(...args);\n// };\n\n// Object.assign(dayjs, { ...pureDayjs });\n\nexport default dayjs;\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA;AACA;AAEA;AACA;AAEA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AAEA;AAAA,IAAAC,QAAA,GAAAC,OAAA,cAEeC,iBAAK","ignoreList":[]}