Comparing version 0.0.4 to 0.0.5
@@ -96,3 +96,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
}, | ||
content: { | ||
text: { | ||
type: String, | ||
@@ -103,3 +103,3 @@ required: true | ||
render: function render(createElement, context) { | ||
return createElement(context.props.tag, context.props.content.split('\n').reduce(function (accumulator, string) { | ||
return createElement(context.props.tag, context.props.text.split('\n').reduce(function (accumulator, string) { | ||
if (!Array.isArray(accumulator)) { | ||
@@ -106,0 +106,0 @@ return [accumulator, createElement('br'), string]; |
{ | ||
"name": "vue-nl2br", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "A vue component that turns new lines into line breaks.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/vue-nl2br.js", |
Sorry, the diff of this file is not supported yet
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
120785