@textlint/kernel
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -6,2 +6,13 @@ # Change Log | ||
<a name="3.0.1"></a> | ||
## [3.0.1](https://github.com/textlint/textlint/compare/@textlint/kernel@3.0.0...@textlint/kernel@3.0.1) (2018-12-24) | ||
### Bug Fixes | ||
* **kernel:** fix applyFix order on Node.js 11 ([714a90c](https://github.com/textlint/textlint/commit/714a90c)) | ||
<a name="3.0.0"></a> | ||
@@ -8,0 +19,0 @@ # [3.0.0](https://github.com/textlint/textlint/compare/@textlint/kernel@2.0.9...@textlint/kernel@3.0.0) (2018-07-22) |
@@ -62,8 +62,3 @@ "use strict"; | ||
fixes.sort(function (a, b) { | ||
if (a.fix.range[1] <= b.fix.range[0]) { | ||
return 1; | ||
} | ||
else { | ||
return -1; | ||
} | ||
return b.fix.range[1] - a.fix.range[1] || b.fix.range[0] - a.fix.range[0]; | ||
}); | ||
@@ -70,0 +65,0 @@ // split into array of characters for easier manipulation |
{ | ||
"name": "@textlint/kernel", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "textlint kernel is core logic by pure JavaScript.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -70,7 +70,3 @@ import { TextlintFixCommand, TextlintMessage } from "../textlint-kernel-interface"; | ||
fixes.sort((a: TextLintMessageFixable, b: TextLintMessageFixable) => { | ||
if (a.fix.range[1] <= b.fix.range[0]) { | ||
return 1; | ||
} else { | ||
return -1; | ||
} | ||
return b.fix.range[1] - a.fix.range[1] || b.fix.range[0] - a.fix.range[0]; | ||
}); | ||
@@ -77,0 +73,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
330588
7157