@textlint-rule/textlint-rule-no-unmatched-pair
Advanced tools
Comparing version 1.0.9 to 2.0.0
@@ -23,3 +23,3 @@ "use strict"; | ||
ignoreNodeManager.ignoreChildrenByTypes(node, [Syntax.CodeBlock, Syntax.Code, Syntax.Link, Syntax.Strong, Syntax.Emphasis, Syntax.BlockQuote, Syntax.Comment]); | ||
sentences.children.filter(node => node.type === _sentenceSplitter.Syntax.Sentence).forEach(sentence => { | ||
sentences.children.filter(node => node.type === _sentenceSplitter.SentenceSplitterSyntax.Sentence).forEach(sentence => { | ||
var source = new _SourceCode.SourceCode(sentence.raw); | ||
@@ -26,0 +26,0 @@ var pairMaker = new _PairMaker.PairMaker(); |
{ | ||
"name": "@textlint-rule/textlint-rule-no-unmatched-pair", | ||
"version": "1.0.9", | ||
"version": "2.0.0", | ||
"description": "textlint rule that check unmatched pairs like \"(\" and \")\"", | ||
@@ -62,5 +62,5 @@ "keywords": [ | ||
"dependencies": { | ||
"sentence-splitter": "^3.0.11", | ||
"textlint-rule-helper": "2.0.1" | ||
"sentence-splitter": "^4.3.0", | ||
"textlint-rule-helper": "^2.3.0" | ||
} | ||
} |
// MIT © 2018 azu | ||
import { splitAST, Syntax as SentenceSyntax } from "sentence-splitter"; | ||
import { splitAST, SentenceSplitterSyntax } from "sentence-splitter"; | ||
import { PairMaker } from "./parser/PairMaker.js"; | ||
@@ -22,3 +22,3 @@ import { SourceCode } from "./parser/SourceCode.js"; | ||
]); | ||
sentences.children.filter(node => node.type === SentenceSyntax.Sentence).forEach(sentence => { | ||
sentences.children.filter(node => node.type === SentenceSplitterSyntax.Sentence).forEach(sentence => { | ||
const source = new SourceCode(sentence.raw); | ||
@@ -25,0 +25,0 @@ const pairMaker = new PairMaker(); |
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
28484
+ Added@textlint/ast-node-types@13.4.1(transitive)
+ Added@types/unist@2.0.11(transitive)
+ Addedboundary@2.0.0(transitive)
+ Addedsentence-splitter@4.4.1(transitive)
+ Addedstructured-source@4.0.0(transitive)
+ Addedtextlint-rule-helper@2.3.1(transitive)
+ Addedunist-util-is@4.1.0(transitive)
+ Addedunist-util-visit@2.0.3(transitive)
+ Addedunist-util-visit-parents@3.1.1(transitive)
- Removed@textlint/ast-node-types@4.4.3(transitive)
- Removedboundary@1.0.1(transitive)
- Removedbuffer-from@1.1.2(transitive)
- Removedconcat-stream@2.0.0(transitive)
- Removedinherits@2.0.4(transitive)
- Removedobject_values@0.1.2(transitive)
- Removedreadable-stream@3.6.2(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedsentence-splitter@3.2.3(transitive)
- Removedstring_decoder@1.3.0(transitive)
- Removedstructured-source@3.0.2(transitive)
- Removedtextlint-rule-helper@2.0.1(transitive)
- Removedtypedarray@0.0.6(transitive)
- Removedunist-util-is@3.0.0(transitive)
- Removedunist-util-visit@1.4.1(transitive)
- Removedunist-util-visit-parents@2.1.2(transitive)
- Removedutil-deprecate@1.0.2(transitive)
Updatedsentence-splitter@^4.3.0
Updatedtextlint-rule-helper@^2.3.0