UNPKG

react-key-handler

Version:

React component to handle keyboard events

180 lines (179 loc) 7.83 kB
{ "id": "NKHc", "dependencies": [ { "name": "/Users/adc/Developer/ayrton/react-key-handler/node_modules/react-dom/package.json", "includedInParent": true, "mtime": 1528906832000 }, { "name": "/Users/adc/Developer/ayrton/react-key-handler/package.json", "includedInParent": true, "mtime": 1533459603383 }, { "name": "/Users/adc/Developer/ayrton/react-key-handler/.babelrc", "includedInParent": true, "mtime": 1533458194366 }, { "name": "./cjs/react-dom.production.min.js", "loc": { "line": 35, "column": 27 }, "parent": "/Users/adc/Developer/ayrton/react-key-handler/node_modules/react-dom/index.js", "resolved": "/Users/adc/Developer/ayrton/react-key-handler/node_modules/react-dom/cjs/react-dom.production.min.js" } ], "generated": { "js": "\"use strict\";function _(){if(\"undefined\"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&\"function\"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_)}catch(_){console.error(_)}}}_(),module.exports=require(\"./cjs/react-dom.production.min.js\");", "map": { "mappings": [ { "source": "../node_modules/react-dom/index.js", "original": { "line": 1, "column": 0 }, "generated": { "line": 1, "column": 0 } }, { "source": "../node_modules/react-dom/index.js", "original": { "line": 3, "column": 0 }, "generated": { "line": 1, "column": 13 } }, { "source": "../node_modules/react-dom/index.js", "name": "checkDCE", "original": { "line": 3, "column": 9 }, "generated": { "line": 1, "column": 22 } }, { "source": "../node_modules/react-dom/index.js", "original": { "line": 6, "column": 4 }, "generated": { "line": 1, "column": 26 } }, { "source": "../node_modules/react-dom/index.js", "original": { "line": 6, "column": 46 }, "generated": { "line": 1, "column": 29 } }, { "source": "../node_modules/react-dom/index.js", "name": "__REACT_DEVTOOLS_GLOBAL_HOOK__", "original": { "line": 6, "column": 11 }, "generated": { "line": 1, "column": 49 } }, { "source": "../node_modules/react-dom/index.js", "original": { "line": 7, "column": 55 }, "generated": { "line": 1, "column": 81 } }, { "source": "../node_modules/react-dom/index.js", "name": "__REACT_DEVTOOLS_GLOBAL_HOOK__", "original": { "line": 7, "column": 11 }, "generated": { "line": 1, "column": 100 } }, { "source": "../node_modules/react-dom/index.js", "name": "checkDCE", "original": { "line": 7, "column": 42 }, "generated": { "line": 1, "column": 131 } }, { "source": "../node_modules/react-dom/index.js", "original": { "line": 6, "column": 4 }, "generated": { "line": 1, "column": 140 } }, { "source": "../node_modules/react-dom/index.js", "original": { "line": 11, "column": 6 }, "generated": { "line": 1, "column": 141 } }, { "source": "../node_modules/react-dom/index.js", "original": { "line": 21, "column": 6 }, "generated": { "line": 1, "column": 143 } }, { "source": "../node_modules/react-dom/index.js", "name": "checkDCE", "original": { "line": 23, "column": 35 }, "generated": { "line": 1, "column": 147 } }, { "source": "../node_modules/react-dom/index.js", "name": "checkDCE", "original": { "line": 23, "column": 35 }, "generated": { "line": 1, "column": 178 } }, { "source": "../node_modules/react-dom/index.js", "name": "checkDCE", "original": { "line": 23, "column": 44 }, "generated": { "line": 1, "column": 187 } }, { "source": "../node_modules/react-dom/index.js", "original": { "line": 24, "column": 4 }, "generated": { "line": 1, "column": 190 } }, { "source": "../node_modules/react-dom/index.js", "name": "err", "original": { "line": 24, "column": 11 }, "generated": { "line": 1, "column": 196 } }, { "source": "../node_modules/react-dom/index.js", "name": "error", "original": { "line": 27, "column": 12 }, "generated": { "line": 1, "column": 199 } }, { "source": "../node_modules/react-dom/index.js", "name": "error", "original": { "line": 27, "column": 12 }, "generated": { "line": 1, "column": 207 } }, { "source": "../node_modules/react-dom/index.js", "name": "err", "original": { "line": 27, "column": 18 }, "generated": { "line": 1, "column": 213 } }, { "source": "../node_modules/react-dom/index.js", "name": "checkDCE", "original": { "line": 34, "column": 2 }, "generated": { "line": 1, "column": 218 } }, { "source": "../node_modules/react-dom/index.js", "name": "exports", "original": { "line": 35, "column": 9 }, "generated": { "line": 1, "column": 222 } }, { "source": "../node_modules/react-dom/index.js", "name": "exports", "original": { "line": 35, "column": 9 }, "generated": { "line": 1, "column": 229 } }, { "source": "../node_modules/react-dom/index.js", "name": "require", "original": { "line": 35, "column": 19 }, "generated": { "line": 1, "column": 237 } }, { "source": "../node_modules/react-dom/index.js", "original": { "line": 35, "column": 27 }, "generated": { "line": 1, "column": 245 } } ], "sources": { "../node_modules/react-dom/index.js": "'use strict';\n\nfunction checkDCE() {\n /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\n if (\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'\n ) {\n return;\n }\n if (process.env.NODE_ENV !== 'production') {\n // This branch is unreachable because this function is only called\n // in production, but the condition is true only in development.\n // Therefore if the branch is still here, dead code elimination wasn't\n // properly applied.\n // Don't change the message. React DevTools relies on it. Also make sure\n // this message doesn't occur elsewhere in this function, or it will cause\n // a false positive.\n throw new Error('^_^');\n }\n try {\n // Verify that the code above has been dead code eliminated (DCE'd).\n __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);\n } catch (err) {\n // DevTools shouldn't crash React, no matter what.\n // We should still report in case we break this code.\n console.error(err);\n }\n}\n\nif (process.env.NODE_ENV === 'production') {\n // DCE check should happen before ReactDOM bundle executes so that\n // DevTools can report bad minification during injection.\n checkDCE();\n module.exports = require('./cjs/react-dom.production.min.js');\n} else {\n module.exports = require('./cjs/react-dom.development.js');\n}\n" }, "lineCount": null } }, "hash": "8f195641e76496982b3e6bd367ae216d", "cacheData": { "env": { "NODE_ENV": "production" } } }