@textlint/fixer-formatter
Advanced tools
Comparing version 3.1.13 to 3.2.0
@@ -6,2 +6,24 @@ # Change Log | ||
<a name="3.2.0"></a> | ||
# [3.2.0](https://github.com/textlint/textlint/compare/@textlint/fixer-formatter@3.1.13...@textlint/fixer-formatter@3.2.0) (2020-07-24) | ||
### Chores | ||
* **deps:** update devDepencies ([#667](https://github.com/textlint/textlint/issues/667)) ([0503af6](https://github.com/textlint/textlint/commit/0503af6)) | ||
### Code Refactoring | ||
* **typescript:** Use TypeScript Project References ([#668](https://github.com/textlint/textlint/issues/668)) ([bbffd43](https://github.com/textlint/textlint/commit/bbffd43)) | ||
### Tests | ||
* migrate mocha.opts to .mocharc.json ([#682](https://github.com/textlint/textlint/issues/682)) ([332ae5e](https://github.com/textlint/textlint/commit/332ae5e)) | ||
<a name="3.1.13"></a> | ||
@@ -8,0 +30,0 @@ ## [3.1.13](https://github.com/textlint/textlint/compare/@textlint/fixer-formatter@3.1.12...@textlint/fixer-formatter@3.1.13) (2020-02-07) |
{ | ||
"name": "@textlint/fixer-formatter", | ||
"version": "3.1.13", | ||
"version": "3.2.0", | ||
"description": "textlint output formatter for fixer", | ||
@@ -18,17 +18,20 @@ "keywords": [ | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/textlint/textlint.git" | ||
}, | ||
"license": "MIT", | ||
"author": "azu", | ||
"main": "lib/index.js", | ||
"module": "./module/index.js", | ||
"types": "lib/index.d.ts", | ||
"files": [ | ||
"lib/fixer-formatter", | ||
"bin/", | ||
"lib/", | ||
"modules/", | ||
"src/" | ||
], | ||
"main": "lib/fixer-formatter/src/index.js", | ||
"types": "lib/fixer-formatter/src/index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/textlint/textlint.git" | ||
}, | ||
"scripts": { | ||
"build": "cross-env NODE_ENV=production tsc -p .", | ||
"clean": "rimraf lib/", | ||
"build": "tsc -b && tsc -b tsconfig.module.json", | ||
"clean": "rimraf lib/ tsconfig.tsbuildinfo", | ||
"prepublish": "npm run build", | ||
@@ -38,4 +41,4 @@ "test": "mocha \"test/**/*.{js,ts}\"" | ||
"dependencies": { | ||
"@textlint/module-interop": "^1.0.2", | ||
"@textlint/types": "^1.3.1", | ||
"@textlint/module-interop": "^1.1.0", | ||
"@textlint/types": "^1.4.0", | ||
"chalk": "^1.1.3", | ||
@@ -51,10 +54,10 @@ "debug": "^4.1.1", | ||
"devDependencies": { | ||
"@types/mocha": "^5.2.6", | ||
"@types/node": "^12.7.12", | ||
"cross-env": "^6.0.3", | ||
"mocha": "^6.2.1", | ||
"rimraf": "^3.0.0", | ||
"ts-node": "^8.4.1", | ||
"@types/mocha": "^7.0.2", | ||
"@types/node": "^13.11.1", | ||
"cross-env": "^7.0.2", | ||
"mocha": "^7.1.1", | ||
"rimraf": "^3.0.2", | ||
"ts-node": "^8.8.2", | ||
"ts-node-test-register": "^8.0.1", | ||
"typescript": "~3.6.4" | ||
"typescript": "~3.8.3" | ||
}, | ||
@@ -64,3 +67,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "07ab1c204508da3f9b26f1299bcbdb48a52a58a9" | ||
"gitHead": "6b0b383ca2f562dfea1e4261daf9da05b7ddc29e" | ||
} |
@@ -16,7 +16,7 @@ // LICENSE : MIT | ||
results.forEach(result => { | ||
results.forEach((result) => { | ||
const messages = result.applyingMessages; | ||
total += messages.length; | ||
messages.forEach(message => { | ||
messages.forEach((message) => { | ||
output += "Fixed✔ "; | ||
@@ -23,0 +23,0 @@ output += `${result.filePath}: `; |
@@ -38,3 +38,3 @@ "use strict"; | ||
export default function(results: TextlintFixResult[], options: any) { | ||
export default function (results: TextlintFixResult[], options: any) { | ||
// default: true | ||
@@ -48,3 +48,3 @@ const useColor = options.color !== undefined ? options.color : true; | ||
results.forEach(function(result) { | ||
results.forEach(function (result) { | ||
const filePath = result.filePath; | ||
@@ -67,3 +67,3 @@ const messages = result.applyingMessages; | ||
diff.forEach(function(part: any, index: number) { | ||
diff.forEach(function (part: any, index: number) { | ||
const prevLine = diff[index - 1]; | ||
@@ -70,0 +70,0 @@ const nextLine = diff[index + 1]; |
// LICENSE : MIT | ||
"use strict"; | ||
import { TextlintFixResult } from "@textlint/types"; | ||
export default function(results: TextlintFixResult[]) { | ||
export default function (results: TextlintFixResult[]) { | ||
return JSON.stringify(results); | ||
} |
@@ -19,3 +19,3 @@ "use strict"; | ||
export default function(results: TextlintFixResult[], options: any) { | ||
export default function (results: TextlintFixResult[], options: any) { | ||
// default: true | ||
@@ -29,3 +29,3 @@ const useColor = options.color !== undefined ? options.color : true; | ||
results.forEach(function(result) { | ||
results.forEach(function (result) { | ||
if (!result.applyingMessages || !result.remainingMessages) { | ||
@@ -44,3 +44,3 @@ return; | ||
output += `${table( | ||
messages.map(function(message) { | ||
messages.map(function (message) { | ||
// fixable | ||
@@ -65,3 +65,3 @@ totalFixed++; | ||
null, | ||
lines.map(function(line: string) { | ||
lines.map(function (line: string) { | ||
return widthOfString(line); | ||
@@ -74,4 +74,4 @@ }) | ||
.split("\n") | ||
.map(function(el: string) { | ||
return el.replace(/(\d+)\s+(\d+)/, function(_m, p1, p2) { | ||
.map(function (el: string) { | ||
return el.replace(/(\d+)\s+(\d+)/, function (_m, p1, p2) { | ||
return chalk.gray(`${p1}:${p2}`); | ||
@@ -78,0 +78,0 @@ }); |
@@ -45,3 +45,3 @@ // LICENSE : MIT | ||
debug(`use formatter: ${formatterPath}`); | ||
return function(results: TextlintFixResult[]) { | ||
return function (results: TextlintFixResult[]) { | ||
return formatter(results, formatterConfig); | ||
@@ -48,0 +48,0 @@ }; |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
45367
1
Updated@textlint/types@^1.4.0