@financial-times/o-syntax-highlight
Advanced tools
Comparing version 3.0.8 to 4.0.0-0
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
32487
7
38
0
Yes
263
2
+ Added@financial-times/o-brand@4.0.0-beta.1(transitive)
+ Added@financial-times/o-colors@6.0.0-beta.0(transitive)
- Removed@financial-times/o-colors@^5.0.0
- Removed@financial-times/o-brand@3.3.0(transitive)
- Removed@financial-times/o-colors@5.4.1(transitive)