Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

leaf-converter

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leaf-converter - npm Package Compare versions

Comparing version 1.6.0 to 1.6.1

5

CHANGELOG.md

@@ -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)

13

lib/struct-to-schema.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc