Socket
Socket
Sign inDemoInstall

standard

Package Overview
Dependencies
166
Maintainers
1
Versions
183
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.4.2 to 2.4.3

17

index.js

@@ -33,2 +33,3 @@ var cp = require('child_process')

var ERROR_RE = /.*?:\d+:\d+/
var FILE_RE = /(.*?):/

@@ -164,2 +165,3 @@ var LINE_RE = /.*?:(\d+)/

console.error('Error: Code style check failed:')
var unexpectedOutput = []
var errMap = {}

@@ -170,3 +172,10 @@ errors

})
.filter(function (str) { // de-duplicate errors
.filter(function (str) {
// don't process unexpected/malformed output, just print it at the end
if (!ERROR_RE.test(str)) {
unexpectedOutput.push(str)
return false
}
// de-duplicate errors
if (errMap[str]) return false

@@ -194,2 +203,8 @@ errMap[str] = true

})
if (unexpectedOutput.length) console.error('\nUnexpected Linter Output:')
unexpectedOutput.forEach(function (str) {
console.error(str)
})
process.exit(1)

@@ -196,0 +211,0 @@ }

2

package.json
{
"name": "standard",
"description": "JavaScript Standard Style",
"version": "2.4.2",
"version": "2.4.3",
"author": {

@@ -6,0 +6,0 @@ "name": "Feross Aboukhadijeh",

@@ -23,2 +23,4 @@ #!/usr/bin/env node

'https://github.com/beatgammit/base64-js.git',
'https://github.com/brandonhorst/coverage-test.git',
'https://github.com/brandonhorst/empty.git',
'https://github.com/feross/bittorrent-dht.git',

@@ -35,5 +37,3 @@ 'https://github.com/feross/bittorrent-protocol.git',

'https://github.com/mafintosh/peerflix.git',
'https://github.com/mafintosh/what-line-is-this.git',
'https://github.com/brandonhorst/coverage-test.git',
'https://github.com/brandonhorst/empty.git'
'https://github.com/mafintosh/what-line-is-this.git'
]

@@ -40,0 +40,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc