package.cjs.initializers.logger.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":"logger.js","names":["_jsLogger","_interopRequireDefault","require","initializeLogger","Logger","useDefaults","process","env","RAILS_ENV","setLevel","OFF","window","logger"],"sources":["../../../src/initializers/logger.js"],"sourcesContent":["import Logger from \"js-logger\";\n\nexport default function initializeLogger() {\n /* eslint react-hooks/rules-of-hooks: \"off\" */\n Logger.useDefaults();\n if (process.env.RAILS_ENV === \"production\") {\n Logger.setLevel(Logger.OFF);\n }\n window.logger = Logger;\n}\n"],"mappings":";;;;;;;AAAA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEe,SAASC,gBAAgBA,CAAA,EAAG;EACzC;EACAC,oBAAM,CAACC,WAAW,CAAC,CAAC;EACpB,IAAIC,OAAO,CAACC,GAAG,CAACC,SAAS,KAAK,YAAY,EAAE;IAC1CJ,oBAAM,CAACK,QAAQ,CAACL,oBAAM,CAACM,GAAG,CAAC;EAC7B;EACAC,MAAM,CAACC,MAAM,GAAGR,oBAAM;AACxB","ignoreList":[]}