vue-docgen-api
Advanced tools
Comparing version 4.46.1 to 4.47.0
@@ -177,21 +177,21 @@ "use strict"; | ||
} | ||
var firesTags = jsDocTags.filter(function (tag) { return tag.title === 'fires'; })[0]; | ||
if (firesTags) { | ||
var eventName_1 = firesTags.content; | ||
var eventDescriptor = documentation.getEventDescriptor(eventName_1); | ||
var currentBlock = {}; | ||
var foundEventDesciptor = void 0; | ||
var firesTags = jsDocTags.filter(function (tag) { return tag.title === 'fires'; }); | ||
firesTags.forEach(function (tag) { | ||
var eventName = tag.content; | ||
var eventDescriptor = documentation.getEventDescriptor(eventName); | ||
var currentBlock; | ||
var foundEventDescriptor; | ||
var commentIndex = 1; | ||
while (currentBlock && !foundEventDesciptor) { | ||
do { | ||
currentBlock = getCommentBlockAndTags(commentedMethod, { commentIndex: ++commentIndex }); | ||
if (currentBlock && | ||
currentBlock.tags && | ||
currentBlock.tags.some(function (tag) { return tag.title === 'event' && tag.content === eventName_1; })) { | ||
foundEventDesciptor = currentBlock; | ||
currentBlock.tags.some(function (tag) { return tag.title === 'event' && tag.content === eventName; })) { | ||
foundEventDescriptor = currentBlock; | ||
} | ||
} while (currentBlock && !foundEventDescriptor); | ||
if (foundEventDescriptor) { | ||
setEventDescriptor(eventDescriptor, foundEventDescriptor); | ||
} | ||
if (foundEventDesciptor) { | ||
setEventDescriptor(eventDescriptor, foundEventDesciptor); | ||
} | ||
} | ||
}); | ||
}); | ||
@@ -198,0 +198,0 @@ } |
{ | ||
"name": "vue-docgen-api", | ||
"version": "4.46.1", | ||
"version": "4.47.0", | ||
"description": "Toolbox to extract information from Vue component files for documentation generation purposes.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://vue-styleguidist.github.io", |
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