90 lines
3.2 KiB
JSON
90 lines
3.2 KiB
JSON
{
|
|
"_args": [
|
|
[
|
|
{
|
|
"raw": "react-timer-mixin@^0.13.2",
|
|
"scope": null,
|
|
"escapedName": "react-timer-mixin",
|
|
"name": "react-timer-mixin",
|
|
"rawSpec": "^0.13.2",
|
|
"spec": ">=0.13.2 <0.14.0",
|
|
"type": "range"
|
|
},
|
|
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/react-native"
|
|
]
|
|
],
|
|
"_from": "react-timer-mixin@>=0.13.2 <0.14.0",
|
|
"_id": "react-timer-mixin@0.13.3",
|
|
"_inCache": true,
|
|
"_location": "/react-timer-mixin",
|
|
"_nodeVersion": "0.10.35",
|
|
"_npmUser": {
|
|
"name": "spicyj",
|
|
"email": "ben@benalpert.com"
|
|
},
|
|
"_npmVersion": "2.2.0",
|
|
"_phantomChildren": {},
|
|
"_requested": {
|
|
"raw": "react-timer-mixin@^0.13.2",
|
|
"scope": null,
|
|
"escapedName": "react-timer-mixin",
|
|
"name": "react-timer-mixin",
|
|
"rawSpec": "^0.13.2",
|
|
"spec": ">=0.13.2 <0.14.0",
|
|
"type": "range"
|
|
},
|
|
"_requiredBy": [
|
|
"/react-native"
|
|
],
|
|
"_resolved": "https://registry.npmjs.org/react-timer-mixin/-/react-timer-mixin-0.13.3.tgz",
|
|
"_shasum": "0da8b9f807ec07dc3e854d082c737c65605b3d22",
|
|
"_shrinkwrap": null,
|
|
"_spec": "react-timer-mixin@^0.13.2",
|
|
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/react-native",
|
|
"bugs": {
|
|
"url": "https://github.com/reactjs/react-timer-mixin/issues"
|
|
},
|
|
"dependencies": {},
|
|
"description": "TimerMixin provides timer functions for executing code in the future that are safely cleaned up when the component unmounts",
|
|
"devDependencies": {
|
|
"eslint": "0.9.2",
|
|
"jest-cli": "^0.2.1"
|
|
},
|
|
"directories": {},
|
|
"dist": {
|
|
"shasum": "0da8b9f807ec07dc3e854d082c737c65605b3d22",
|
|
"tarball": "https://registry.npmjs.org/react-timer-mixin/-/react-timer-mixin-0.13.3.tgz"
|
|
},
|
|
"gitHead": "e529e6ba7a66c59127eccaed6cd946fa0be4eb98",
|
|
"homepage": "https://github.com/reactjs/react-timer-mixin#readme",
|
|
"keywords": [
|
|
"react",
|
|
"timer",
|
|
"mixin"
|
|
],
|
|
"license": "BSD-3-Clause",
|
|
"main": "TimerMixin.js",
|
|
"maintainers": [
|
|
{
|
|
"name": "spicyj",
|
|
"email": "ben@benalpert.com"
|
|
},
|
|
{
|
|
"name": "tadeuzagallo",
|
|
"email": "tadeuzagallo@gmail.com"
|
|
}
|
|
],
|
|
"name": "react-timer-mixin",
|
|
"optionalDependencies": {},
|
|
"readme": "# react-timer-mixin\n\nUsing bare setTimeout, setInterval, setImmediate and requestAnimationFrame calls\nis very dangerous because if you forget to cancel the request before the\ncomponent is unmounted, you risk the callback throwing an exception.\n\nIf you include TimerMixin, then you can replace your calls to\n`setTimeout(fn, 500)` with `this.setTimeout(fn, 500)` (just prepend `this.`) and\neverything will be properly cleaned up for you.\n\n## Installation\n\nInstall the module directly from npm:\n\n```\nnpm install react-timer-mixin\n```\n\n## Example\n\n```js\nvar React = require('react');\nvar TimerMixin = require('react-timer-mixin');\n\nvar Component = React.createClass({\n mixins: [TimerMixin],\n componentDidMount() {\n this.setTimeout(\n () => { console.log('I do not leak!'); },\n 500\n );\n }\n});\n```\n\n",
|
|
"readmeFilename": "README.md",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/reactjs/react-timer-mixin.git"
|
|
},
|
|
"scripts": {
|
|
"test": "jest"
|
|
},
|
|
"version": "0.13.3"
|
|
}
|