Socket
Socket
Sign inDemoInstall

pedantic

Package Overview
Dependencies
Maintainers
4
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pedantic - npm Package Compare versions

Comparing version 4.0.1 to 5.0.0

19

CHANGELOG.md

@@ -6,2 +6,21 @@ # Change Log

# [5.0.0](https://github.com/4Catalyzer/cli/compare/pedantic@4.0.1...pedantic@5.0.0) (2020-03-22)
### Bug Fixes
* Clean up dependencies ([2479dd7](https://github.com/4Catalyzer/cli/commit/2479dd743fbff67cbdb6a79f70dd3bdd00518003))
* feat! Use Prettier v2.x ([5baf549](https://github.com/4Catalyzer/cli/commit/5baf54987a9ca10d0ce68a5ef204f0f139760b93))
### BREAKING CHANGES
* Prettier v2.x changes formatting
## [4.0.1](https://github.com/4Catalyzer/cli/compare/pedantic@4.0.0...pedantic@4.0.1) (2020-03-12)

@@ -8,0 +27,0 @@

4

format.js

@@ -7,3 +7,3 @@ const format = require('./lib');

exports.builder = _ =>
exports.builder = (_) =>
_.option('write', {

@@ -26,3 +26,3 @@ type: 'boolean',

exports.handler = async argv => {
exports.handler = async (argv) => {
const { _, patterns, write, withNodeModules, ...options } = argv;

@@ -29,0 +29,0 @@

@@ -58,3 +58,3 @@ const { promises: fs } = require('fs');

await Promise.all(
filePaths.map(async filePath => {
filePaths.map(async (filePath) => {
let content;

@@ -136,3 +136,3 @@ let code;

output += `${table(
needsFormatting.map(filePath => [
needsFormatting.map((filePath) => [
'',

@@ -143,3 +143,3 @@ path.relative(cwd, filePath).trim(),

align: ['', 'l'],
stringLength: str => stripAnsi(str).length,
stringLength: (str) => stripAnsi(str).length,
},

@@ -146,0 +146,0 @@ )}

@@ -7,3 +7,3 @@ const format = require('./lib');

exports.builder = _ =>
exports.builder = (_) =>
_.option('fix', {

@@ -31,3 +31,3 @@ type: 'boolean',

exports.handler = async argv => {
exports.handler = async (argv) => {
const { _, patterns, fix, withWarnings, withNodeModules, ...options } = argv;

@@ -34,0 +34,0 @@

@@ -37,3 +37,3 @@ const { CLIEngine } = require('eslint');

result.WarningCount -= result.fixableWarningCount;
result.messages = result.messages.filter(msg => msg.fix);
result.messages = result.messages.filter((msg) => msg.fix);
}

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

{
"name": "pedantic",
"version": "4.0.1",
"version": "5.0.0",
"main": "lib.js",

@@ -25,2 +25,8 @@ "repository": {

},
"dependencies": {
"@4c/cli-core": "^2.1.3",
"eslint": "^6.5.1",
"prettier": "^2.0.0",
"yargs": "^15.0.1"
},
"devDependencies": {

@@ -30,9 +36,3 @@ "@4c/jest-preset": "^1.5.0",

},
"dependencies": {
"@4c/cli-core": "^2.1.2",
"chalk": "^3.0.0",
"eslint": "^6.5.1",
"prettier": "^1.19.1",
"yargs": "^15.0.1"
}
"gitHead": "1e77b8bf73e20913b5d8a7ef1f63bebe8d5309fe"
}
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