You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.js 367B

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;