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
16
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 1.6.0 to 1.6.1

2

browser.js

@@ -8,3 +8,3 @@ "use strict";

var _syntaxHighlight = _interopRequireDefault(require("./dist/js/syntax-highlight.js"));
var _syntaxHighlight = _interopRequireDefault(require("./dist/js/syntax-highlight"));

@@ -11,0 +11,0 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -9,3 +9,3 @@ "use strict";

const throwError = message => {
throw new Error(`*** o-syntax-highlight error:\n${message}\n***`);
throw new Error("*** o-syntax-highlight error:\n".concat(message, "\n***"));
};

@@ -12,0 +12,0 @@

@@ -73,3 +73,3 @@ "use strict";

} else {
(0, _helpers.default)(`In order to highlight a codeblock, the '<code>' requires a specific class to define a language. E.g. class="o-syntax-highlight--html" or class="o-syntax-highlight--js"`);
(0, _helpers.default)("In order to highlight a codeblock, the '<code>' requires a specific class to define a language. E.g. class=\"o-syntax-highlight--html\" or class=\"o-syntax-highlight--js\"");
}

@@ -86,3 +86,3 @@

if (this.opts.language && !_prism.default.languages.hasOwnProperty(this.opts.language)) {
(0, _helpers.default)(`The language ${this.opts.language} is not supported. Please contact Origami if you would like to have it added.`);
(0, _helpers.default)("The language ".concat(this.opts.language, " is not supported. Please contact Origami if you would like to have it added."));
}

@@ -101,3 +101,3 @@ }

} else {
(0, _helpers.default)(`No '<code>' tag found. In order to highlight a codeblock semantically, a '<pre>' tag must wrap a '<code>' tag.`);
(0, _helpers.default)("No '<code>' tag found. In order to highlight a codeblock semantically, a '<pre>' tag must wrap a '<code>' tag.");
}

@@ -104,0 +104,0 @@ });

@@ -6,5 +6,6 @@ {

"dist/",
"index.js",
"browser.js",
"src/",
"main*",
"!src/**/*.js",
"main.scss",
"img",

@@ -20,4 +21,9 @@ "*.json",

],
"keywords": [
"origami",
"component",
"ft"
],
"name": "@financial-times/o-syntax-highlight",
"version": "1.6.0",
"version": "1.6.1",
"description": "syntax highlighter for FT products",

@@ -24,0 +30,0 @@ "homepage": "https://github.com/Financial-Times/o-syntax-highlight",

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