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

@financial-times/o-syntax-highlight

Package Overview
Dependencies
Maintainers
18
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@financial-times/o-syntax-highlight - npm Package Compare versions

Comparing version 3.0.8 to 4.0.0-0

.eslintignore

6

origami.json
{
"description": "A syntax highlighter for Origami-supported documentation that wraps PrismJs",
"keywords": "syntax, highlight",
"origamiType": "module",
"origamiType": "component",
"origamiCategory": "components",
"origamiVersion": 1,
"origamiVersion": "2.0",
"brands": [

@@ -8,0 +6,0 @@ "master",

{
"browser": "browser.js",
"files": [
"svg/",
"dist/",
"browser.js",
"src/",
"!src/**/*.js",
"main.scss",
"img",
"*.json",
"*.js",
"!main.js",
"scss",
"!bower.json",
"!.bower.json"
],
"eslintIgnore": [
"browser.js",
"dist/"
],
"name": "@financial-times/o-syntax-highlight",
"version": "4.0.0-0",
"description": "A syntax highlighter for Origami-supported documentation that wraps PrismJs",
"keywords": [
"origami",
"component",
"ft"
"syntax",
"highlight"
],
"name": "@financial-times/o-syntax-highlight",
"version": "3.0.8",
"description": "syntax highlighter for FT products",
"homepage": "https://github.com/Financial-Times/o-syntax-highlight",
"homepage": "https://registry.origami.ft.com/components/o-syntax-highlight",
"bugs": {
"url": "https://registry.origami.ft.com/components/o-syntax-highlight"
},
"license": "MIT",
"type": "module",
"browser": "main.js",
"scripts": {
"start": "npx serve ./demos/local",
"build": "npm_config_yes=true npx \"origami-build-tools@prerelease\" install && npm_config_yes=true npx \"origami-build-tools@prerelease\" demo"
},
"devDependencies": {
"eslint": "^7.24.0",
"eslint-config-origami-component": "^2.1.1",
"remark": "^13.0.0",
"remark-lint": "^7.0.1",
"remark-preset-lint-origami-component": "prerelease",
"stylelint": "^13.12.0",
"stylelint-config-origami-component": "^1.0.4"
},
"dependencies": {
"@financial-times/o-colors": "^5.0.0",
"prismjs": "^1.14.0"
},
"component": "o-syntax-highlight",
"scripts": {},
"devDependencies": {
"eslint": "^7.1.0",
"eslint-config-origami-component": "^2.0.1",
"origami-ci-tools": "^2.0.0",
"remark": "^12.0.0",
"remark-lint": "^7.0.0",
"remark-preset-lint-origami-component": "^1.1.1",
"stylelint": "^13.5.0",
"stylelint-config-origami-component": "^1.0.2"
"peerDependencies": {
"@financial-times/o-colors": "prerelease"
},
"engines": {
"npm": "^7"
},
"volta": {
"node": "14.16.1",
"npm": "7.10.0"
}
}

@@ -105,3 +105,3 @@ # o-syntax-highlight

```js
import oSyntaxHighlight from 'o-syntax-highlight';
import oSyntaxHighlight from '@financial-times/o-syntax-highlight';
oSyntaxHighlight.init();

@@ -113,3 +113,3 @@ ```

```js
import oSyntaxHighlight from 'o-syntax-highlight';
import oSyntaxHighlight from '@financial-times/o-syntax-highlight';
const highlighter = new oSyntaxHighlight('code to highlight', { language: 'html'});

@@ -116,0 +116,0 @@

import throwError from './helpers';
import prism from 'prism/components/prism-core.js';
import prism from 'prismjs/components/prism-core.js';
// Adds to Prism global object which we remove https://github.com/PrismJS/prism/blob/v1.15.0/prism.js#L6
import 'prism/components/prism-markup.js';
import 'prism/components/prism-css.js';
import 'prism/components/prism-clike.js';
import 'prism/components/prism-javascript.js';
import 'prism/components/prism-bash.js';
import 'prism/components/prism-json.js';
import 'prism/components/prism-scss.js';
import 'prism/components/prism-yaml.js';
import 'prismjs/components/prism-markup.js';
import 'prismjs/components/prism-css.js';
import 'prismjs/components/prism-clike.js';
import 'prismjs/components/prism-javascript.js';
import 'prismjs/components/prism-bash.js';
import 'prismjs/components/prism-json.js';
import 'prismjs/components/prism-scss.js';
import 'prismjs/components/prism-yaml.js';
import diff from './languages/prism-diff.js';

@@ -14,0 +14,0 @@

Sorry, the diff of this file is not supported yet

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