Socket
Socket
Sign inDemoInstall

vue-docgen-api

Package Overview
Dependencies
92
Maintainers
3
Versions
269
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.43.2 to 4.43.3

32

dist/script-handlers/propHandler.js

@@ -108,3 +108,3 @@ "use strict";

return [4 /*yield*/, Promise.all(objPropFiltered.map(function (prop) { return __awaiter(_this, void 0, void 0, function () {
var propNode, docBlock, jsDoc, jsDocTags, propertyName, isPropertyModel, propName, propDescriptor, propValuePath, propPropertiesPath, litteralType, propPropertiesPath;
var propNode, docBlock, jsDoc, jsDocTags, propertyName, isPropertyModel, propName, propDescriptor, propValuePath, propPropertiesPath, literalType, propValuePathExpression, propPropertiesPath;
return __generator(this, function (_a) {

@@ -147,7 +147,7 @@ switch (_a.label) {

.filter(function (p) { return bt.isObjectProperty(p.node) || bt.isObjectMethod(p.node); });
litteralType = describeType(propPropertiesPath, propDescriptor);
literalType = describeType(propPropertiesPath, propDescriptor);
// required
describeRequired(propPropertiesPath, propDescriptor);
// default
describeDefault(propPropertiesPath, propDescriptor, litteralType || '');
describeDefault(propPropertiesPath, propDescriptor, literalType || '');
// validator => values

@@ -161,11 +161,19 @@ return [4 /*yield*/, describeValues(propPropertiesPath, propDescriptor, ast, opt)];

if (bt.isTSAsExpression(propValuePath.node)) {
propPropertiesPath = propValuePath
.get('expression', 'properties')
.filter(function (p) { return bt.isObjectProperty(p.node); });
// type and values
describeTypeAndValuesFromPath(propValuePath, propDescriptor);
// required
describeRequired(propPropertiesPath, propDescriptor);
// default
describeDefault(propPropertiesPath, propDescriptor, (propDescriptor.type && propDescriptor.type.name) || '');
propValuePathExpression = propValuePath.get('expression');
if (bt.isObjectExpression(propValuePathExpression.node)) {
propPropertiesPath = propValuePathExpression
.get('properties')
.filter(function (p) {
return bt.isObjectProperty(p.node);
});
// type and values
describeTypeAndValuesFromPath(propValuePath, propDescriptor);
// required
describeRequired(propPropertiesPath, propDescriptor);
// default
describeDefault(propPropertiesPath, propDescriptor, (propDescriptor.type && propDescriptor.type.name) || '');
}
else if (bt.isIdentifier(propValuePathExpression.node)) {
describeTypeAndValuesFromPath(propValuePath, propDescriptor);
}
}

@@ -172,0 +180,0 @@ else {

{
"name": "vue-docgen-api",
"version": "4.43.2",
"version": "4.43.3",
"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.43.2"
"vue-inbrowser-compiler-utils": "^4.43.3"
},

@@ -55,3 +55,3 @@ "devDependencies": {

},
"gitHead": "6feba990a6093adf2ad8c82d29863fbde2b55ecb"
"gitHead": "1735ff875b3c29284efa1fb8ddc0ba0758bf2c6a"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc