@financial-times/o-syntax-highlight
Advanced tools
Comparing version 1.6.0 to 1.6.1
@@ -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", |
27929
28
244