Socket
Socket
Sign inDemoInstall

hast-util-to-estree

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hast-util-to-estree - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

6

lib/handlers/element.js

@@ -17,8 +17,4 @@ /**

} from 'estree-util-is-identifier-name'
// @ts-expect-error: `style-to-object` doesn’t support actual ESM + TS correctly.
import styleToObject from 'style-to-object'
/** @type {(value: string, iterator?: (property: string, value: string, declaration: unknown) => void) => Record<string, string>} */
const style = styleToObject
const own = {}.hasOwnProperty

@@ -189,3 +185,3 @@

try {
style(value, iterator)
styleToObject(value, iterator)
} catch (error) {

@@ -192,0 +188,0 @@ const exception = /** @type {Error} */ (error)

4

package.json
{
"name": "hast-util-to-estree",
"version": "2.2.0",
"version": "2.2.1",
"description": "hast utility to transform to estree (JavaScript AST) JSX",

@@ -55,3 +55,3 @@ "license": "MIT",

"space-separated-tokens": "^2.0.0",
"style-to-object": "^0.4.0",
"style-to-object": "^0.4.1",
"unist-util-position": "^4.0.0",

@@ -58,0 +58,0 @@ "zwitch": "^2.0.0"

@@ -194,3 +194,3 @@ # hast-util-to-estree

Each key is an element name, each value is a [`Handle`][handle].
Each key is a node type, each value is a [`Handle`][handle].

@@ -197,0 +197,0 @@ ### `Handle`

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