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

rehype-pretty-code

Package Overview
Dependencies
Maintainers
2
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rehype-pretty-code - npm Package Compare versions

Comparing version 0.13.1 to 0.13.2

2

dist/index.d.ts

@@ -38,2 +38,2 @@ import { Element, Properties, Text, Root } from 'hast';

export { type CharsElement, type LineElement, type Options, type Theme, rehypePrettyCode as default };
export { type CharsElement, type LineElement, type Options, type Theme, rehypePrettyCode as default, rehypePrettyCode };

@@ -471,2 +471,3 @@ import { getHighlighter } from 'shiki';

var hastParser = unified().use(rehypeParse, { fragment: true });
var src_default = rehypePrettyCode;
function rehypePrettyCode(options = {}) {

@@ -625,3 +626,3 @@ const {

if (meta) {
const matches = meta.matchAll(/\{(.*?)\}/g);
const matches = meta.matchAll(/\B\{(.*?)\}\B/g);
for (const match of matches) {

@@ -740,2 +741,2 @@ if (match[1]) {

export { rehypePrettyCode as default };
export { src_default as default, rehypePrettyCode };
{
"name": "rehype-pretty-code",
"version": "0.13.1",
"version": "0.13.2",
"description": "Beautiful code for your MD/MDX docs.",

@@ -9,2 +9,3 @@ "homepage": "https://rehype-pretty.pages.dev",

"module": "./dist/index.js",
"source": "./src/index.ts",
"types": "./dist/index.d.ts",

@@ -14,3 +15,4 @@ "exports": {

"types": "./dist/index.d.ts",
"import": "./dist/index.js"
"import": "./dist/index.js",
"default": "./dist/index.js"
},

@@ -21,19 +23,6 @@ "./package.json": "./package.json"

"dist",
"package.json"
"package.json",
"README.md",
"LICENSE"
],
"scripts": {
"build": "tsup --config=tsup.config.ts",
"test": "vitest --run",
"format": "biome format . --write",
"lint": "biome check --apply .",
"typecheck": "tsc --project tsconfig.json --noEmit",
"playground": "bun run workspace word-highlighter-playground dev",
"playground-website": "bun run workspace website dev",
"prepare": "husky install",
"workspace": "bun ./scripts/workspace.ts",
"release": "bumpp package.json --commit --push --tag",
"prebuild": "rm -rf dist",
"prepublishOnly": "NODE_ENV='production' bun run build",
"check-package": "bunx publint@latest --strict && bunx attw --pack --ignore-rules cjs-resolves-to-esm"
},
"dependencies": {

@@ -48,23 +37,18 @@ "@types/hast": "^3.0.4",

"devDependencies": {
"@arethetypeswrong/cli": "^0.15.2",
"@biomejs/biome": "^1.6.3",
"@shikijs/transformers": "^1.2.1",
"@types/bun": "^1.0.11",
"@types/node": "^20.11.30",
"bumpp": "^9.4.0",
"bun": "^1.0.35",
"hast-util-to-html": "^9.0.0",
"husky": "^9.0.11",
"@arethetypeswrong/cli": "^0.15.3",
"@shikijs/transformers": "^1.5.1",
"@types/node": "^20.12.11",
"hast-util-to-html": "^9.0.1",
"mdast-util-to-hast": "^13.1.0",
"prettier": "^3.2.5",
"remark": "^15.0.1",
"shiki": "^1.2.1",
"shiki": "^1.5.1",
"tsup": "^8.0.2",
"tsx": "^4.7.1",
"typescript": "^5.4.3",
"vite": "^5.2.6",
"vitest": "^1.4.0"
"tsx": "^4.10.2",
"typescript": "^5.4.5",
"vite": "^5.2.11",
"vitest": "^1.6.0"
},
"peerDependencies": {
"shiki": "^1.0.0"
"shiki": "^1.3.0"
},

@@ -74,3 +58,12 @@ "engines": {

},
"repository": "github:rehype-pretty/rehype-pretty-code",
"publishConfig": {
"access": "public",
"provenance": true
},
"sideEffects": false,
"repository": {
"type": "git",
"url": "git+https://github.com/rehype-pretty/rehype-pretty-code.git",
"directory": "packages/core"
},
"browserslist": [

@@ -80,3 +73,11 @@ "node 18"

"author": "https://github.com/atomiks",
"license": "MIT"
}
"license": "MIT",
"scripts": {
"build": "tsup --config=tsup.config.ts",
"test": "vitest --run",
"typecheck": "tsc --project tsconfig.json --noEmit",
"clean": "rm -rf dist",
"prebuild": "rm -rf dist",
"check-package": "pnpm dlx publint@latest --strict && attw --pack --ignore-rules cjs-resolves-to-esm"
}
}
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