New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@textlint/fixer-formatter

Package Overview
Dependencies
Maintainers
3
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@textlint/fixer-formatter - npm Package Compare versions

Comparing version 3.1.11 to 3.1.12

12

CHANGELOG.md

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

<a name="3.1.12"></a>
## [3.1.12](https://github.com/textlint/textlint/compare/@textlint/fixer-formatter@3.1.11...@textlint/fixer-formatter@3.1.12) (2020-01-08)
### Tests
* **fixer-formatter:** use strip-ansi for --no-color ([ddc53b2](https://github.com/textlint/textlint/commit/ddc53b2))
<a name="3.1.11"></a>

@@ -8,0 +20,0 @@ ## [3.1.11](https://github.com/textlint/textlint/compare/@textlint/fixer-formatter@3.1.9...@textlint/fixer-formatter@3.1.11) (2020-01-07)

2

lib/fixer-formatter/src/formatters/diff.d.ts
import { TextlintFixResult } from "@textlint/types";
export default function (results: TextlintFixResult[], options: any): string;
export default function (results: TextlintFixResult[], options: any): any;

@@ -7,2 +7,3 @@ "use strict";

var chalk = require("chalk");
var stripAnsi = require("strip-ansi");
/**

@@ -37,3 +38,3 @@ * Given a word and a count, append an s if count is not one.

// default: true
chalk.enabled = options.color !== undefined ? options.color : true;
var useColor = options.color !== undefined ? options.color : true;
var output = "\n";

@@ -124,5 +125,9 @@ var totalFixed = 0;

}
return totalFixed > 0 ? output : "";
var finalOutput = totalFixed > 0 ? output : "";
if (!useColor) {
return stripAnsi(finalOutput);
}
return finalOutput;
}
exports.default = default_1;
//# sourceMappingURL=diff.js.map
import { TextlintFixResult } from "@textlint/types";
export default function (results: TextlintFixResult[], options: any): string;
export default function (results: TextlintFixResult[], options: any): any;

@@ -6,2 +6,3 @@ "use strict";

var widthOfString = require("string-width");
var stripAnsi = require("strip-ansi");
/**

@@ -18,3 +19,3 @@ * Given a word and a count, append an s if count is not one.

// default: true
chalk.enabled = options.color !== undefined ? options.color : true;
var useColor = options.color !== undefined ? options.color : true;
var output = "\n";

@@ -84,5 +85,9 @@ var totalFixed = 0;

}
return totalFixed > 0 ? output : "";
var finalOutput = totalFixed > 0 ? output : "";
if (!useColor) {
return stripAnsi(finalOutput);
}
return finalOutput;
}
exports.default = default_1;
//# sourceMappingURL=stylish.js.map
{
"name": "@textlint/fixer-formatter",
"version": "3.1.11",
"version": "3.1.12",
"description": "textlint output formatter for fixer",

@@ -44,2 +44,3 @@ "keywords": [

"string-width": "^1.0.1",
"strip-ansi": "^6.0.0",
"text-table": "^0.2.0",

@@ -61,3 +62,3 @@ "try-resolve": "^1.0.1"

},
"gitHead": "8f834c0d3b9049026e7085f50c3cbec0ca4d314d"
"gitHead": "c64fd5ba6f4659f5721d12436adacb55f603ae28"
}
"use strict";
import { TextlintFixResult } from "@textlint/types";
const fs = require("fs");

@@ -6,3 +7,3 @@ const isFile = require("is-file");

const chalk = require("chalk");
import { TextlintFixResult } from "@textlint/types";
const stripAnsi = require("strip-ansi");
/**

@@ -24,2 +25,3 @@ * Given a word and a count, append an s if count is not one.

}
function addMarkEachLine(mark: string, text: any) {

@@ -40,3 +42,3 @@ if (text.length === 0) {

// default: true
chalk.enabled = options.color !== undefined ? options.color : true;
const useColor = options.color !== undefined ? options.color : true;
let output = "\n";

@@ -135,3 +137,7 @@ let totalFixed = 0;

return totalFixed > 0 ? output : "";
const finalOutput = totalFixed > 0 ? output : "";
if (!useColor) {
return stripAnsi(finalOutput);
}
return finalOutput;
}
"use strict";
import { TextlintFixResult } from "@textlint/types";
const chalk = require("chalk");
const table = require("text-table");
const widthOfString = require("string-width");
import { TextlintFixResult } from "@textlint/types";
const stripAnsi = require("strip-ansi");

@@ -19,3 +21,3 @@ /**

// default: true
chalk.enabled = options.color !== undefined ? options.color : true;
const useColor = options.color !== undefined ? options.color : true;
let output = "\n";

@@ -101,3 +103,7 @@ let totalFixed = 0;

return totalFixed > 0 ? output : "";
const finalOutput = totalFixed > 0 ? output : "";
if (!useColor) {
return stripAnsi(finalOutput);
}
return finalOutput;
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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