Socket
Socket
Sign inDemoInstall

mdast-util-phrasing

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mdast-util-phrasing - npm Package Compare versions

Comparing version 4.0.0 to 4.1.0

2

index.d.ts

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

export {phrasing} from './lib/index.js'
export { phrasing } from "./lib/index.js";

@@ -1,4 +0,3 @@

export function phrasing(
node?: unknown
): node is import('mdast').PhrasingContent
export type PhrasingContent = import('mdast').PhrasingContent
export function phrasing(node?: unknown): node is import("mdast").Break | import("mdast").Delete | import("mdast").Emphasis | import("mdast").FootnoteReference | import("mdast").Image | import("mdast").ImageReference | import("mdast").InlineCode | import("mdast").Link | import("mdast").LinkReference | import("mdast").Strong | import("mdast").Text;
export type Html = import('mdast').Html;
export type PhrasingContent = import('mdast').PhrasingContent;
/**
* @typedef {import('mdast').Html} Html
* @typedef {import('mdast').PhrasingContent} PhrasingContent

@@ -19,3 +20,3 @@ */

export const phrasing =
/** @type {(node?: unknown) => node is PhrasingContent} */
/** @type {(node?: unknown) => node is Exclude<PhrasingContent, Html>} */
(

@@ -26,2 +27,3 @@ convert([

'emphasis',
// To do: next major: removed since footnotes were added to GFM.
'footnote',

@@ -32,7 +34,15 @@ 'footnoteReference',

'inlineCode',
// Enabled by `mdast-util-math`:
'inlineMath',
'link',
'linkReference',
// Enabled by `mdast-util-mdx`:
'mdxJsxTextElement',
// Enabled by `mdast-util-mdx`:
'mdxTextExpression',
'strong',
'text'
'text',
// Enabled by `mdast-util-directive`:
'textDirective'
])
)
{
"name": "mdast-util-phrasing",
"version": "4.0.0",
"version": "4.1.0",
"description": "mdast utility to check if a node is phrasing content",

@@ -40,4 +40,4 @@ "license": "MIT",

"@types/node": "^20.0.0",
"c8": "^8.0.0",
"prettier": "^2.0.0",
"c8": "^9.0.0",
"prettier": "^3.0.0",
"remark-cli": "^11.0.0",

@@ -47,3 +47,3 @@ "remark-preset-wooorm": "^9.0.0",

"typescript": "^5.0.0",
"xo": "^0.54.0"
"xo": "^0.56.0"
},

@@ -53,3 +53,3 @@ "scripts": {

"build": "tsc --build --clean && tsc --build && type-coverage",
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
"test-api": "node --conditions development test.js",

@@ -56,0 +56,0 @@ "test-coverage": "c8 --100 --reporter lcov npm run test-api",

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