textlint-rule-helper
Advanced tools
Comparing version 2.3.0 to 2.3.1
@@ -60,4 +60,3 @@ // LICENSE : MIT | ||
IgnoreNodeManager.prototype.isIgnored = function (node) { | ||
var index = node.index; | ||
return this.isIgnoredIndex(index); | ||
return this.isIgnoredRange(node.range); | ||
}; | ||
@@ -87,3 +86,4 @@ /** | ||
(0, unist_util_visit_1.default)(targetNode, function (visitedNode) { | ||
if (ignoredNodeTypes.indexOf(visitedNode.type) !== -1) { | ||
// @ts-expect-error: type is TxtNodeType | ||
if (ignoredNodeTypes.includes(visitedNode.type)) { | ||
_this.ignore(visitedNode); | ||
@@ -90,0 +90,0 @@ } |
{ | ||
"name": "textlint-rule-helper", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "A helper library for textlint rule.", | ||
@@ -28,3 +28,3 @@ "homepage": "https://github.com/textlint/textlint-rule-helper/", | ||
"dependencies": { | ||
"@textlint/ast-node-types": "^13.0.2", | ||
"@textlint/ast-node-types": "^13.4.1", | ||
"structured-source": "^4.0.0", | ||
@@ -34,8 +34,7 @@ "unist-util-visit": "^2.0.3" | ||
"devDependencies": { | ||
"@textlint/ast-node-types": "^12.1.0", | ||
"@textlint/kernel": "^13.0.2", | ||
"@textlint/textlint-plugin-markdown": "^13.0.2", | ||
"@textlint/types": "^13.0.2", | ||
"@types/mocha": "^10.0.1", | ||
"@types/node": "^18.11.18", | ||
"@textlint/kernel": "^13.4.1", | ||
"@textlint/textlint-plugin-markdown": "^13.4.1", | ||
"@textlint/types": "^13.4.1", | ||
"@types/mocha": "^10.0.6", | ||
"@types/node": "^20.10.0", | ||
"markdown-to-ast": "^6.0.3", | ||
@@ -45,4 +44,4 @@ "mocha": "^10.2.0", | ||
"ts-node-test-register": "^10.0.0", | ||
"typescript": "^4.9.4" | ||
"typescript": "^5.3.2" | ||
} | ||
} |
@@ -60,4 +60,3 @@ // LICENSE : MIT | ||
isIgnored(node: TxtNode | TxtParentNode) { | ||
const index = node.index; | ||
return this.isIgnoredIndex(index); | ||
return this.isIgnoredRange(node.range); | ||
} | ||
@@ -89,3 +88,4 @@ | ||
visit(targetNode, (visitedNode) => { | ||
if (ignoredNodeTypes.indexOf(visitedNode.type) !== -1) { | ||
// @ts-expect-error: type is TxtNodeType | ||
if (ignoredNodeTypes.includes(visitedNode.type)) { | ||
this.ignore(visitedNode as TxtNode | TxtParentNode); | ||
@@ -92,0 +92,0 @@ } |
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
40466
10