Socket
Socket
Sign inDemoInstall

unist-util-is

Package Overview
Dependencies
0
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.3 to 4.0.4

2

convert.d.ts

@@ -1,2 +0,2 @@

import {Test, TestFunction} from './'
import {Test, TestFunction} from '.'
import {Node} from 'unist'

@@ -3,0 +3,0 @@

@@ -34,3 +34,3 @@ 'use strict'

for (key in test) {
if (node[key] !== test[key]) return
if (node[key] !== test[key]) return false
}

@@ -60,2 +60,4 @@

}
return false
}

@@ -70,3 +72,3 @@ }

function type(node) {
return node && node.type === test
return Boolean(node && node.type === test)
}

@@ -73,0 +75,0 @@ }

{
"name": "unist-util-is",
"version": "4.0.3",
"version": "4.0.4",
"description": "unist utility to check if a node passes a test",

@@ -49,8 +49,8 @@ "license": "MIT",

"unified": "^9.0.0",
"xo": "^0.34.0"
"xo": "^0.35.0"
},
"scripts": {
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
"build-bundle": "browserify . -s unistUtilIs > unist-util-is.js",
"build-mangle": "browserify . -s unistUtilIs -p tinyify > unist-util-is.min.js",
"build-bundle": "browserify . -s unistUtilIs -o unist-util-is.js",
"build-mangle": "browserify . -s unistUtilIs -o unist-util-is.min.js -p tinyify",
"build": "npm run build-bundle && npm run build-mangle",

@@ -74,2 +74,3 @@ "test-api": "node test",

"rules": {
"@typescript-eslint/no-unused-expressions": "off",
"eqeqeq": [

@@ -76,0 +77,0 @@ "error",

@@ -157,5 +157,5 @@ # unist-util-is

[build-badge]: https://img.shields.io/travis/syntax-tree/unist-util-is.svg
[build-badge]: https://github.com/syntax-tree/unist-util-is/workflows/main/badge.svg
[build]: https://travis-ci.org/syntax-tree/unist-util-is
[build]: https://github.com/syntax-tree/unist-util-is/actions

@@ -162,0 +162,0 @@ [coverage-badge]: https://img.shields.io/codecov/c/github/syntax-tree/unist-util-is.svg

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc