max-timeout
Advanced tools
Comparing version 1.0.0 to 2.0.0
@@ -1,2 +0,3 @@ | ||
'use strict'; | ||
module.exports = 2147483647; | ||
const maxTimeout = 2147483647; | ||
export default maxTimeout; |
{ | ||
"name": "max-timeout", | ||
"version": "1.0.0", | ||
"description": "The max amount of milliseconds you can pass to `setTimeout()`", | ||
"license": "MIT", | ||
"repository": "sindresorhus/max-timeout", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "sindresorhus.com" | ||
}, | ||
"engines": { | ||
"node": ">=0.10.0" | ||
}, | ||
"scripts": { | ||
"test": "xo && ava" | ||
}, | ||
"files": [ | ||
"index.js" | ||
], | ||
"keywords": [ | ||
"max", | ||
"maximum", | ||
"timeout", | ||
"settimeout", | ||
"delay", | ||
"overflow", | ||
"number", | ||
"constant" | ||
], | ||
"devDependencies": { | ||
"ava": "*", | ||
"xo": "*" | ||
} | ||
"name": "max-timeout", | ||
"version": "2.0.0", | ||
"description": "The max amount of milliseconds you can pass to `setTimeout()`", | ||
"license": "MIT", | ||
"repository": "sindresorhus/max-timeout", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "https://sindresorhus.com" | ||
}, | ||
"type": "module", | ||
"exports": "./index.js", | ||
"engines": { | ||
"node": ">=12" | ||
}, | ||
"scripts": { | ||
"test": "xo && ava" | ||
}, | ||
"files": [ | ||
"index.js" | ||
], | ||
"keywords": [ | ||
"max", | ||
"maximum", | ||
"timeout", | ||
"settimeout", | ||
"delay", | ||
"overflow", | ||
"number", | ||
"constant" | ||
], | ||
"devDependencies": { | ||
"ava": "^3.15.0", | ||
"xo": "^0.38.2" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# max-timeout [![Build Status](https://travis-ci.org/sindresorhus/max-timeout.svg?branch=master)](https://travis-ci.org/sindresorhus/max-timeout) | ||
# max-timeout | ||
@@ -7,14 +7,12 @@ > The max amount of milliseconds you can pass to `setTimeout()` | ||
## Install | ||
``` | ||
$ npm install --save max-timeout | ||
$ npm install max-timeout | ||
``` | ||
## Usage | ||
```js | ||
const maxTimeout = require('max-timeout'); | ||
import maxTimeout from 'max-timeout'; | ||
@@ -24,10 +22,4 @@ setTimeout(() => {}, maxTimeout); | ||
## Related | ||
- [delay](https://github.com/sindresorhus/delay) - Delay a promise a specified amount of time | ||
## License | ||
MIT © [Sindre Sorhus](http://sindresorhus.com) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Yes
2384
24