vue-prism-component
Advanced tools
Comparing version
@@ -30,5 +30,4 @@ 'use strict'; | ||
var code = | ||
ctx.props.code || (ctx.children && ctx.children.length > 0) | ||
? ctx.children[0].text | ||
: ''; | ||
ctx.props.code || | ||
(ctx.children && ctx.children.length > 0 ? ctx.children[0].text : ''); | ||
var inline = ctx.props.inline; | ||
@@ -35,0 +34,0 @@ var language = ctx.props.language; |
@@ -34,5 +34,4 @@ (function (global, factory) { | ||
var code = | ||
ctx.props.code || (ctx.children && ctx.children.length > 0) | ||
? ctx.children[0].text | ||
: ''; | ||
ctx.props.code || | ||
(ctx.children && ctx.children.length > 0 ? ctx.children[0].text : ''); | ||
var inline = ctx.props.inline; | ||
@@ -39,0 +38,0 @@ var language = ctx.props.language; |
@@ -1,2 +0,2 @@ | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.PrismComponent=n()}(this,function(){"use strict";function e(e){for(var n=arguments,t=1;t<arguments.length;t++)for(var r in arguments[t])e[r]=n[t][r];return e}return{functional:!0,props:{code:{type:String},inline:{type:Boolean,default:!1},language:{type:String,default:"markup"}},render:function(n,t){var r=t.props.code||t.children&&t.children.length>0?t.children[0].text:"",o=t.props.inline,a=t.props.language,i=Prism.languages[a],s="language-"+a;return o?n("code",e({},t.data,{class:[t.data.class,s],domProps:e({},t.data.domProps,{innerHTML:Prism.highlight(r,i)})})):n("pre",e({},t.data,{class:[t.data.class,s]}),[n("code",{class:s,domProps:{innerHTML:Prism.highlight(r,i)}})])}}}); | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.PrismComponent=n()}(this,function(){"use strict";function e(e){for(var n=arguments,t=1;t<arguments.length;t++)for(var r in arguments[t])e[r]=n[t][r];return e}return{functional:!0,props:{code:{type:String},inline:{type:Boolean,default:!1},language:{type:String,default:"markup"}},render:function(n,t){var r=t.props.code||(t.children&&t.children.length>0?t.children[0].text:""),o=t.props.inline,a=t.props.language,i=Prism.languages[a],s="language-"+a;return o?n("code",e({},t.data,{class:[t.data.class,s],domProps:e({},t.data.domProps,{innerHTML:Prism.highlight(r,i)})})):n("pre",e({},t.data,{class:[t.data.class,s]}),[n("code",{class:s,domProps:{innerHTML:Prism.highlight(r,i)}})])}}}); | ||
//# sourceMappingURL=vue-prism-component.min.js.map |
{ | ||
"name": "vue-prism-component", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "vue component for prism.js", | ||
@@ -5,0 +5,0 @@ "repository": { |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
9394
-0.19%140
-1.41%1
Infinity%