Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

unist-util-stringify-position

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unist-util-stringify-position - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

9

index.d.ts
/**
* @typedef {import('unist').Point} Point
* @typedef {import('unist').Node} Node
* @typedef {import('unist').Position} Position
* @typedef {Record<string, unknown> & {type: string, position?: Position|undefined}} NodeLike
* @typedef {object & {type: string, position?: Position|undefined}} NodeLike
*/

@@ -10,3 +11,3 @@ /**

*
* @param {NodeLike|Position|Point|null} [value]
* @param {Node|NodeLike|Position|Point|null} [value]
* @returns {string}

@@ -17,2 +18,3 @@ */

| import('unist').Point
| import('unist').Node<import('unist').Data>
| import('unist').Position

@@ -24,4 +26,5 @@ | NodeLike

export type Point = import('unist').Point
export type Node = import('unist').Node
export type Position = import('unist').Position
export type NodeLike = Record<string, unknown> & {
export type NodeLike = object & {
type: string

@@ -28,0 +31,0 @@ position?: Position | undefined

/**
* @typedef {import('unist').Point} Point
* @typedef {import('unist').Node} Node
* @typedef {import('unist').Position} Position
* @typedef {Record<string, unknown> & {type: string, position?: Position|undefined}} NodeLike
* @typedef {object & {type: string, position?: Position|undefined}} NodeLike
*/

@@ -11,3 +12,3 @@

*
* @param {NodeLike|Position|Point|null} [value]
* @param {Node|NodeLike|Position|Point|null} [value]
* @returns {string}

@@ -14,0 +15,0 @@ */

{
"name": "unist-util-stringify-position",
"version": "3.0.1",
"version": "3.0.2",
"description": "unist utility to serialize a node, position, or point as a human readable location",

@@ -40,2 +40,3 @@ "license": "MIT",

"devDependencies": {
"@types/mdast": "^3.0.0",
"@types/tape": "^4.0.0",

@@ -42,0 +43,0 @@ "c8": "^7.0.0",

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