postcss-style-docs
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -25,3 +25,8 @@ "use strict"; | ||
function getDocsMessage(messages) { | ||
return messages.find(message => message.plugin === exports.pluginName); | ||
const message = messages.find(message => message.plugin === exports.pluginName); | ||
return message || { | ||
commentMap, | ||
type: 'documentation', | ||
plugin: 'postcss-style-docs' | ||
}; | ||
} | ||
@@ -28,0 +33,0 @@ exports.getDocsMessage = getDocsMessage; |
@@ -22,3 +22,8 @@ /** Clean comments text */ | ||
export function getDocsMessage(messages) { | ||
return messages.find(message => message.plugin === pluginName); | ||
const message = messages.find(message => message.plugin === pluginName); | ||
return message || { | ||
commentMap, | ||
type: 'documentation', | ||
plugin: 'postcss-style-docs' | ||
}; | ||
} | ||
@@ -25,0 +30,0 @@ /** |
{ | ||
"name": "postcss-style-docs", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "PostCSS plugin for dynamically adding documentation to styles", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
13092
243