leaf-converter
Advanced tools
Comparing version 1.6.0 to 1.6.1
@@ -5,2 +5,7 @@ # Change Log | ||
<a name="1.6.1"></a> | ||
## [1.6.1](https://github.com/forsigner/leaf-converter/compare/v1.6.0...v1.6.1) (2018-01-17) | ||
<a name="1.6.0"></a> | ||
@@ -7,0 +12,0 @@ # [1.6.0](https://github.com/forsigner/leaf-converter/compare/v1.5.0...v1.6.0) (2018-01-17) |
@@ -30,16 +30,7 @@ 'use strict'; | ||
type: value, | ||
default: getDefault(value), | ||
description: 'Description for this field' | ||
default: '', | ||
description: '' | ||
}; | ||
} | ||
function getDefault(value) { | ||
var maps = { | ||
string: 'default value', | ||
number: 100, | ||
boolean: true | ||
}; | ||
return maps[value] ? maps[value] : maps.string; | ||
} | ||
function structToSchema(data) { | ||
@@ -46,0 +37,0 @@ var _iteratorNormalCompletion = true; |
{ | ||
"name": "leaf-converter", | ||
"description": "", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"main": "lib/index.js", | ||
@@ -6,0 +6,0 @@ "author": { |
31620
803