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

@textlint-rule/textlint-rule-no-unmatched-pair

Package Overview
Dependencies
Maintainers
5
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@textlint-rule/textlint-rule-no-unmatched-pair - npm Package Compare versions

Comparing version 1.0.9 to 2.0.0

2

lib/textlint-rule-no-unmatched-pair.js

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

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