hast-util-to-estree
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -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) |
{ | ||
"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` |
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
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
0
57250
1321
Updatedstyle-to-object@^0.4.1