index.js 367 B

1234567891011121314151617
  1. 'use strict';
  2. var nodeVersion = require('./node-version');
  3. function defaultResolution(customResolution) {
  4. var resolution = parseInt(customResolution, 10);
  5. if (resolution) {
  6. return resolution;
  7. }
  8. return (nodeVersion.major === 0 && nodeVersion.minor <= 10) ? 1000 : 1;
  9. }
  10. defaultResolution.nodeVersion = nodeVersion;
  11. module.exports = defaultResolution;