Sha256: 74845f8a9447e67accc92fc7c87aeed43b6acb4e3a708289d8659332b8fc3926
Contents?: true
Size: 288 Bytes
Versions: 14
Compression:
Stored size: 288 Bytes
Contents
'use strict'; var toPosInt = require('es5-ext/number/to-pos-integer') , maxTimeout = require('./max-timeout'); module.exports = function (value) { value = toPosInt(value); if (value > maxTimeout) throw new TypeError(value + " exceeds maximum possible timeout"); return value; };
Version data entries
14 entries across 7 versions & 1 rubygems