Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

textlint-rule-helper

Package Overview
Dependencies
Maintainers
3
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

textlint-rule-helper - npm Package Compare versions

Comparing version 2.3.0 to 2.3.1

6

lib/IgnoreNodeManager.js

@@ -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

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