@textlint/kernel
Advanced tools
Comparing version 3.3.6 to 3.3.7
@@ -6,2 +6,48 @@ # Change Log | ||
<a name="3.3.7"></a> | ||
## [3.3.7](https://github.com/textlint/textlint/compare/@textlint/kernel@3.3.6...@textlint/kernel@3.3.7) (2020-12-22) | ||
### Bug Fixes | ||
* **@textlint/kernel:** fix [@ts-expect-error](https://github.com/ts-expect-error) issue ([d58d79e](https://github.com/textlint/textlint/commit/d58d79e)) | ||
* **deps:** update dependency debug to ^4.2.0 ([6db0ba9](https://github.com/textlint/textlint/commit/6db0ba9)) | ||
* **deps:** update dependency debug to ^4.3.0 ([9dea96a](https://github.com/textlint/textlint/commit/9dea96a)) | ||
* **textlint:** textlint can't apply adjacent fixes ([#732](https://github.com/textlint/textlint/issues/732)) ([9ce71eb](https://github.com/textlint/textlint/commit/9ce71eb)) | ||
* fix tsconfig ([a722a6f](https://github.com/textlint/textlint/commit/a722a6f)) | ||
### Chores | ||
* **deps:** update dependency [@types](https://github.com/types)/mocha to v8.0.4 ([fd60f20](https://github.com/textlint/textlint/commit/fd60f20)) | ||
* **deps:** update dependency [@types](https://github.com/types)/mocha to v8.2.0 ([5ced72d](https://github.com/textlint/textlint/commit/5ced72d)) | ||
* **deps:** update dependency [@types](https://github.com/types)/node to ^14.11.2 ([6ac372a](https://github.com/textlint/textlint/commit/6ac372a)) | ||
* **deps:** update dependency [@types](https://github.com/types)/node to ^14.11.5 ([b0e73f5](https://github.com/textlint/textlint/commit/b0e73f5)) | ||
* **deps:** update dependency [@types](https://github.com/types)/node to ^14.11.8 ([33679af](https://github.com/textlint/textlint/commit/33679af)) | ||
* **deps:** update dependency [@types](https://github.com/types)/node to ^14.14.10 ([96ba315](https://github.com/textlint/textlint/commit/96ba315)) | ||
* **deps:** update dependency [@types](https://github.com/types)/node to ^14.14.12 ([f62f2e3](https://github.com/textlint/textlint/commit/f62f2e3)) | ||
* **deps:** update dependency [@types](https://github.com/types)/node to ^14.14.13 ([608afd4](https://github.com/textlint/textlint/commit/608afd4)) | ||
* **deps:** update dependency [@types](https://github.com/types)/node to ^14.14.14 ([8417f8a](https://github.com/textlint/textlint/commit/8417f8a)) | ||
* **deps:** update dependency [@types](https://github.com/types)/node to ^14.14.5 ([1ed7006](https://github.com/textlint/textlint/commit/1ed7006)) | ||
* **deps:** update dependency [@types](https://github.com/types)/node to ^14.14.6 ([507a41b](https://github.com/textlint/textlint/commit/507a41b)) | ||
* **deps:** update dependency [@types](https://github.com/types)/node to ^14.14.7 ([64f97eb](https://github.com/textlint/textlint/commit/64f97eb)) | ||
* **deps:** update dependency [@types](https://github.com/types)/node to ^14.14.8 ([8de7d16](https://github.com/textlint/textlint/commit/8de7d16)) | ||
* **deps:** update minor updates ([7ef0be6](https://github.com/textlint/textlint/commit/7ef0be6)) | ||
* **deps:** update minor updates ([2f3dcb6](https://github.com/textlint/textlint/commit/2f3dcb6)) | ||
* **deps:** update minor updates ([7a53517](https://github.com/textlint/textlint/commit/7a53517)) | ||
* **deps:** update minor updates ([#712](https://github.com/textlint/textlint/issues/712)) ([8c42a19](https://github.com/textlint/textlint/commit/8c42a19)) | ||
* **deps:** update patch updates ([3d9660b](https://github.com/textlint/textlint/commit/3d9660b)) | ||
* **deps:** update patch updates ([fe2ad4f](https://github.com/textlint/textlint/commit/fe2ad4f)) | ||
* **deps:** update patch updates ([e438ff2](https://github.com/textlint/textlint/commit/e438ff2)) | ||
* **deps:** update patch updates ([9df50df](https://github.com/textlint/textlint/commit/9df50df)) | ||
* **deps:** update patch updates ([4f4c206](https://github.com/textlint/textlint/commit/4f4c206)) | ||
* **deps:** update patch updates ([1a0e41f](https://github.com/textlint/textlint/commit/1a0e41f)) | ||
* **deps:** update patch updates ([9157dda](https://github.com/textlint/textlint/commit/9157dda)) | ||
* **deps:** update TypeScript deps ([#705](https://github.com/textlint/textlint/issues/705)) ([1baa72a](https://github.com/textlint/textlint/commit/1baa72a)) | ||
* use [@monorepo-utils](https://github.com/monorepo-utils)/workspaces-to-typescript-project-references ([#699](https://github.com/textlint/textlint/issues/699)) ([eff1943](https://github.com/textlint/textlint/commit/eff1943)) | ||
<a name="3.3.6"></a> | ||
@@ -8,0 +54,0 @@ ## [3.3.6](https://github.com/textlint/textlint/compare/@textlint/kernel@3.3.5...@textlint/kernel@3.3.6) (2020-07-24) |
@@ -17,3 +17,3 @@ "use strict"; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -20,0 +20,0 @@ return result; |
@@ -17,3 +17,3 @@ "use strict"; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -20,0 +20,0 @@ return result; |
@@ -17,3 +17,3 @@ "use strict"; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -20,0 +20,0 @@ return result; |
@@ -49,3 +49,2 @@ "use strict"; | ||
*/ | ||
// @ts-expect-error | ||
return Object.assign({}, adjustedLoc, adjustedFix); | ||
@@ -52,0 +51,0 @@ }; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TextlintPluginDescriptor = exports.TextlintPluginDescriptors = exports.TextlintFilterRuleDescriptor = exports.TextlintFilterRuleDescriptors = exports.TextlintFixableRuleDescriptor = exports.TextlintLintableRuleDescriptor = exports.TextlintRuleDescriptors = exports.TextlintKernelDescriptor = void 0; | ||
var TextlintKernelDescriptor_1 = require("./TextlintKernelDescriptor"); | ||
@@ -4,0 +5,0 @@ Object.defineProperty(exports, "TextlintKernelDescriptor", { enumerable: true, get: function () { return TextlintKernelDescriptor_1.TextlintKernelDescriptor; } }); |
@@ -7,3 +7,3 @@ // LICENSE : MIT | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
@@ -10,0 +10,0 @@ }; |
@@ -18,3 +18,3 @@ // LICENSE : MIT | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -21,0 +21,0 @@ return result; |
@@ -17,3 +17,3 @@ "use strict"; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -20,0 +20,0 @@ return result; |
@@ -51,3 +51,3 @@ "use strict"; | ||
var fixes = []; | ||
var lastFixPos = text.length + 1; | ||
var lastFixPos = text.length; | ||
var prefix = sourceCode.hasBOM ? BOM : ""; | ||
@@ -77,3 +77,3 @@ cloneMessages.forEach(function (problem) { | ||
var insertionText = fix.text; | ||
if (end < lastFixPos) { | ||
if (end <= lastFixPos) { | ||
if (start < 0) { | ||
@@ -80,0 +80,0 @@ // Remove BOM. |
@@ -10,5 +10,6 @@ "use strict"; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TextlintRuleSeverityLevelKeys = exports.TextlintKernel = void 0; | ||
// Kernel | ||
@@ -15,0 +16,0 @@ var textlint_kernel_1 = require("./textlint-kernel"); |
@@ -18,3 +18,3 @@ // LICENSE : MIT | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -21,0 +21,0 @@ return result; |
@@ -7,3 +7,3 @@ // LICENSE : MIT | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
@@ -10,0 +10,0 @@ }; |
@@ -7,3 +7,3 @@ // LICENSE : MIT | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
@@ -10,0 +10,0 @@ }; |
@@ -7,3 +7,3 @@ // LICENSE : MIT | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
@@ -32,3 +32,3 @@ }; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -35,0 +35,0 @@ return result; |
@@ -18,3 +18,3 @@ // MIT © 2017 azu | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -21,0 +21,0 @@ return result; |
@@ -44,3 +44,2 @@ import assert from "assert"; | ||
*/ | ||
// @ts-expect-error | ||
return Object.assign({}, adjustedLoc, adjustedFix); | ||
@@ -47,0 +46,0 @@ }; |
@@ -0,1 +1,2 @@ | ||
export {}; | ||
//# sourceMappingURL=Descriptor.js.map |
@@ -7,3 +7,3 @@ // LICENSE : MIT | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
@@ -10,0 +10,0 @@ }; |
@@ -46,3 +46,3 @@ import { TextlintSourceCodeImpl } from "../context/TextlintSourceCodeImpl"; | ||
var fixes = []; | ||
var lastFixPos = text.length + 1; | ||
var lastFixPos = text.length; | ||
var prefix = sourceCode.hasBOM ? BOM : ""; | ||
@@ -72,3 +72,3 @@ cloneMessages.forEach(function (problem) { | ||
var insertionText = fix.text; | ||
if (end < lastFixPos) { | ||
if (end <= lastFixPos) { | ||
if (start < 0) { | ||
@@ -75,0 +75,0 @@ // Remove BOM. |
@@ -7,3 +7,3 @@ // LICENSE : MIT | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
@@ -10,0 +10,0 @@ }; |
@@ -7,3 +7,3 @@ // LICENSE : MIT | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
@@ -10,0 +10,0 @@ }; |
@@ -7,3 +7,3 @@ // LICENSE : MIT | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
@@ -10,0 +10,0 @@ }; |
@@ -0,1 +1,2 @@ | ||
export {}; | ||
//# sourceMappingURL=textlint-kernel-interface.js.map |
{ | ||
"name": "@textlint/kernel", | ||
"version": "3.3.6", | ||
"version": "3.3.7", | ||
"description": "textlint kernel is core logic by pure JavaScript.", | ||
@@ -38,9 +38,9 @@ "keywords": [ | ||
"dependencies": { | ||
"@textlint/ast-node-types": "^4.3.4", | ||
"@textlint/ast-tester": "^2.2.4", | ||
"@textlint/ast-traverse": "^2.2.5", | ||
"@textlint/feature-flag": "^3.2.4", | ||
"@textlint/types": "^1.4.5", | ||
"@textlint/utils": "^1.1.4", | ||
"debug": "^4.1.1", | ||
"@textlint/ast-node-types": "^4.3.5", | ||
"@textlint/ast-tester": "^2.2.5", | ||
"@textlint/ast-traverse": "^2.2.6", | ||
"@textlint/feature-flag": "^3.2.5", | ||
"@textlint/types": "^1.4.6", | ||
"@textlint/utils": "^1.1.5", | ||
"debug": "^4.3.1", | ||
"deep-equal": "^1.1.1", | ||
@@ -51,19 +51,19 @@ "map-like": "^2.0.0", | ||
"devDependencies": { | ||
"@textlint/markdown-to-ast": "^6.2.5", | ||
"@textlint/markdown-to-ast": "^6.2.6", | ||
"@types/debug": "^4.1.5", | ||
"@types/deep-equal": "^1.0.1", | ||
"@types/mocha": "^7.0.2", | ||
"@types/node": "^13.11.1", | ||
"@types/mocha": "^8.2.0", | ||
"@types/node": "^14.14.14", | ||
"@types/structured-source": "^3.0.0", | ||
"cpx": "^1.5.0", | ||
"cross-env": "^7.0.2", | ||
"mocha": "^7.1.1", | ||
"cross-env": "^7.0.3", | ||
"mocha": "^8.2.1", | ||
"npm-run-all": "^4.1.5", | ||
"rimraf": "^3.0.2", | ||
"shelljs": "^0.8.3", | ||
"ts-node": "^8.10.2", | ||
"ts-node-test-register": "^8.0.1", | ||
"typescript": "~3.9.7" | ||
"shelljs": "^0.8.4", | ||
"ts-node": "^9.1.1", | ||
"ts-node-test-register": "^9.0.1", | ||
"typescript": "~4.0.2" | ||
}, | ||
"gitHead": "a6fde3a45f9a02732dc358e16aba192b7f3610ad" | ||
"gitHead": "281c00764dde530cf6fd42d0858111594fdf34af" | ||
} |
@@ -105,4 +105,7 @@ import type { | ||
*/ | ||
// @ts-expect-error | ||
return Object.assign({}, adjustedLoc, adjustedFix); | ||
return Object.assign({}, adjustedLoc, adjustedFix) as { | ||
line: number; | ||
column: number; | ||
fix?: TextlintMessageFixCommand; | ||
}; | ||
} | ||
@@ -109,0 +112,0 @@ |
@@ -55,3 +55,3 @@ import type { TextlintMessage, TextlintMessageFixCommand, TextlintSourceCode } from "@textlint/types"; | ||
const fixes: TextLintMessageFixable[] = []; | ||
let lastFixPos = text.length + 1; | ||
let lastFixPos = text.length; | ||
let prefix = sourceCode.hasBOM ? BOM : ""; | ||
@@ -85,3 +85,3 @@ cloneMessages.forEach((problem) => { | ||
if (end < lastFixPos) { | ||
if (end <= lastFixPos) { | ||
if (start < 0) { | ||
@@ -88,0 +88,0 @@ // Remove BOM. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
579615
11182
Updated@textlint/ast-tester@^2.2.5
Updated@textlint/types@^1.4.6
Updated@textlint/utils@^1.1.5
Updateddebug@^4.3.1