Socket
Socket
Sign inDemoInstall

vfile-sort

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vfile-sort - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

license

9

index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc