swagger-to-flowtype
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -68,3 +68,4 @@ #! /usr/bin/env node | ||
Object.keys(definitions).forEach(function (k) { | ||
var headLine = _this.withExport ? "export type " + k + " = " : "type " + k + " = "; | ||
var def = FlowTypeGenerator.prepareDefinition(k); | ||
var headLine = _this.withExport ? "export type " + def + " = " : "type " + def + " = "; | ||
_this.appendResult(headLine); | ||
@@ -155,2 +156,7 @@ _this.determineTypes(k, definitions, true); | ||
} | ||
}, { | ||
key: "prepareDefinition", | ||
value: function prepareDefinition(def) { | ||
return def.replace("[", "").replace("]", ""); | ||
} | ||
}]); | ||
@@ -157,0 +163,0 @@ |
{ | ||
"name": "swagger-to-flowtype", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Command line tool for generating flow types from swagger", | ||
@@ -12,3 +12,4 @@ "main": "./dist/index.js", | ||
"build": "babel ./src -d ./dist", | ||
"prepublish": "npm run build" | ||
"prepublish": "npm run build", | ||
"flow": "flow" | ||
}, | ||
@@ -15,0 +16,0 @@ "author": "yayoc <hi@yayoc.com> (http://yayoc.com)", |
Sorry, the diff of this file is not supported yet
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
11
169
105885