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

vue-code-highlight

Package Overview
Dependencies
Maintainers
2
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-code-highlight - npm Package Compare versions

Comparing version 0.7.6 to 0.7.8

8

dist/vue-code-highlight.esm.js

@@ -788,5 +788,7 @@ /* eslint-disable */

beforeUpdate: function beforeUpdate() {
var newText = this.$slots.default[0].text.replace(/^[\r\n\s]*|[\r\n\s]*$/g, '');
this.$el.querySelector('code').textContent = newText;
Prism.highlightAllUnder(this.$refs.codeBlock);
if(this.$slots.default[0].text){
var newText = this.$slots.default[0].text.replace(/^[\r\n\s]*|[\r\n\s]*$/g, '');
this.$el.querySelector('code').textContent = newText;
Prism.highlightAllUnder(this.$refs.codeBlock);
}
},

@@ -793,0 +795,0 @@ };

@@ -791,5 +791,7 @@ var vueCodeHighlight = (function (exports) {

beforeUpdate: function beforeUpdate() {
var newText = this.$slots.default[0].text.replace(/^[\r\n\s]*|[\r\n\s]*$/g, '');
this.$el.querySelector('code').textContent = newText;
Prism.highlightAllUnder(this.$refs.codeBlock);
if(this.$slots.default[0].text){
var newText = this.$slots.default[0].text.replace(/^[\r\n\s]*|[\r\n\s]*$/g, '');
this.$el.querySelector('code').textContent = newText;
Prism.highlightAllUnder(this.$refs.codeBlock);
}
},

@@ -796,0 +798,0 @@ };

{
"name": "vue-code-highlight",
"version": "0.7.6",
"version": "0.7.8",
"author": "Jan Bílek",

@@ -5,0 +5,0 @@ "email": "honza@elision.design",

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