its working

This commit is contained in:
Eudes Inácio
2023-06-30 09:54:21 +01:00
parent 2178ad88c2
commit 53b71ea16f
1222 changed files with 1220 additions and 343 deletions
@@ -0,0 +1 @@
{"ast":null,"code":"import toInteger from \"../toInteger/index.js\";\nimport toDate from \"../../toDate/index.js\";\nimport getUTCWeek from \"../getUTCWeek/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\"; // This function will be a part of public API when UTC function will be implemented.\n// See issue: https://github.com/date-fns/date-fns/issues/376\n\nexport default function setUTCWeek(dirtyDate, dirtyWeek, options) {\n requiredArgs(2, arguments);\n var date = toDate(dirtyDate);\n var week = toInteger(dirtyWeek);\n var diff = getUTCWeek(date, options) - week;\n date.setUTCDate(date.getUTCDate() - diff * 7);\n return date;\n}","map":{"version":3,"names":["toInteger","toDate","getUTCWeek","requiredArgs","setUTCWeek","dirtyDate","dirtyWeek","options","arguments","date","week","diff","setUTCDate","getUTCDate"],"sources":["C:/Users/eudes.inacio/GabineteDigital/gabinete-digital-fo/node_modules/date-fns/esm/_lib/setUTCWeek/index.js"],"sourcesContent":["import toInteger from \"../toInteger/index.js\";\nimport toDate from \"../../toDate/index.js\";\nimport getUTCWeek from \"../getUTCWeek/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\"; // This function will be a part of public API when UTC function will be implemented.\n// See issue: https://github.com/date-fns/date-fns/issues/376\n\nexport default function setUTCWeek(dirtyDate, dirtyWeek, options) {\n requiredArgs(2, arguments);\n var date = toDate(dirtyDate);\n var week = toInteger(dirtyWeek);\n var diff = getUTCWeek(date, options) - week;\n date.setUTCDate(date.getUTCDate() - diff * 7);\n return date;\n}"],"mappings":"AAAA,OAAOA,SAAS,MAAM,uBAAuB;AAC7C,OAAOC,MAAM,MAAM,uBAAuB;AAC1C,OAAOC,UAAU,MAAM,wBAAwB;AAC/C,OAAOC,YAAY,MAAM,0BAA0B,CAAC,CAAC;AACrD;;AAEA,eAAe,SAASC,UAAUA,CAACC,SAAS,EAAEC,SAAS,EAAEC,OAAO,EAAE;EAChEJ,YAAY,CAAC,CAAC,EAAEK,SAAS,CAAC;EAC1B,IAAIC,IAAI,GAAGR,MAAM,CAACI,SAAS,CAAC;EAC5B,IAAIK,IAAI,GAAGV,SAAS,CAACM,SAAS,CAAC;EAC/B,IAAIK,IAAI,GAAGT,UAAU,CAACO,IAAI,EAAEF,OAAO,CAAC,GAAGG,IAAI;EAC3CD,IAAI,CAACG,UAAU,CAACH,IAAI,CAACI,UAAU,CAAC,CAAC,GAAGF,IAAI,GAAG,CAAC,CAAC;EAC7C,OAAOF,IAAI;AACb"},"metadata":{},"sourceType":"module"}