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

codice

Package Overview
Dependencies
Maintainers
0
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codice - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

dist/editor-client-CkXUIfOF.js

7

dist/index.js
import { jsxs, jsx } from 'react/jsx-runtime';
import { E as Editor$1 } from './editor-client-DkROErHx.js';
export { C as Code } from './editor-client-DkROErHx.js';
import { E as Editor$1 } from './editor-client-CkXUIfOF.js';
export { C as Code } from './editor-client-CkXUIfOF.js';

@@ -54,2 +54,5 @@ const R = '[data-codice-editor]';

}
${R}[data-codice-editor-line-numbers="true"] textarea {
padding-left: 51px;
}
`;

@@ -56,0 +59,0 @@

{
"name": "codice",
"version": "0.5.0",
"version": "0.5.1",
"type": "module",

@@ -11,2 +11,10 @@ "exports": "./dist/index.js",

],
"scripts": {
"prepare": "bunchee",
"build": "bunchee",
"test": "vitest",
"dev": "bunchee --watch",
"site": "next dev site",
"prepublishOnly": "rm -rf dist && pnpm run build"
},
"peerDependencies": {

@@ -24,8 +32,3 @@ "react": "^17.0.0 || ^18.0.0 || ^19.0.0"

},
"scripts": {
"build": "bunchee",
"test": "vitest",
"dev": "bunchee --watch",
"site": "next dev site"
}
}
"packageManager": "pnpm@9.15.4"
}

@@ -31,6 +31,7 @@ # Codice

- `title` (optional): A string representing the title of the editor.
- `value` (optional): A string representing the initial code value of the editor.
- `onChange` (optional): A function called when the code in the editor changes. The function will receive the updated code as its argument.
- `title` (optional): A string representing the title of the editor.
- `controls` (optional): A boolean value indicating whether to display the controls for the editor.
- `lineNumbers` (optional): A boolean value indicating whether to display line numbers in the editor.
- `highlight` (optional): A function used to provide syntax highlighting for the code. It should accept the code as an argument and return the highlighted code as an HTML string. You can use any syntax highlighting library (e.g., [Prism](https://prismjs.com/)) to implement this functionality.

@@ -53,4 +54,5 @@

- `title` (optional): A string representing the title of the code block.
- `controls` (optional): A boolean value indicating whether to display the controls for the code block.
- `title` (optional): A string representing the title of the code block.
- `lineNumbers` (optional): A boolean value indicating whether to display line numbers in the code block.
- `preformatted` (optional): A boolean value indicating whether the code should be displayed as preformatted text. If `true`, the code will be displayed in a `pre` and a `code` element. If `false`, the code will be displayed in a `div` element.

@@ -57,0 +59,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