vue-highlightjs
Advanced tools
Comparing version 1.0.2 to 1.1.0
@@ -10,4 +10,4 @@ var hljs = require('highlight.js') | ||
// on first bind, highlight all targets | ||
let targets = el.querySelectorAll('code') | ||
targets.forEach((target) => { | ||
var targets = el.querySelectorAll('code') | ||
targets.forEach(function(target) { | ||
// if a value is directly assigned to the directive, use this | ||
@@ -23,4 +23,4 @@ // instead of the element content. | ||
// after an update, re-fill the content and then highlight | ||
let targets = el.querySelectorAll('code') | ||
targets.forEach((target) => { | ||
var targets = el.querySelectorAll('code') | ||
targets.forEach(function(target) { | ||
if (binding.value) { | ||
@@ -27,0 +27,0 @@ target.innerHTML = binding.value |
{ | ||
"name": "vue-highlightjs", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "Syntax highlighting with highlight.js for Vue.js 2.x", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/metachris/vue-highlightjs", |
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
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
2903
6