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

unified-message-control

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unified-message-control - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

index.d.ts

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 @@ }

40

package.json
{
"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 @@

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