Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

max-timeout

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

max-timeout - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

5

index.js

@@ -1,2 +0,3 @@

'use strict';
module.exports = 2147483647;
const maxTimeout = 2147483647;
export default maxTimeout;

68

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc