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

expressive-code

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expressive-code - npm Package Compare versions

Comparing version 0.33.5 to 0.34.0

dist/hast.d.ts

32

package.json
{
"name": "expressive-code",
"version": "0.33.5",
"version": "0.34.0",
"description": "A text marking & annotation engine for presenting source code on the web.",

@@ -14,10 +14,22 @@ "keywords": [],

"type": "module",
"main": "./dist/index.cjs",
"main": "./dist/index.js",
"module": "./dist/index.js",
"exports": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"default": "./dist/index.js"
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./hast": {
"types": "./dist/hast.d.ts",
"default": "./dist/hast.js"
}
},
"types": "./dist/index.d.ts",
"typesVersions": {
"*": {
"hast": [
"dist/hast.d.ts"
]
}
},
"files": [

@@ -27,9 +39,9 @@ "dist"

"dependencies": {
"@expressive-code/core": "^0.33.5",
"@expressive-code/plugin-frames": "^0.33.5",
"@expressive-code/plugin-shiki": "^0.33.5",
"@expressive-code/plugin-text-markers": "^0.33.5"
"@expressive-code/core": "^0.34.0",
"@expressive-code/plugin-frames": "^0.34.0",
"@expressive-code/plugin-shiki": "^0.34.0",
"@expressive-code/plugin-text-markers": "^0.34.0"
},
"scripts": {
"build": "tsup ./src/index.ts --format esm,cjs --dts --sourcemap --clean",
"build": "tsup ./src/index.ts ./src/hast.ts --format esm --dts --sourcemap --clean",
"coverage": "vitest run --coverage",

@@ -36,0 +48,0 @@ "test": "vitest run --reporter verbose",

@@ -34,3 +34,3 @@ # expressive-code [![NPM version](https://img.shields.io/npm/v/expressive-code.svg)](https://www.npmjs.com/package/expressive-code) [![NPM downloads](https://img.shields.io/npm/dm/expressive-code.svg)](https://npmjs.org/package/expressive-code)

import { ExpressiveCode, ExpressiveCodeConfig } from 'expressive-code'
import { toHtml } from 'hast-util-to-html'
import { toHtml } from 'expressive-code/hast'

@@ -37,0 +37,0 @@ const ec = new ExpressiveCode()

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