default-resolution
Advanced tools
Comparing version 2.0.0 to 3.0.0
'use strict'; | ||
var nodeVersion = require('./node-version'); | ||
var nodeVersion = require('parse-node-version')(process.version); | ||
@@ -12,7 +12,5 @@ function defaultResolution(customResolution) { | ||
return (nodeVersion.major === 0 && nodeVersion.minor <= 10) ? 1000 : 1; | ||
return nodeVersion.major === 0 && nodeVersion.minor <= 10 ? 1000 : 1; | ||
} | ||
defaultResolution.nodeVersion = nodeVersion; | ||
module.exports = defaultResolution; |
{ | ||
"name": "default-resolution", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"description": "Get the default resolution time based on the current node version, optionally overridable", | ||
@@ -13,3 +13,3 @@ "author": "Gulp Team <team@gulpjs.com> (http://gulpjs.com/)", | ||
"engines": { | ||
"node": ">= 0.10" | ||
"node": ">= 10.13.0" | ||
}, | ||
@@ -19,23 +19,30 @@ "main": "index.js", | ||
"LICENSE", | ||
"index.js", | ||
"node-version.js" | ||
"index.js" | ||
], | ||
"scripts": { | ||
"lint": "eslint . && jscs index.js node-version.js test/", | ||
"lint": "eslint .", | ||
"pretest": "npm run lint", | ||
"test": "mocha --async-only", | ||
"cover": "istanbul cover _mocha --report lcovonly", | ||
"coveralls": "npm run cover && istanbul-coveralls" | ||
"test": "nyc mocha --async-only" | ||
}, | ||
"dependencies": {}, | ||
"dependencies": { | ||
"parse-node-version": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^1.7.3", | ||
"eslint-config-gulp": "^2.0.0", | ||
"expect": "^1.19.0", | ||
"istanbul": "^0.4.3", | ||
"istanbul-coveralls": "^1.0.3", | ||
"jscs": "^2.4.0", | ||
"jscs-preset-gulp": "^1.0.0", | ||
"mocha": "^2.4.5" | ||
"eslint": "^7.32.0", | ||
"eslint-config-gulp": "^5.0.1", | ||
"eslint-plugin-node": "^11.1.0", | ||
"expect": "^27.4.2", | ||
"mocha": "^8.4.0", | ||
"nyc": "^15.1.0", | ||
"sinon": "^12.0.1" | ||
}, | ||
"nyc": { | ||
"reporter": [ | ||
"lcov", | ||
"text-summary" | ||
] | ||
}, | ||
"prettier": { | ||
"singleQuote": true | ||
}, | ||
"keywords": [ | ||
@@ -42,0 +49,0 @@ "resolution", |
<p align="center"> | ||
<a href="http://gulpjs.com"> | ||
<a href="https://gulpjs.com"> | ||
<img height="257" width="114" src="https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png"> | ||
@@ -9,3 +9,3 @@ </a> | ||
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url] | ||
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-url] | ||
@@ -43,3 +43,3 @@ Get the default resolution time based on the current node version, optionally overridable. | ||
| node version | resolution | | ||
|--------------|------------| | ||
| ------------ | ---------- | | ||
| 0.10 | 1s | | ||
@@ -54,20 +54,18 @@ | 0.11+ | 1ms | | ||
[dinoboff]: https://github.com/dinoboff | ||
[original]: https://github.com/gulpjs/undertaker/pull/17 | ||
[default-table]: #default-resolutions | ||
[downloads-image]: http://img.shields.io/npm/dm/default-resolution.svg | ||
<!-- prettier-ignore-start --> | ||
[downloads-image]: https://img.shields.io/npm/dm/default-resolution.svg?style=flat-square | ||
[npm-url]: https://www.npmjs.com/package/default-resolution | ||
[npm-image]: http://img.shields.io/npm/v/default-resolution.svg | ||
[npm-image]: https://img.shields.io/npm/v/default-resolution.svg?style=flat-square | ||
[travis-url]: https://travis-ci.org/gulpjs/default-resolution | ||
[travis-image]: http://img.shields.io/travis/gulpjs/default-resolution.svg?label=travis-ci | ||
[ci-url]: https://github.com/gulpjs/default-resolution/actions?query=workflow:dev | ||
[ci-image]: https://img.shields.io/github/workflow/status/gulpjs/default-resolution/dev?style=flat-square | ||
[appveyor-url]: https://ci.appveyor.com/project/gulpjs/default-resolution | ||
[appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/default-resolution.svg?label=appveyor | ||
[coveralls-url]: https://coveralls.io/r/gulpjs/default-resolution | ||
[coveralls-image]: http://img.shields.io/coveralls/gulpjs/default-resolution/master.svg | ||
[coveralls-image]: https://img.shields.io/coveralls/gulpjs/default-resolution/master.svg?style=flat-square | ||
<!-- prettier-ignore-end --> | ||
[gitter-url]: https://gitter.im/gulpjs/gulp | ||
[gitter-image]: https://badges.gitter.im/gulpjs/gulp.svg | ||
<!-- prettier-ignore-start --> | ||
[dinoboff]: https://github.com/dinoboff | ||
[original]: https://github.com/gulpjs/undertaker/pull/17 | ||
[default-table]: #default-resolutions | ||
<!-- prettier-ignore-end --> |
Sorry, the diff of this file is not supported yet
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
7
4751
1
4
10
69
1
+ Addedparse-node-version@^2.0.0
+ Addedparse-node-version@2.0.0(transitive)