New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

textlint-plugin-html

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

textlint-plugin-html - npm Package Compare versions

Comparing version

to
0.1.5

2

lib/HTMLProcessor.js

@@ -39,3 +39,3 @@ // LICENSE : MIT

value: function availableExtensions() {
return [".html"];
return [".htm", ".html"];
}

@@ -42,0 +42,0 @@ }]);

@@ -14,3 +14,3 @@ {

},
"version": "0.1.4",
"version": "0.1.5",
"description": "textlint HTML processsor plugin.",

@@ -40,8 +40,9 @@ "main": "lib/index.js",

"babel-preset-es2015": "^6.6.0",
"babel-preset-jsdoc-to-assert": "^1.0.1",
"babel-preset-jsdoc-to-assert": "^4.0.0",
"babel-preset-power-assert": "^1.0.0",
"babel-register": "^6.8.0",
"mocha": "^2.3.3",
"glob": "^7.1.1",
"mocha": "^3.2.0",
"power-assert": "^1.4.0",
"textlint": "^6.7.0",
"textlint": "^7.2.2",
"textlint-ast-test": "^1.1.3",

@@ -48,0 +49,0 @@ "textlint-rule-no-todo": "^2.0.0"

@@ -12,2 +12,7 @@ # textlint-plugin-html [![Build Status](https://travis-ci.org/textlint/textlint-plugin-html.svg?branch=master)](https://travis-ci.org/textlint/textlint-plugin-html)

## Supported extensions
- `.html`
- `.htm`
## Usage

@@ -14,0 +19,0 @@

@@ -45,3 +45,3 @@ // LICENSE : MIT

const src = new StructuredSource(html);
var tr = traverse(ast);
const tr = traverse(ast);
tr.forEach(function (node) {

@@ -57,3 +57,3 @@ if (this.notLeaf) {

node.type = nodeTypes[node.type];
let position = src.rangeToLocation([0, html.length]);
const position = src.rangeToLocation([0, html.length]);
// reverse adjust

@@ -60,0 +60,0 @@ node.position = {

@@ -11,2 +11,3 @@ // LICENSE : MIT

return [
".htm",
".html"

@@ -13,0 +14,0 @@ ];

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet