unified-message-control
Advanced tools
Comparing version 2.0.0 to 3.0.0
25
index.js
@@ -9,10 +9,11 @@ 'use strict' | ||
function messageControl(options) { | ||
var name = options && options.name | ||
var marker = options && options.marker | ||
var test = options && options.test | ||
var sources | ||
var known | ||
var reset | ||
var enable | ||
var disable | ||
var opts = options || {} | ||
var name = opts.name | ||
var marker = opts.marker | ||
var test = opts.test | ||
var sources = opts.source | ||
var known = opts.known | ||
var reset = opts.reset | ||
var enable = opts.enable || [] | ||
var disable = opts.disable || [] | ||
@@ -27,8 +28,2 @@ if (!name) { | ||
known = options.known | ||
reset = options.reset | ||
enable = options.enable || [] | ||
disable = options.disable || [] | ||
sources = options.source | ||
if (!sources) { | ||
@@ -64,3 +59,3 @@ sources = [name] | ||
if (!mark || mark.name !== options.name) { | ||
if (!mark || mark.name !== name) { | ||
return | ||
@@ -67,0 +62,0 @@ } |
{ | ||
"name": "unified-message-control", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"description": "Enable, disable, and ignore messages from unified processors", | ||
@@ -15,29 +15,41 @@ "license": "MIT", | ||
"bugs": "https://github.com/unifiedjs/unified-message-control/issues", | ||
"funding": { | ||
"type": "opencollective", | ||
"url": "https://opencollective.com/unified" | ||
}, | ||
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)", | ||
"contributors": [ | ||
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)", | ||
"Christian Murphy <christian.murphy.42@gmail.com> (https://github.com/ChristianMurphy)" | ||
"Christian Murphy <christian.murphy.42@gmail.com> (https://github.com/ChristianMurphy)", | ||
"Thomas 'zemnmez' Shadwell (https://github.com/zemnmez)" | ||
], | ||
"files": [ | ||
"index.js" | ||
"index.js", | ||
"index.d.ts" | ||
], | ||
"dependencies": { | ||
"unist-util-visit": "^1.0.0", | ||
"vfile-location": "^2.0.0" | ||
"unist-util-visit": "^2.0.0", | ||
"vfile-location": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"@types/hast": "^2.0.0", | ||
"@types/mdast": "^3.0.0", | ||
"@types/unist": "^2.0.0", | ||
"browserify": "^16.0.0", | ||
"dtslint": "^2.0.0", | ||
"esmangle": "^1.0.0", | ||
"mdast-comment-marker": "^1.0.0", | ||
"nyc": "^14.0.0", | ||
"nyc": "^15.0.0", | ||
"prettier": "^1.0.0", | ||
"remark": "^10.0.0", | ||
"remark-cli": "^6.0.0", | ||
"remark-preset-wooorm": "^5.0.0", | ||
"remark-toc": "^5.0.0", | ||
"remark": "^11.0.0", | ||
"remark-cli": "^7.0.0", | ||
"remark-preset-wooorm": "^6.0.0", | ||
"remark-toc": "^7.0.0", | ||
"tape": "^4.0.0", | ||
"xo": "^0.24.0" | ||
"unified": "^8.0.0", | ||
"unist-util-is": "^4.0.0", | ||
"xo": "^0.25.0" | ||
}, | ||
"scripts": { | ||
"format": "remark . -qfo && prettier --write \"**/*.js\" && xo --fix", | ||
"format": "remark . -qfo && prettier --write '**/*.{js,ts}' && xo --fix", | ||
"build-bundle": "browserify index.js --bare -s unifiedMessageControl > unified-message-control.js", | ||
@@ -48,3 +60,4 @@ "build-mangle": "esmangle unified-message-control.js > unified-message-control.min.js", | ||
"test-coverage": "nyc --reporter lcov tape test.js", | ||
"test": "npm run format && npm run build && npm run test-coverage" | ||
"test-types": "dtslint", | ||
"test": "npm run test-types && npm run format && npm run build && npm run test-coverage" | ||
}, | ||
@@ -69,2 +82,3 @@ "nyc": { | ||
"rules": { | ||
"unicorn/prefer-includes": "off", | ||
"guard-for-in": "off" | ||
@@ -71,0 +85,0 @@ }, |
@@ -162,7 +162,7 @@ # unified-message-control | ||
```md | ||
```markdown | ||
<!--lint ignore list-item-bullet-indent strong-marker--> | ||
* **foo** | ||
* __bar__ | ||
* __bar__ | ||
``` | ||
@@ -169,0 +169,0 @@ |
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
18418
5
334
17
+ Added@types/unist@2.0.11(transitive)
+ Addedunist-util-is@4.1.0(transitive)
+ Addedunist-util-visit@2.0.3(transitive)
+ Addedunist-util-visit-parents@3.1.1(transitive)
+ Addedvfile-location@3.2.0(transitive)
- Removedunist-util-is@3.0.0(transitive)
- Removedunist-util-visit@1.4.1(transitive)
- Removedunist-util-visit-parents@2.1.2(transitive)
- Removedvfile-location@2.0.6(transitive)
Updatedunist-util-visit@^2.0.0
Updatedvfile-location@^3.0.0