@textlint/kernel
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -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) |
@@ -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 @@ */ |
// 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
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
254359
157
4600
Updated@textlint/types@^1.1.1