@esydoc/doclet-parser
Advanced tools
Comparing version 2.0.7-beta.14 to 2.0.7-beta.15
@@ -445,3 +445,3 @@ /*! | ||
var type2Value = function (node, v) { | ||
var _a = node || {}, type = _a.type, description = _a.description, summary = _a.summary, def = _a.defaultValue; | ||
var _a = node || {}, type = _a.type, description = _a.description, summary = _a.summary, def = _a.defaultValue, name = _a.name; | ||
// 自定义默认值 | ||
@@ -463,5 +463,5 @@ if (def !== undefined) | ||
case 'number': | ||
return 0; | ||
return 1; | ||
case 'string': | ||
return ''; | ||
return name || 'foo'; | ||
case 'function': | ||
@@ -468,0 +468,0 @@ return function () { }; |
{ | ||
"name": "@esydoc/doclet-parser", | ||
"version": "2.0.7-beta.14", | ||
"version": "2.0.7-beta.15", | ||
"description": "The parser for doclet that it resolved by jsdoc", | ||
@@ -28,5 +28,5 @@ "author": "Alex <857276958@qq.com>", | ||
"dependencies": { | ||
"@esydoc/share": "^2.0.7-beta.14" | ||
"@esydoc/share": "^2.0.7-beta.15" | ||
}, | ||
"gitHead": "a0fb29199cbcdb9e98de03900fd9426d2f50bde5" | ||
"gitHead": "4ff8f864d5049a7efa0f0cf6881359ad2cc19b84" | ||
} |
38194
Updated@esydoc/share@^2.0.7-beta.15