@e1011/es-kit 1.1.34 → 1.1.36

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.
@@ -1,2 +1,2 @@
1
- import t from"dayjs";const e=()=>(new Date).toString(),n="MM-DD-YYYY HH-mm",o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return t(e).format("YYYY-MM-DD HH:mm:ss")};export{n as DATE_FORMAT,o as formatDateToTimestamp,e as getDate};
1
+ import t from"dayjs";const Y=()=>(new Date).toString(),o=function(){let Y=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return t(Y).format("YYYY-MM-DD HH:mm:ss")},m="MM-DD-YYYY",r="MM-DD-YYYY HH-mm-ss",e=Y=>t(Y).format(m),n=Y=>t(Y).format(r);export{m as DATE_FORMAT,r as DATE_TIME_FORMAT,e as formatDate,n as formatDateTime,o as formatDateToTimestamp,Y as getDate};
2
2
  //# sourceMappingURL=date.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"date.js","sources":["../../../../../../../src/core/utils/helpers/date.ts"],"sourcesContent":["import dayjs from 'dayjs'\n\nexport const getDate = (): string => new Date().toString()\nexport const DATE_FORMAT = 'MM-DD-YYYY HH-mm'\n\nexport const formatDateToTimestamp = (date = new Date()): string => dayjs(date).format('YYYY-MM-DD HH:mm:ss')\n"],"names":["getDate","Date","toString","DATE_FORMAT","formatDateToTimestamp","date","arguments","length","undefined","dayjs","format"],"mappings":"qBAEaA,MAAAA,EAAUA,KAAc,IAAIC,MAAOC,WACnCC,EAAc,mBAEdC,EAAwB,WAAA,IAACC,EAAIC,UAAAC,OAAAD,QAAAE,IAAAF,UAAAE,GAAAF,UAAA,GAAG,IAAIL,KAAM,OAAaQ,EAAMJ,GAAMK,OAAO,sBAAsB"}
