Socket
Socket
Sign inDemoInstall

preact-highlight

Package Overview
Dependencies
2
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0-0 to 1.0.0

5

CHANGELOG.md

@@ -5,2 +5,7 @@ # Change Log

<a name="1.0.0"></a>
# [1.0.0](https://github.com/jasonChen1982/preact-highlight/compare/v0.1.0-0...v1.0.0) (2017-06-21)
<a name="0.1.0-0"></a>

@@ -7,0 +12,0 @@ # 0.1.0-0 (2017-06-21)

2

package.json
{
"name": "preact-highlight",
"version": "0.1.0-0",
"version": "1.0.0",
"description": "a syntax highlight component for preact",

@@ -5,0 +5,0 @@ "main": "./build/index.js",

@@ -15,3 +15,3 @@ # preact-highlight

render() {
return <HighLight code={demo}/>;
return <HighLight className="cmp-high-light" code={demo}/>;
}

@@ -25,1 +25,6 @@ }

`HighLight` component `code` property had supported `string` `json|object` `function`
| property | type | description |
| ----------------- | --------------------------------------- | ---------------------------------------- |
| `className` | `string` | css style classname |
| `code` | `string` or `json|object` or `function` | need highlight code snippet |
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc