vue-docgen-api
Advanced tools
Comparing version 4.42.0 to 4.43.0
@@ -64,4 +64,11 @@ "use strict"; | ||
}); | ||
var declarators = globalVariableDeclarations.reduce(function (a, declPath) { return a.concat(declPath.declarations); }, []); | ||
var nodeDeclaratorArray = declarators.filter(function (d) { return bt.isIdentifier(d.id) && d.id.name === nameConstId; }); | ||
var globalVariableExports = body | ||
.filter(function (node) { | ||
return bt.isExportNamedDeclaration(node) && bt.isVariableDeclaration(node.declaration); | ||
}) | ||
.map(function (node) { return node.declaration; }); | ||
var declarations = globalVariableDeclarations | ||
.concat(globalVariableExports) | ||
.reduce(function (a, declPath) { return a.concat(declPath.declarations); }, []); | ||
var nodeDeclaratorArray = declarations.filter(function (d) { return bt.isIdentifier(d.id) && d.id.name === nameConstId; }); | ||
var nodeDeclarator = nodeDeclaratorArray.length ? nodeDeclaratorArray[0] : undefined; | ||
@@ -68,0 +75,0 @@ return nodeDeclarator && nodeDeclarator.init && bt.isStringLiteral(nodeDeclarator.init) |
{ | ||
"name": "vue-docgen-api", | ||
"version": "4.42.0", | ||
"version": "4.43.0", | ||
"description": "Toolbox to extract information from Vue component files for documentation generation purposes.", | ||
@@ -42,3 +42,3 @@ "homepage": "https://vue-styleguidist.github.io", | ||
"ts-map": "^1.0.3", | ||
"vue-inbrowser-compiler-utils": "^4.42.0" | ||
"vue-inbrowser-compiler-utils": "^4.43.0" | ||
}, | ||
@@ -55,3 +55,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "8ba9d774ec311350937ba1d33d1aa5580c13eb2a" | ||
"gitHead": "8cc3f87b40979e539f1b44bcf7e2bd268b6548ae" | ||
} |
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
307777
6094