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

@textlint/kernel

Package Overview
Dependencies
Maintainers
3
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@textlint/kernel - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

lib/ast-node-types/src/TypeofTxtNode.d.ts

9

CHANGELOG.md

@@ -6,2 +6,11 @@ # Change Log

<a name="3.1.1"></a>
## [3.1.1](https://github.com/textlint/textlint/compare/@textlint/kernel@3.1.0...@textlint/kernel@3.1.1) (2019-01-03)
**Note:** Version bump only for package @textlint/kernel
<a name="3.1.0"></a>

@@ -8,0 +17,0 @@ # [3.1.0](https://github.com/textlint/textlint/compare/@textlint/kernel@3.0.1...@textlint/kernel@3.1.0) (2019-01-01)

28

lib/ast-node-types/src/index.d.ts

@@ -6,23 +6,44 @@ /**

*/
import { TypeofTxtNode } from "./TypeofTxtNode";
export declare enum ASTNodeTypes {
Document = "Document",
DocumentExit = "Document:exit",
Paragraph = "Paragraph",
ParagraphExit = "Paragraph:exit",
BlockQuote = "BlockQuote",
BlockQuoteExit = "BlockQuote:exit",
ListItem = "ListItem",
ListItemExit = "ListItem:exit",
List = "List",
ListExit = "List:exit",
Header = "Header",
HeaderExit = "Header:exit",
CodeBlock = "CodeBlock",
CodeBlockExit = "CodeBlock:exit",
HtmlBlock = "HtmlBlock",
HtmlBlockExit = "HtmlBlock:exit",
ReferenceDef = "ReferenceDef",
ReferenceDefExit = "ReferenceDef:exit",
HorizontalRule = "HorizontalRule",
HorizontalRuleExit = "HorizontalRule:exit",
Comment = "Comment",
CommentExit = "Comment:exit",
Str = "Str",
StrExit = "Str:exit",
Break = "Break",
BreakExit = "Break:exit",
Emphasis = "Emphasis",
EmphasisExit = "Emphasis:exit",
Strong = "Strong",
StrongExit = "Strong:exit",
Html = "Html",
HtmlExit = "Html:exit",
Link = "Link",
LinkExit = "Link:exit",
Image = "Image",
ImageExit = "Image:exit",
Code = "Code",
Delete = "Delete"
CodeExit = "Code:exit",
Delete = "Delete",
DeleteExit = "Delete:exit"
}

@@ -35,2 +56,7 @@ /**

/**
* Type utility for TxtNodeType
* Return TxtNode interface for the TxtNodeTYpe
*/
export { TypeofTxtNode };
/**
* Any TxtNode types

@@ -37,0 +63,0 @@ */

25

lib/ast-node-types/src/index.js
// MIT © 2017 azu
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* AST Node types list on TxtNode.
* Constant value of types
* @see https://github.com/textlint/textlint/blob/master/docs/txtnode.md
*/
var ASTNodeTypes;
(function (ASTNodeTypes) {
ASTNodeTypes["Document"] = "Document";
ASTNodeTypes["DocumentExit"] = "Document:exit";
ASTNodeTypes["Paragraph"] = "Paragraph";
ASTNodeTypes["ParagraphExit"] = "Paragraph:exit";
ASTNodeTypes["BlockQuote"] = "BlockQuote";
ASTNodeTypes["BlockQuoteExit"] = "BlockQuote:exit";
ASTNodeTypes["ListItem"] = "ListItem";
ASTNodeTypes["ListItemExit"] = "ListItem:exit";
ASTNodeTypes["List"] = "List";
ASTNodeTypes["ListExit"] = "List:exit";
ASTNodeTypes["Header"] = "Header";
ASTNodeTypes["HeaderExit"] = "Header:exit";
ASTNodeTypes["CodeBlock"] = "CodeBlock";
ASTNodeTypes["CodeBlockExit"] = "CodeBlock:exit";
ASTNodeTypes["HtmlBlock"] = "HtmlBlock";
ASTNodeTypes["HtmlBlockExit"] = "HtmlBlock:exit";
ASTNodeTypes["ReferenceDef"] = "ReferenceDef";
ASTNodeTypes["ReferenceDefExit"] = "ReferenceDef:exit";
ASTNodeTypes["HorizontalRule"] = "HorizontalRule";
ASTNodeTypes["HorizontalRuleExit"] = "HorizontalRule:exit";
ASTNodeTypes["Comment"] = "Comment";
ASTNodeTypes["CommentExit"] = "Comment:exit";
// inline
ASTNodeTypes["Str"] = "Str";
ASTNodeTypes["StrExit"] = "Str:exit";
ASTNodeTypes["Break"] = "Break";
ASTNodeTypes["BreakExit"] = "Break:exit";
ASTNodeTypes["Emphasis"] = "Emphasis";
ASTNodeTypes["EmphasisExit"] = "Emphasis:exit";
ASTNodeTypes["Strong"] = "Strong";
ASTNodeTypes["StrongExit"] = "Strong:exit";
ASTNodeTypes["Html"] = "Html";
ASTNodeTypes["HtmlExit"] = "Html:exit";
ASTNodeTypes["Link"] = "Link";
ASTNodeTypes["LinkExit"] = "Link:exit";
ASTNodeTypes["Image"] = "Image";
ASTNodeTypes["ImageExit"] = "Image:exit";
ASTNodeTypes["Code"] = "Code";
ASTNodeTypes["CodeExit"] = "Code:exit";
ASTNodeTypes["Delete"] = "Delete";
ASTNodeTypes["DeleteExit"] = "Delete:exit";
})(ASTNodeTypes = exports.ASTNodeTypes || (exports.ASTNodeTypes = {}));
//# sourceMappingURL=index.js.map
/**
* Filter rule reporter function
*/
import { AnyTxtNode, TxtNodeType } from "@textlint/ast-node-types";
import { TextlintFilterRuleContext } from "./TextlintFilterRuleContext";
import { TxtNodeType, TypeofTxtNode } from "@textlint/ast-node-types";
/**

@@ -17,3 +17,3 @@ * textlint filter rule option values is object or boolean.

export declare type TextlintFilterRuleReportHandler = {
[P in TxtNodeType]?: (node: AnyTxtNode) => void | Promise<any>;
[P in TxtNodeType]?: (node: TypeofTxtNode<P>) => void | Promise<any>;
};

@@ -20,0 +20,0 @@ /**

/**
* Rule reporter function
*/
import { AnyTxtNode, TxtNodeType } from "@textlint/ast-node-types";
import { ASTNodeTypes, TypeofTxtNode } from "@textlint/ast-node-types";
import { TextlintRuleOptions } from "./TextlintRuleOptions";

@@ -12,5 +12,7 @@ import { TextlintRuleContext } from "./TextlintRuleContext";

* `new Proxy(target, handler)`
*
* Each comment is example value of Markdown
*/
export declare type TextlintRuleReportHandler = {
[P in TxtNodeType]?: (node: AnyTxtNode) => void | Promise<any>;
[P in ASTNodeTypes]?: (node: TypeofTxtNode<P>) => void | Promise<any>;
};

@@ -17,0 +19,0 @@ /**

{
"name": "@textlint/kernel",
"version": "3.1.0",
"version": "3.1.1",
"description": "textlint kernel is core logic by pure JavaScript.",

@@ -35,6 +35,6 @@ "keywords": [

"dependencies": {
"@textlint/ast-node-types": "^4.1.0",
"@textlint/ast-traverse": "^2.1.0",
"@textlint/feature-flag": "^3.1.0",
"@textlint/types": "^1.1.0",
"@textlint/ast-node-types": "^4.2.0",
"@textlint/ast-traverse": "^2.1.1",
"@textlint/feature-flag": "^3.1.1",
"@textlint/types": "^1.1.1",
"@types/bluebird": "^3.5.18",

@@ -49,3 +49,3 @@ "bluebird": "^3.5.1",

"devDependencies": {
"@textlint/markdown-to-ast": "^6.1.0",
"@textlint/markdown-to-ast": "^6.1.1",
"@types/deep-equal": "^1.0.1",

@@ -63,3 +63,4 @@ "@types/mocha": "^5.2.5",

"typescript": "~3.2.2"
}
},
"gitHead": "d035d8599ae7e3713cf6cec9745afad538b82680"
}

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