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

ink-highlight

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ink-highlight - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

jest.config.js

2

lib/index.js

@@ -1,1 +0,1 @@

"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var r=e(require("react")),t=e(require("prop-types")),i=require("ink"),u=require("cli-highlight");const n=({code:e,language:t})=>{const n=u.highlight(e,{language:t});return r.createElement(i.Box,null,n)};n.propTypes={code:t.string.isRequired,language:t.string},n.defaultProps={language:void 0},exports.Highlight=n;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("./components/Highlight"),e=require("./components/HighlightOptionsContext"),i=require("./components/HighlightThemeContext");exports.Highlight=t.Highlight,exports.HighlightOptionsContext=e.HighlightOptionsContext,exports.HighlightOptions=e.HighlightOptions,exports.HighlightThemeContext=i.HighlightThemeContext,exports.default=t.Highlight;
{
"name": "ink-highlight",
"version": "0.1.0",
"version": "0.2.0",
"main": "lib/index.js",

@@ -38,2 +38,3 @@ "types": "lib/index.d.ts",

"demo": "ts-node -P demo/tsconfig.json demo/main",
"test": "jest",
"build": "rollup -c",

@@ -52,3 +53,6 @@ "lint": "eslint -c .eslintrc.json --ext ts,tsx src",

"devDependencies": {
"@rollup/plugin-typescript": "^4.0.0",
"@rollup/plugin-node-resolve": "^7.1.1",
"@rollup/plugin-sucrase": "^3.0.0",
"@sucrase/jest-plugin": "^2.0.0",
"@types/jest": "^25.1.4",
"@types/prop-types": "^15.7.3",

@@ -62,2 +66,3 @@ "@types/react": "^16.9.23",

"eslint-plugin-import": "^2.20.1",
"eslint-plugin-jest": "^23.8.2",
"eslint-plugin-jsx-a11y": "^6.2.3",

@@ -67,2 +72,5 @@ "eslint-plugin-prettier": "^3.1.2",

"ink": "^2.7.1",
"ink-testing-library": "^1.0.3",
"jest": "^25.1.0",
"jest-snapshot-serializer-raw": "^1.1.0",
"prettier": "^1.19.1",

@@ -72,2 +80,3 @@ "react": "^16.13.0",

"rollup-plugin-terser": "^5.2.0",
"ts-jest": "^25.2.1",
"ts-node": "^8.6.2",

@@ -74,0 +83,0 @@ "tslib": "*",

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