@lyxa.ai/core 1.2.96-beta.1 → 1.2.96-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lyxa.ai/types",
|
|
3
|
-
"version": "1.2.96-beta.
|
|
3
|
+
"version": "1.2.96-beta.2",
|
|
4
4
|
"description": "Lyxa type definitions and validation schemas for both frontend and backend",
|
|
5
5
|
"author": "elie <42282499+Internalizable@users.noreply.github.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dayjs.js","sourceRoot":"/","sources":["utilities/dayjs/dayjs.ts"],"names":[],"mappings":";;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"dayjs.js","sourceRoot":"/","sources":["utilities/dayjs/dayjs.ts"],"names":[],"mappings":";;;;;;AAAA,kDAAqC;AACrC,2DAAmC;AACnC,qEAA6C;AAE7C,eAAK,CAAC,MAAM,CAAC,aAAG,CAAC,CAAC;AAClB,eAAK,CAAC,MAAM,CAAC,kBAAQ,CAAC,CAAC;AAEvB,IAAI,gBAAgB,GAAG,aAAa,CAAC;AASrC,MAAM,iBAAiB,GAAG,CAAC,IAAU,EAAE,MAAY,EAAE,EAAW,EAAE,EAAE;IAClE,MAAM,cAAc,GAAG,EAAE,IAAI,gBAAgB,CAAC;IAC9C,IAAI,MAAM,EAAE,CAAC;QACX,OAAO,IAAA,eAAK,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC;IAChD,CAAC;IACD,OAAO,IAAA,eAAK,EAAC,IAAI,CAAC,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC;AACxC,CAAC,CAAC;AAEF,MAAM,CAAC,IAAI,CAAC,eAAK,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;IAC9B,iBAAyB,CAAC,GAAG,CAAC,GAAI,eAAa,CAAC,GAAG,CAAC,CAAC;AACxD,CAAC,CAAC,CAAC;AAEI,MAAM,YAAY,GAAG,CAAC,QAAgB,EAAE,EAAE;IAC/C,gBAAgB,GAAG,QAAQ,CAAC;AAC9B,CAAC,CAAC;AAFW,QAAA,YAAY,gBAEvB;AAED,iBAAyB,CAAC,WAAW,GAAG,CAAC,QAAgB,EAAE,EAAE;IAC5D,gBAAgB,GAAG,QAAQ,CAAC;AAC9B,CAAC,CAAC;AAED,iBAAyB,CAAC,WAAW,GAAG,GAAG,EAAE,CAAC,gBAAgB,CAAC;AAEhE,kBAAe,iBAAiB,CAAC","sourcesContent":["import dayjs, { Dayjs } from 'dayjs';\nimport utc from 'dayjs/plugin/utc';\nimport timezone from 'dayjs/plugin/timezone';\n\ndayjs.extend(utc);\ndayjs.extend(timezone);\n\nlet DEFAULT_TIMEZONE = 'Asia/Beirut';\n\ninterface DayjsWithTimezone {\n (date?: any, format?: any, tz?: string): Dayjs;\n setTimezone: (timezone: string) => void;\n getTimezone: () => string;\n [key: string]: any;\n}\n\nconst dayjsWithTimezone = (date?: any, format?: any, tz?: string) => {\n const targetTimezone = tz || DEFAULT_TIMEZONE;\n if (format) {\n return dayjs(date, format).tz(targetTimezone);\n }\n return dayjs(date).tz(targetTimezone);\n};\n\nObject.keys(dayjs).forEach(key => {\n (dayjsWithTimezone as any)[key] = (dayjs as any)[key];\n});\n\nexport const _setTimezone = (timezone: string) => {\n DEFAULT_TIMEZONE = timezone;\n};\n\n(dayjsWithTimezone as any).setTimezone = (timezone: string) => {\n DEFAULT_TIMEZONE = timezone;\n};\n\n(dayjsWithTimezone as any).getTimezone = () => DEFAULT_TIMEZONE;\n\nexport default dayjsWithTimezone;"]}
|