vfile-sort
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -18,5 +18,8 @@ 'use strict' | ||
function comparator(a, b) { | ||
var left = severities[a.fatal] | ||
var right = severities[b.fatal] | ||
return check(a, b, 'line') || check(a, b, 'column') || right - left || -1 | ||
return ( | ||
check(a, b, 'line') || | ||
check(a, b, 'column') || | ||
severities[b.fatal] - severities[a.fatal] || | ||
0 | ||
) | ||
} | ||
@@ -23,0 +26,0 @@ |
{ | ||
"name": "vfile-sort", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Sort vfile messages by line/column", | ||
@@ -23,15 +23,15 @@ "license": "MIT", | ||
"browserify": "^16.0.0", | ||
"esmangle": "^1.0.1", | ||
"nyc": "^11.0.0", | ||
"nyc": "^13.0.0", | ||
"prettier": "^1.12.1", | ||
"remark-cli": "^5.0.0", | ||
"remark-cli": "^6.0.0", | ||
"remark-preset-wooorm": "^4.0.0", | ||
"tape": "^4.0.0", | ||
"vfile": "^2.0.0", | ||
"xo": "^0.20.0" | ||
"tinyify": "^2.4.3", | ||
"vfile": "^3.0.0", | ||
"xo": "^0.23.0" | ||
}, | ||
"scripts": { | ||
"format": "remark . -qfo && prettier --write '**/*.js' && xo --fix", | ||
"build-bundle": "browserify index.js --bare -s vfileSort > vfile-sort.js", | ||
"build-mangle": "esmangle vfile-sort.js > vfile-sort.min.js", | ||
"build-bundle": "browserify . -s vfileSort > vfile-sort.js", | ||
"build-mangle": "browserify . -s vfileSort -p tinyify > vfile-sort.min.js", | ||
"build": "npm run build-bundle && npm run build-mangle", | ||
@@ -38,0 +38,0 @@ "test-api": "node test", |
@@ -59,3 +59,3 @@ # vfile-sort [![Build Status][travis-badge]][travis] [![Coverage Status][codecov-badge]][codecov] | ||
[license]: LICENSE | ||
[license]: license | ||
@@ -62,0 +62,0 @@ [author]: http://wooorm.com |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23
4688