a42933d9410212c82d4bcc0e3e1be8dd.json 3.08 KB
{"ast":null,"code":"/* eslint-disable no-console */\nvar warned = {};\nexport function warning(valid, message) {\n  // Support uglify\n  if (process.env.NODE_ENV !== 'production' && !valid && console !== undefined) {\n    console.error(\"Warning: \".concat(message));\n  }\n}\nexport function note(valid, message) {\n  // Support uglify\n  if (process.env.NODE_ENV !== 'production' && !valid && console !== undefined) {\n    console.warn(\"Note: \".concat(message));\n  }\n}\nexport function resetWarned() {\n  warned = {};\n}\nexport function call(method, valid, message) {\n  if (!valid && !warned[message]) {\n    method(false, message);\n    warned[message] = true;\n  }\n}\nexport function warningOnce(valid, message) {\n  call(warning, valid, message);\n}\nexport function noteOnce(valid, message) {\n  call(note, valid, message);\n}\nexport default warningOnce;\n/* eslint-enable */","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/node_modules/rc-util/es/warning.js"],"names":["warned","warning","valid","message","process","env","NODE_ENV","console","undefined","error","concat","note","warn","resetWarned","call","method","warningOnce","noteOnce"],"mappings":"AAAA;AACA,IAAIA,MAAM,GAAG,EAAb;AACA,OAAO,SAASC,OAAT,CAAiBC,KAAjB,EAAwBC,OAAxB,EAAiC;AACtC;AACA,MAAIC,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAAzB,IAAyC,CAACJ,KAA1C,IAAmDK,OAAO,KAAKC,SAAnE,EAA8E;AAC5ED,IAAAA,OAAO,CAACE,KAAR,CAAc,YAAYC,MAAZ,CAAmBP,OAAnB,CAAd;AACD;AACF;AACD,OAAO,SAASQ,IAAT,CAAcT,KAAd,EAAqBC,OAArB,EAA8B;AACnC;AACA,MAAIC,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAAzB,IAAyC,CAACJ,KAA1C,IAAmDK,OAAO,KAAKC,SAAnE,EAA8E;AAC5ED,IAAAA,OAAO,CAACK,IAAR,CAAa,SAASF,MAAT,CAAgBP,OAAhB,CAAb;AACD;AACF;AACD,OAAO,SAASU,WAAT,GAAuB;AAC5Bb,EAAAA,MAAM,GAAG,EAAT;AACD;AACD,OAAO,SAASc,IAAT,CAAcC,MAAd,EAAsBb,KAAtB,EAA6BC,OAA7B,EAAsC;AAC3C,MAAI,CAACD,KAAD,IAAU,CAACF,MAAM,CAACG,OAAD,CAArB,EAAgC;AAC9BY,IAAAA,MAAM,CAAC,KAAD,EAAQZ,OAAR,CAAN;AACAH,IAAAA,MAAM,CAACG,OAAD,CAAN,GAAkB,IAAlB;AACD;AACF;AACD,OAAO,SAASa,WAAT,CAAqBd,KAArB,EAA4BC,OAA5B,EAAqC;AAC1CW,EAAAA,IAAI,CAACb,OAAD,EAAUC,KAAV,EAAiBC,OAAjB,CAAJ;AACD;AACD,OAAO,SAASc,QAAT,CAAkBf,KAAlB,EAAyBC,OAAzB,EAAkC;AACvCW,EAAAA,IAAI,CAACH,IAAD,EAAOT,KAAP,EAAcC,OAAd,CAAJ;AACD;AACD,eAAea,WAAf;AACA","sourcesContent":["/* eslint-disable no-console */\nvar warned = {};\nexport function warning(valid, message) {\n  // Support uglify\n  if (process.env.NODE_ENV !== 'production' && !valid && console !== undefined) {\n    console.error(\"Warning: \".concat(message));\n  }\n}\nexport function note(valid, message) {\n  // Support uglify\n  if (process.env.NODE_ENV !== 'production' && !valid && console !== undefined) {\n    console.warn(\"Note: \".concat(message));\n  }\n}\nexport function resetWarned() {\n  warned = {};\n}\nexport function call(method, valid, message) {\n  if (!valid && !warned[message]) {\n    method(false, message);\n    warned[message] = true;\n  }\n}\nexport function warningOnce(valid, message) {\n  call(warning, valid, message);\n}\nexport function noteOnce(valid, message) {\n  call(note, valid, message);\n}\nexport default warningOnce;\n/* eslint-enable */"]},"metadata":{},"sourceType":"module"}