'use strict';

var toUint   = require('es5-ext/number/to-uint')
  , maxValue = require('./max-value');

module.exports = function (value) {
	value = toUint(value);
	if (value > maxValue) {
		throw new TypeError(value + " is to large for a timeout");
	}
	return value;
};

'use strict';

var toPosInt = require('es5-ext/number/to-pos-integer')
  , maxValue = require('./max-value');

module.exports = function (value) {
	value = toPosInt(value);
	if (value > maxValue) {
		throw new TypeError(value + " is to large for a timeout");
	}
	return value;
};

Update up to changes in es5-ext
Update up to changes in es5-ext
