All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.cjs.utils.dayjs.js.map Maven / Gradle / Ivy

Go to download

A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.

There is a newer version: 4.12.3
Show newest version
{"version":3,"file":"dayjs.js","names":["_dayjs","_interopRequireDefault","require","_default","dayjs","exports"],"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,GAEeC,iBAAK;AAAAC,OAAA,cAAAF,QAAA"}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy