🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

c063

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

c063 - npm Package Compare versions

Comparing version
1.6.0
to
1.6.1
+1
-1
dist/components/CodeBlock.js

@@ -15,3 +15,3 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";

export const CodeBlock = ({ tokenLines, showLineNumbers = true, lineNumberStyle, autoWrap, theme, ...rest }) => {
return (_jsx("pre", { ...rest, style: { margin: 0, padding: 0, overflowX: "auto" }, children: _jsx("table", { style: { borderCollapse: "collapse", width: "100%" }, children: _jsx("tbody", { children: tokenLines.map((line, index) => (_jsxs("tr", { children: [showLineNumbers && (_jsx("td", { style: {
return (_jsx("pre", { ...rest, style: { margin: 0, padding: 0, overflowX: "auto" }, children: _jsx("table", { style: { borderCollapse: "collapse", width: "100%" }, children: _jsx("tbody", { children: tokenLines.map((line, index) => (_jsxs("tr", { style: { verticalAlign: "top" }, children: [showLineNumbers && (_jsx("td", { style: {
paddingInline: "0.5rem",

@@ -18,0 +18,0 @@ textAlign: "right",

{
"$schema": "https://json.schemastore.org/package.json",
"name": "c063",
"version": "1.6.0",
"version": "1.6.1",
"description": "A React component for displaying code snippets with syntax highlighting.",

@@ -6,0 +6,0 @@ "main": "dist/index.js",

@@ -28,3 +28,3 @@ import { CodeBlockProps } from "../types/index";

{tokenLines.map((line, index) => (
<tr key={index}>
<tr key={index} style={{ verticalAlign: "top" }}>
{showLineNumbers && (

@@ -31,0 +31,0 @@ <td