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

unist-util-inspect

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unist-util-inspect - npm Package Compare versions

Comparing version 7.0.2 to 8.0.0

lib/color.default.d.ts

8

lib/index.d.ts

@@ -21,3 +21,3 @@ /**

* @param {Options | null | undefined} [options]
* Configuration.
* Configuration (optional).
* @returns {string}

@@ -36,3 +36,3 @@ * Pretty printed `tree`.

* @param {Options | null | undefined} [options]
* Configuration.
* Configuration (optional).
* @returns {string}

@@ -51,3 +51,3 @@ * Pretty printed `tree`.

/**
* Whether to include positional information.
* Whether to include positional information (default: `true`).
*/

@@ -61,5 +61,5 @@ showPositions?: boolean | null | undefined

/**
* Whether to include positional information.
* Whether to include positional information.
*/
showPositions: boolean
}
/**
* @typedef {import('unist').Node} Node
*
*/
/**
* @typedef Options
* Configuration.
* @property {boolean | null | undefined} [showPositions=true]
* Whether to include positional information.
* Whether to include positional information (default: `true`).
*

@@ -15,3 +17,3 @@ * @typedef State

import {color} from './color.js'
import {color} from 'unist-util-inspect/do-not-use-conditional-color'

@@ -24,3 +26,3 @@ /**

* @param options
* Configuration.
* Configuration (optional).
* @returns

@@ -65,3 +67,3 @@ * Pretty printed `tree`.

* @param {Options | null | undefined} [options]
* Configuration.
* Configuration (optional).
* @returns {string}

@@ -290,3 +292,3 @@ * Pretty printed `tree`.

* @param {boolean | undefined} [ignoreFirst=false]
* Whether to ignore indenting the first line.
* Whether to ignore indenting the first line (default: `false`).
* @returns {string}

@@ -311,3 +313,3 @@ * Indented `value`.

*
* @param {unknown | null | undefined} [value]
* @param {unknown} [value]
* Position to serialize.

@@ -314,0 +316,0 @@ * @returns {string}

{
"name": "unist-util-inspect",
"version": "7.0.2",
"version": "8.0.0",
"description": "unist utility to inspect nodes",

@@ -28,10 +28,9 @@ "license": "MIT",

"type": "module",
"main": "index.js",
"browser": {
"./lib/color.js": "./lib/color-browser.js"
"exports": {
".": "./index.js",
"./do-not-use-conditional-color": {
"node": "./lib/color.node.js",
"default": "./lib/color.default.js"
}
},
"react-native": {
"./lib/color.js": "./lib/color-browser.js"
},
"types": "index.d.ts",
"files": [

@@ -43,7 +42,8 @@ "lib/",

"dependencies": {
"@types/unist": "^2.0.0"
"@types/unist": "^3.0.0"
},
"devDependencies": {
"@types/node": "^18.0.0",
"c8": "^7.0.0",
"@types/nlcst": "^2.0.0",
"@types/node": "^20.0.0",
"c8": "^8.0.0",
"chalk": "^5.0.0",

@@ -57,7 +57,7 @@ "hastscript": "^7.0.0",

"type-coverage": "^2.0.0",
"typescript": "^4.0.0",
"unist-builder": "^3.0.0",
"xast-util-from-xml": "^2.0.0",
"typescript": "^5.0.0",
"unist-builder": "^4.0.0",
"xast-util-from-xml": "^3.0.0",
"xastscript": "^3.0.0",
"xo": "^0.53.0"
"xo": "^0.54.0"
},

@@ -69,19 +69,16 @@ "scripts": {

"test-api": "node --conditions development test.js",
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
"test": "npm run build && npm run format && npm run test-coverage"
},
"prettier": {
"tabWidth": 2,
"useTabs": false,
"singleQuote": true,
"bracketSpacing": false,
"semi": false,
"trailingComma": "none"
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "none",
"useTabs": false
},
"xo": {
"prettier": true
},
"remarkConfig": {
"plugins": [
"preset-wooorm"
"remark-preset-wooorm"
]

@@ -92,4 +89,8 @@ },

"detail": true,
"ignoreCatch": true,
"strict": true
},
"xo": {
"prettier": true
}
}

@@ -42,3 +42,3 @@ # unist-util-inspect

This package is [ESM only][esm].
In Node.js (version 14.14+ and 16.0+), install with [npm][]:
In Node.js (version 16+), install with [npm][]:

@@ -52,3 +52,3 @@ ```sh

```js
import {inspect} from 'https://esm.sh/unist-util-inspect@7'
import {inspect} from 'https://esm.sh/unist-util-inspect@8'
```

@@ -60,3 +60,3 @@

<script type="module">
import {inspect} from 'https://esm.sh/unist-util-inspect@7?bundle'
import {inspect} from 'https://esm.sh/unist-util-inspect@8?bundle'
</script>

@@ -143,7 +143,10 @@ ```

Projects maintained by the unified collective are compatible with all maintained
Projects maintained by the unified collective are compatible with maintained
versions of Node.js.
As of now, that is Node.js 14.14+ and 16.0+.
Our projects sometimes work with older versions, but this is not guaranteed.
When we cut a new major release, we drop support for unmaintained versions of
Node.
This means we try to keep the current release line, `unist-util-inspect@^8`,
compatible with Node.js 16.
## Contribute

@@ -177,5 +180,5 @@

[size-badge]: https://img.shields.io/bundlephobia/minzip/unist-util-inspect.svg
[size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=unist-util-inspect
[size]: https://bundlephobia.com/result?p=unist-util-inspect
[size]: https://bundlejs.com/?q=unist-util-inspect

@@ -182,0 +185,0 @@ [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg

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