retext-visit
Advanced tools
Comparing version 0.0.5 to 0.1.0
@@ -5,3 +5,3 @@ { | ||
"description": "Retext node visitor", | ||
"version": "0.0.5", | ||
"version": "0.1.0", | ||
"keywords": [ | ||
@@ -8,0 +8,0 @@ "retext", |
{ | ||
"name": "retext-visit", | ||
"version": "0.0.5", | ||
"version": "0.1.0", | ||
"description": "Retext node visitor", | ||
@@ -12,9 +12,7 @@ "keywords": [ | ||
"devDependencies": { | ||
"browserify": "^4.1.11", | ||
"complexity-report": "~1.0.3", | ||
"eslint": "^0.6.2", | ||
"istanbul": "~0.2.11", | ||
"jscs": "^1.5.3", | ||
"istanbul": "~0.2.16", | ||
"jscs": "^1.5.8", | ||
"mocha": "~1.20.1", | ||
"retext": "~0.0.12" | ||
"retext": "^0.1.0" | ||
}, | ||
@@ -32,7 +30,7 @@ "repository": { | ||
"lint-style": "node_modules/.bin/jscs index.js spec/retext-visit.spec.js --reporter=inline", | ||
"install-browser-test": "npm install browserify", | ||
"build-browser-test": "node_modules/.bin/browserify spec/retext-visit.spec.js -o spec/browser.spec.js", | ||
"prepublish": "npm run-script build-browser", | ||
"build-browser": "node_modules/.bin/browserify spec/retext-visit.spec.js -o spec/browser.spec.js", | ||
"coverage": "node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- -- spec/retext-visit.spec.js", | ||
"complexity": "node_modules/.bin/cr -l --maxcyc 20 --format minimal --silent index.js", | ||
"make": "npm run-script build-browser && npm run-script lint && npm run-script complexity && npm run-script coverage" | ||
"make": "npm run-script lint&& npm run-script coverage" | ||
}, | ||
@@ -39,0 +37,0 @@ "testling": { |
@@ -42,10 +42,19 @@ # retext-visit [![Build Status](https://travis-ci.org/wooorm/retext-visit.svg?branch=master)](https://travis-ci.org/wooorm/retext-visit) [![Coverage Status](https://img.shields.io/coveralls/wooorm/retext-visit.svg)](https://coveralls.io/r/wooorm/retext-visit?branch=master) | ||
}); | ||
// 'A' | ||
// ' ' | ||
// 'simple' | ||
// ' ' | ||
// 'english' | ||
// ' ' | ||
// 'sentence' | ||
// '.' | ||
/* 'A' // WordNode | ||
* 'A' // TextNode | ||
* ' ' // WhiteSpaceNode | ||
* ' ' // TextNode | ||
* 'simple' // WordNode | ||
* 'simple' // TextNode | ||
* ' ' // WhiteSpaceNode | ||
* ' ' // TextNode | ||
* 'english' // WordNode | ||
* 'english' // TextNode | ||
* ' ' // WhiteSpaceNode | ||
* ' ' // TextNode | ||
* 'sentence' // WordNode | ||
* 'sentence' // TextNode | ||
* '.' // PunctuationNode | ||
* '.' // TextNode | ||
*/ | ||
``` | ||
@@ -73,3 +82,3 @@ | ||
- `type`: A type of a node (e.g., PARAGRAPH_NODE, WORD_NODE, or WHITE_SPACE_NODE); | ||
- `type`: A type of a node (e.g., node.PARAGRAPH_NODE, node.WORD_NODE, or node.WHITE_SPACE_NODE); | ||
- `callback` (`function`): The function to call with each node. | ||
@@ -76,0 +85,0 @@ |
@@ -46,3 +46,3 @@ 'use strict'; | ||
assert(count === 10); | ||
assert(count === 18); | ||
} | ||
@@ -62,3 +62,3 @@ ); | ||
assert(count === 5); | ||
assert(count === 7); | ||
} | ||
@@ -65,0 +65,0 @@ ); |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
5
92
0
14872
255