1
+ {"version":3,"file":"date.js","sources":["../../../../../../../src/core/utils/helpers/date.ts"],"sourcesContent":["import dayjs from 'dayjs'\n\nexport const getDate = (): string => new Date().toString()\n\n\nexport const formatDateToTimestamp = (date = new Date()): string => dayjs(date).format('YYYY-MM-DD HH:mm:ss')\n\nexport const DATE_FORMAT = 'MM-DD-YYYY'\nexport const DATE_TIME_FORMAT = 'MM-DD-YYYY HH-mm-ss'\n\nexport const formatDate = (date: string | Date): string => dayjs(date).format(DATE_FORMAT)\nexport const formatDateTime = (date: string | Date): string => dayjs(date).format(DATE_TIME_FORMAT)\n\n"],"names":["getDate","Date","toString","formatDateToTimestamp","date","arguments","length","undefined","dayjs","format","DATE_FORMAT","DATE_TIME_FORMAT","formatDate","formatDateTime"],"mappings":"qBAEaA,MAAAA,EAAUA,KAAc,IAAIC,MAAOC,WAGnCC,EAAwB,WAAA,IAACC,EAAIC,UAAAC,OAAAD,QAAAE,IAAAF,UAAAE,GAAAF,UAAA,GAAG,IAAIJ,KAAM,OAAaO,EAAMJ,GAAMK,OAAO,sBAAsB,EAEhGC,EAAc,aACdC,EAAmB,sBAEnBC,EAAcR,GAAgCI,EAAMJ,GAAMK,OAAOC,GACjEG,EAAkBT,GAAgCI,EAAMJ,GAAMK,OAAOE"}
@@ -1,2 +1,2 @@
1
- export{keyExtractor,keyExtractorFunction}from"./keyExtractor.js";export{dateRangeFormat,getDateTime,getTimeFromNow,getTimeFromNowOriginal,getTimeTo}from"./date.js";export{peregrineMQInstance}from"./appState/peregrineMQ/index.js";export{isBirthNumberValid}from"./helpers/birthnumber.validator.js";export{getMatch,isValidFormat,isValidModulo11,parse,regex}from"./helpers/birthnumberCZSKvalidator.js";export{parseCSVdata,validateCSVFile,validateCSVlines,validateJSONFile,validateLineCellTrimmed,validateLineNumColumns,validateSDFFile}from"./helpers/fileValidator.js";export{DATE_FORMAT,formatDateToTimestamp,getDate}from"./helpers/date.js";export{getDeviceId}from"./helpers/deviceInfo.js";export{emailMatch,emailMatcher,regexBuilder}from"./helpers/emailMatcher.js";export{cleanCsvLines,formatFilePath}from"./helpers/file.js";export{arrayToObjectTree,chunkArray,duplicatesInArray,formatJsonString,formatObj,formatObj2}from"./helpers/objectOperations.js";export{AsyncFunctionTemplate,debounce,delay,isFunctionAsync,memoize,memoizeComplex,memoizer,nestedTernary}from"./helpers/other.js";export{escapeRegExp,fileNameExt,findStringInText,normalizeString,removeWhitespaces,sanitizeId,sanitizePathId,toLowerCase,toUpperCase,truncateText}from"./helpers/textValueOperations.js";export{Operation,decrementValue,incerementValue,numberDefined,numberOperation,restrictNumberInLimits,setValue}from"./helpers/valueOperations.js";export{cancelableSetInterval,cancelableSetTimeout}from"./helpers/cancelableDelayedFunction.js";export{anchorClick,classNames,generateId,mapSerReplacer,noop,parseProps}from"./helpers/ui.js";export{composeId,defaultSanitizeConfig,sanitizeHtml}from"./helpers/text.js";export{ced,createResolveAttribute,customElementDefine,resolveAttributes}from"./webComponents/webComponent.utils.js";export{createStore}from"./appState/store/store.vanillajs.js";export{createDataStore}from"./appState/store/store.vanillajs.templates.js";export{useStore,useStoreApi}from"./appState/store/useStore.react.js";export{PeregrineMQ,PeregrineMQClearError}from"./appState/peregrineMQ/peregrineMQ.js";export{TinyStateMachine,TinyStateMachineEvent,TinyStateMachineEventType,TinyStateMachineState,createStates,stateIterator}from"./appState/stateMachine/tiny-state-machine.base.js";
1
+ export{keyExtractor,keyExtractorFunction}from"./keyExtractor.js";export{dateRangeFormat,getDateTime,getTimeFromNow,getTimeFromNowOriginal,getTimeTo}from"./date.js";export{peregrineMQInstance}from"./appState/peregrineMQ/index.js";export{isBirthNumberValid}from"./helpers/birthnumber.validator.js";export{getMatch,isValidFormat,isValidModulo11,parse,regex}from"./helpers/birthnumberCZSKvalidator.js";export{parseCSVdata,validateCSVFile,validateCSVlines,validateJSONFile,validateLineCellTrimmed,validateLineNumColumns,validateSDFFile}from"./helpers/fileValidator.js";export{DATE_FORMAT,DATE_TIME_FORMAT,formatDate,formatDateTime,formatDateToTimestamp,getDate}from"./helpers/date.js";export{getDeviceId}from"./helpers/deviceInfo.js";export{emailMatch,emailMatcher,regexBuilder}from"./helpers/emailMatcher.js";export{cleanCsvLines,formatFilePath}from"./helpers/file.js";export{arrayToObjectTree,chunkArray,duplicatesInArray,formatJsonString,formatObj,formatObj2}from"./helpers/objectOperations.js";export{AsyncFunctionTemplate,debounce,delay,isFunctionAsync,memoize,memoizeComplex,memoizer,nestedTernary}from"./helpers/other.js";export{escapeRegExp,fileNameExt,findStringInText,normalizeString,removeWhitespaces,sanitizeId,sanitizePathId,toLowerCase,toUpperCase,truncateText}from"./helpers/textValueOperations.js";export{Operation,decrementValue,incerementValue,numberDefined,numberOperation,restrictNumberInLimits,setValue}from"./helpers/valueOperations.js";export{cancelableSetInterval,cancelableSetTimeout}from"./helpers/cancelableDelayedFunction.js";export{anchorClick,classNames,generateId,mapSerReplacer,noop,parseProps}from"./helpers/ui.js";export{composeId,defaultSanitizeConfig,sanitizeHtml}from"./helpers/text.js";export{ced,createResolveAttribute,customElementDefine,resolveAttributes}from"./webComponents/webComponent.utils.js";export{createStore}from"./appState/store/store.vanillajs.js";export{createDataStore}from"./appState/store/store.vanillajs.templates.js";export{useStore,useStoreApi}from"./appState/store/useStore.react.js";export{PeregrineMQ,PeregrineMQClearError}from"./appState/peregrineMQ/peregrineMQ.js";export{TinyStateMachine,TinyStateMachineEvent,TinyStateMachineEventType,TinyStateMachineState,createStates,stateIterator}from"./appState/stateMachine/tiny-state-machine.base.js";
2
2
  //# sourceMappingURL=index.js.map