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.2.0 to 0.2.1

lib/components/Highlight.d.ts

3

jest.config.js

@@ -6,5 +6,2 @@ module.exports = {

snapshotSerializers: ['jest-snapshot-serializer-raw'],
transform: {
'.(js|jsx|ts|tsx)': '@sucrase/jest-plugin',
},
};

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

"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;
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),n=e(t),i=e(require("prop-types")),o=require("cli-highlight");const a=t.createContext({}),g=t.createContext(o.DEFAULT_THEME),l=({code:e,...i})=>{const l=t.useContext(g),u=t.useContext(a),r=void 0!==i.language?i.language:u.language,s=void 0!==i.ignoreIllegals?i.ignoreIllegals:u.ignoreIllegals,c=void 0!==i.continuation?i.continuation:u.continuation,d=void 0!==i.languageSubset?i.languageSubset:u.languageSubset;return n.createElement(n.Fragment,null,o.highlight(e,{language:r,ignoreIllegals:s,continuation:c,languageSubset:d,theme:l}))};l.propTypes={code:i.string.isRequired,language:i.string,ignoreIllegals:i.bool,continuation:i.any,languageSubset:i.arrayOf(i.string.isRequired)},l.defaultProps={language:void 0,ignoreIllegals:void 0,continuation:void 0,languageSubset:void 0},exports.Highlight=l,exports.HighlightOptionsContext=a,exports.HighlightThemeContext=g,exports.default=l;
{
"name": "ink-highlight",
"version": "0.2.0",
"version": "0.2.1",
"main": "lib/index.js",

@@ -52,5 +52,3 @@ "types": "lib/index.d.ts",

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

@@ -57,0 +55,0 @@ "@types/prop-types": "^15.7.3",

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