New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rehype-document

Package Overview
Dependencies
Maintainers
3
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rehype-document - npm Package Compare versions

Comparing version 7.0.2 to 7.0.3

11

lib/index.d.ts

@@ -9,12 +9,3 @@ /**

*/
export default function rehypeDocument(options?: Readonly<Options> | null | undefined): (tree: Root, file: VFile) => {
type: string;
children: (import("hast").Element | {
type: string;
value?: never;
} | {
type: string;
value: string;
})[];
};
export default function rehypeDocument(options?: Readonly<Options> | null | undefined): (tree: Root, file: VFile) => Root;
export type ElementContent = import('hast').ElementContent;

@@ -21,0 +12,0 @@ export type Nodes = import('hast').Nodes;

6

lib/index.js

@@ -82,3 +82,3 @@ /**

* File.
* @param {Root} tree
* @returns {Root}
* New tree.

@@ -178,4 +178,4 @@ */

: Array.isArray(value)
? value
: [value]
? value
: [value]
}
{
"name": "rehype-document",
"version": "7.0.2",
"version": "7.0.3",
"description": "rehype plugin to wrap a document around a fragment",

@@ -5,0 +5,0 @@ "license": "MIT",

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