swagger-to-flowtype
Advanced tools
Comparing version 0.0.11 to 0.1.0
@@ -1,2 +0,1 @@ | ||
{"/Users/01011283/dev/src/github.com/yayoc/swagger-to-flowtype/src/index.js": {"path":"/Users/01011283/dev/src/github.com/yayoc/swagger-to-flowtype/src/index.js","statementMap":{"0":{"start":{"line":10,"column":20},"end":{"line":20,"column":1}},"1":{"start":{"line":22,"column":27},"end":{"line":26,"column":1}},"2":{"start":{"line":23,"column":13},"end":{"line":23,"column":35}},"3":{"start":{"line":24,"column":16},"end":{"line":24,"column":29}},"4":{"start":{"line":25,"column":2},"end":{"line":25,"column":31}},"5":{"start":{"line":28,"column":22},"end":{"line":28,"column":68}},"6":{"start":{"line":28,"column":40},"end":{"line":28,"column":68}},"7":{"start":{"line":30,"column":16},"end":{"line":40,"column":1}},"8":{"start":{"line":31,"column":2},"end":{"line":38,"column":3}},"9":{"start":{"line":32,"column":4},"end":{"line":34,"column":5}},"10":{"start":{"line":33,"column":6},"end":{"line":33,"column":65}},"11":{"start":{"line":35,"column":4},"end":{"line":35,"column":56}},"12":{"start":{"line":36,"column":9},"end":{"line":38,"column":3}},"13":{"start":{"line":37,"column":4},"end":{"line":37,"column":56}},"14":{"start":{"line":37,"column":34},"end":{"line":37,"column":42}},"15":{"start":{"line":39,"column":2},"end":{"line":39,"column":73}},"16":{"start":{"line":42,"column":19},"end":{"line":46,"column":1}},"17":{"start":{"line":44,"column":4},"end":{"line":44,"column":73}},"18":{"start":{"line":45,"column":2},"end":{"line":45,"column":16}},"19":{"start":{"line":48,"column":33},"end":{"line":56,"column":1}},"20":{"start":{"line":52,"column":2},"end":{"line":54,"column":3}},"21":{"start":{"line":53,"column":4},"end":{"line":53,"column":71}},"22":{"start":{"line":55,"column":2},"end":{"line":55,"column":18}},"23":{"start":{"line":58,"column":23},"end":{"line":87,"column":1}},"24":{"start":{"line":59,"column":2},"end":{"line":61,"column":3}},"25":{"start":{"line":60,"column":4},"end":{"line":60,"column":48}},"26":{"start":{"line":63,"column":2},"end":{"line":65,"column":3}},"27":{"start":{"line":64,"column":4},"end":{"line":64,"column":57}},"28":{"start":{"line":67,"column":2},"end":{"line":72,"column":3}},"29":{"start":{"line":71,"column":4},"end":{"line":71,"column":14}},"30":{"start":{"line":73,"column":2},"end":{"line":86,"column":4}},"31":{"start":{"line":77,"column":20},"end":{"line":81,"column":10}},"32":{"start":{"line":82,"column":8},"end":{"line":82,"column":19}},"33":{"start":{"line":89,"column":18},"end":{"line":92,"column":1}},"34":{"start":{"line":90,"column":17},"end":{"line":90,"column":65}},"35":{"start":{"line":91,"column":2},"end":{"line":91,"column":16}},"36":{"start":{"line":94,"column":27},"end":{"line":111,"column":1}},"37":{"start":{"line":95,"column":2},"end":{"line":106,"column":3}},"38":{"start":{"line":96,"column":4},"end":{"line":105,"column":17}},"39":{"start":{"line":98,"column":16},"end":{"line":98,"column":79}},"40":{"start":{"line":99,"column":8},"end":{"line":101,"column":9}},"41":{"start":{"line":100,"column":10},"end":{"line":100,"column":27}},"42":{"start":{"line":102,"column":8},"end":{"line":102,"column":17}},"43":{"start":{"line":104,"column":18},"end":{"line":104,"column":39}},"44":{"start":{"line":107,"column":2},"end":{"line":109,"column":3}},"45":{"start":{"line":108,"column":4},"end":{"line":108,"column":49}},"46":{"start":{"line":110,"column":2},"end":{"line":110,"column":36}},"47":{"start":{"line":113,"column":17},"end":{"line":130,"column":1}},"48":{"start":{"line":114,"column":12},"end":{"line":128,"column":14}},"49":{"start":{"line":116,"column":18},"end":{"line":119,"column":8}},"50":{"start":{"line":120,"column":6},"end":{"line":120,"column":17}},"51":{"start":{"line":123,"column":16},"end":{"line":125,"column":28}},"52":{"start":{"line":126,"column":6},"end":{"line":126,"column":15}},"53":{"start":{"line":129,"column":2},"end":{"line":129,"column":11}},"54":{"start":{"line":132,"column":25},"end":{"line":143,"column":1}},"55":{"start":{"line":133,"column":14},"end":{"line":133,"column":32}},"56":{"start":{"line":135,"column":2},"end":{"line":139,"column":3}},"57":{"start":{"line":136,"column":4},"end":{"line":136,"column":55}},"58":{"start":{"line":138,"column":4},"end":{"line":138,"column":52}},"59":{"start":{"line":140,"column":18},"end":{"line":140,"column":20}},"60":{"start":{"line":141,"column":17},"end":{"line":141,"column":45}},"61":{"start":{"line":142,"column":2},"end":{"line":142,"column":42}},"62":{"start":{"line":145,"column":27},"end":{"line":151,"column":1}},"63":{"start":{"line":146,"column":2},"end":{"line":150,"column":5}},"64":{"start":{"line":147,"column":4},"end":{"line":149,"column":5}},"65":{"start":{"line":148,"column":6},"end":{"line":148,"column":16}},"66":{"start":{"line":153,"column":24},"end":{"line":153,"column":71}},"67":{"start":{"line":153,"column":39},"end":{"line":153,"column":71}},"68":{"start":{"line":155,"column":0},"end":{"line":170,"column":23}},"69":{"start":{"line":161,"column":4},"end":{"line":168,"column":5}},"70":{"start":{"line":162,"column":21},"end":{"line":162,"column":36}},"71":{"start":{"line":163,"column":19},"end":{"line":163,"column":36}},"72":{"start":{"line":164,"column":6},"end":{"line":164,"column":32}},"73":{"start":{"line":165,"column":6},"end":{"line":165,"column":53}},"74":{"start":{"line":167,"column":6},"end":{"line":167,"column":21}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":22,"column":27},"end":{"line":22,"column":28}},"loc":{"start":{"line":22,"column":44},"end":{"line":26,"column":1}},"line":22},"1":{"name":"(anonymous_1)","decl":{"start":{"line":28,"column":22},"end":{"line":28,"column":23}},"loc":{"start":{"line":28,"column":40},"end":{"line":28,"column":68}},"line":28},"2":{"name":"(anonymous_2)","decl":{"start":{"line":30,"column":16},"end":{"line":30,"column":17}},"loc":{"start":{"line":30,"column":43},"end":{"line":40,"column":1}},"line":30},"3":{"name":"(anonymous_3)","decl":{"start":{"line":37,"column":29},"end":{"line":37,"column":30}},"loc":{"start":{"line":37,"column":34},"end":{"line":37,"column":42}},"line":37},"4":{"name":"(anonymous_4)","decl":{"start":{"line":42,"column":19},"end":{"line":42,"column":20}},"loc":{"start":{"line":42,"column":74},"end":{"line":46,"column":1}},"line":42},"5":{"name":"(anonymous_5)","decl":{"start":{"line":48,"column":33},"end":{"line":48,"column":34}},"loc":{"start":{"line":51,"column":13},"end":{"line":56,"column":1}},"line":51},"6":{"name":"(anonymous_6)","decl":{"start":{"line":58,"column":23},"end":{"line":58,"column":24}},"loc":{"start":{"line":58,"column":47},"end":{"line":87,"column":1}},"line":58},"7":{"name":"(anonymous_7)","decl":{"start":{"line":76,"column":6},"end":{"line":76,"column":7}},"loc":{"start":{"line":76,"column":55},"end":{"line":83,"column":7}},"line":76},"8":{"name":"(anonymous_8)","decl":{"start":{"line":89,"column":18},"end":{"line":89,"column":19}},"loc":{"start":{"line":89,"column":48},"end":{"line":92,"column":1}},"line":89},"9":{"name":"(anonymous_9)","decl":{"start":{"line":94,"column":27},"end":{"line":94,"column":28}},"loc":{"start":{"line":94,"column":75},"end":{"line":111,"column":1}},"line":94},"10":{"name":"(anonymous_10)","decl":{"start":{"line":97,"column":11},"end":{"line":97,"column":12}},"loc":{"start":{"line":97,"column":23},"end":{"line":103,"column":7}},"line":97},"11":{"name":"(anonymous_11)","decl":{"start":{"line":104,"column":12},"end":{"line":104,"column":13}},"loc":{"start":{"line":104,"column":18},"end":{"line":104,"column":39}},"line":104},"12":{"name":"(anonymous_12)","decl":{"start":{"line":113,"column":17},"end":{"line":113,"column":18}},"loc":{"start":{"line":113,"column":38},"end":{"line":130,"column":1}},"line":113},"13":{"name":"(anonymous_13)","decl":{"start":{"line":115,"column":12},"end":{"line":115,"column":13}},"loc":{"start":{"line":115,"column":60},"end":{"line":121,"column":5}},"line":115},"14":{"name":"(anonymous_14)","decl":{"start":{"line":122,"column":9},"end":{"line":122,"column":10}},"loc":{"start":{"line":122,"column":23},"end":{"line":127,"column":5}},"line":122},"15":{"name":"(anonymous_15)","decl":{"start":{"line":132,"column":25},"end":{"line":132,"column":26}},"loc":{"start":{"line":132,"column":43},"end":{"line":143,"column":1}},"line":132},"16":{"name":"(anonymous_16)","decl":{"start":{"line":145,"column":27},"end":{"line":145,"column":28}},"loc":{"start":{"line":145,"column":79},"end":{"line":151,"column":1}},"line":145},"17":{"name":"(anonymous_17)","decl":{"start":{"line":146,"column":29},"end":{"line":146,"column":30}},"loc":{"start":{"line":146,"column":36},"end":{"line":150,"column":3}},"line":146},"18":{"name":"(anonymous_18)","decl":{"start":{"line":153,"column":24},"end":{"line":153,"column":25}},"loc":{"start":{"line":153,"column":39},"end":{"line":153,"column":71}},"line":153},"19":{"name":"(anonymous_19)","decl":{"start":{"line":160,"column":10},"end":{"line":160,"column":11}},"loc":{"start":{"line":160,"column":18},"end":{"line":169,"column":3}},"line":160}},"branchMap":{"0":{"loc":{"start":{"line":25,"column":9},"end":{"line":25,"column":30}},"type":"cond-expr","locations":[{"start":{"line":25,"column":17},"end":{"line":25,"column":25}},{"start":{"line":25,"column":28},"end":{"line":25,"column":30}}],"line":25},"1":{"loc":{"start":{"line":31,"column":2},"end":{"line":38,"column":3}},"type":"if","locations":[{"start":{"line":31,"column":2},"end":{"line":38,"column":3}},{"start":{"line":31,"column":2},"end":{"line":38,"column":3}}],"line":31},"2":{"loc":{"start":{"line":32,"column":4},"end":{"line":34,"column":5}},"type":"if","locations":[{"start":{"line":32,"column":4},"end":{"line":34,"column":5}},{"start":{"line":32,"column":4},"end":{"line":34,"column":5}}],"line":32},"3":{"loc":{"start":{"line":36,"column":9},"end":{"line":38,"column":3}},"type":"if","locations":[{"start":{"line":36,"column":9},"end":{"line":38,"column":3}},{"start":{"line":36,"column":9},"end":{"line":38,"column":3}}],"line":36},"4":{"loc":{"start":{"line":36,"column":13},"end":{"line":36,"column":61}},"type":"binary-expr","locations":[{"start":{"line":36,"column":13},"end":{"line":36,"column":39}},{"start":{"line":36,"column":43},"end":{"line":36,"column":61}}],"line":36},"5":{"loc":{"start":{"line":39,"column":9},"end":{"line":39,"column":72}},"type":"binary-expr","locations":[{"start":{"line":39,"column":9},"end":{"line":39,"column":35}},{"start":{"line":39,"column":39},"end":{"line":39,"column":72}}],"line":39},"6":{"loc":{"start":{"line":44,"column":4},"end":{"line":44,"column":73}},"type":"binary-expr","locations":[{"start":{"line":44,"column":4},"end":{"line":44,"column":23}},{"start":{"line":44,"column":27},"end":{"line":44,"column":73}}],"line":44},"7":{"loc":{"start":{"line":52,"column":2},"end":{"line":54,"column":3}},"type":"if","locations":[{"start":{"line":52,"column":2},"end":{"line":54,"column":3}},{"start":{"line":52,"column":2},"end":{"line":54,"column":3}}],"line":52},"8":{"loc":{"start":{"line":53,"column":25},"end":{"line":53,"column":68}},"type":"cond-expr","locations":[{"start":{"line":53,"column":60},"end":{"line":53,"column":62}},{"start":{"line":53,"column":65},"end":{"line":53,"column":68}}],"line":53},"9":{"loc":{"start":{"line":59,"column":2},"end":{"line":61,"column":3}},"type":"if","locations":[{"start":{"line":59,"column":2},"end":{"line":61,"column":3}},{"start":{"line":59,"column":2},"end":{"line":61,"column":3}}],"line":59},"10":{"loc":{"start":{"line":63,"column":2},"end":{"line":65,"column":3}},"type":"if","locations":[{"start":{"line":63,"column":2},"end":{"line":65,"column":3}},{"start":{"line":63,"column":2},"end":{"line":65,"column":3}}],"line":63},"11":{"loc":{"start":{"line":67,"column":2},"end":{"line":72,"column":3}},"type":"if","locations":[{"start":{"line":67,"column":2},"end":{"line":72,"column":3}},{"start":{"line":67,"column":2},"end":{"line":72,"column":3}}],"line":67},"12":{"loc":{"start":{"line":68,"column":4},"end":{"line":69,"column":51}},"type":"binary-expr","locations":[{"start":{"line":68,"column":4},"end":{"line":68,"column":26}},{"start":{"line":69,"column":4},"end":{"line":69,"column":51}}],"line":68},"13":{"loc":{"start":{"line":95,"column":2},"end":{"line":106,"column":3}},"type":"if","locations":[{"start":{"line":95,"column":2},"end":{"line":106,"column":3}},{"start":{"line":95,"column":2},"end":{"line":106,"column":3}}],"line":95},"14":{"loc":{"start":{"line":98,"column":16},"end":{"line":98,"column":79}},"type":"cond-expr","locations":[{"start":{"line":98,"column":32},"end":{"line":98,"column":52}},{"start":{"line":98,"column":55},"end":{"line":98,"column":79}}],"line":98},"15":{"loc":{"start":{"line":99,"column":8},"end":{"line":101,"column":9}},"type":"if","locations":[{"start":{"line":99,"column":8},"end":{"line":101,"column":9}},{"start":{"line":99,"column":8},"end":{"line":101,"column":9}}],"line":99},"16":{"loc":{"start":{"line":99,"column":12},"end":{"line":99,"column":43}},"type":"binary-expr","locations":[{"start":{"line":99,"column":12},"end":{"line":99,"column":26}},{"start":{"line":99,"column":30},"end":{"line":99,"column":43}}],"line":99},"17":{"loc":{"start":{"line":104,"column":18},"end":{"line":104,"column":39}},"type":"cond-expr","locations":[{"start":{"line":104,"column":33},"end":{"line":104,"column":34}},{"start":{"line":104,"column":37},"end":{"line":104,"column":39}}],"line":104},"18":{"loc":{"start":{"line":107,"column":2},"end":{"line":109,"column":3}},"type":"if","locations":[{"start":{"line":107,"column":2},"end":{"line":109,"column":3}},{"start":{"line":107,"column":2},"end":{"line":109,"column":3}}],"line":107},"19":{"loc":{"start":{"line":135,"column":2},"end":{"line":139,"column":3}},"type":"if","locations":[{"start":{"line":135,"column":2},"end":{"line":139,"column":3}},{"start":{"line":135,"column":2},"end":{"line":139,"column":3}}],"line":135},"20":{"loc":{"start":{"line":145,"column":28},"end":{"line":145,"column":58}},"type":"default-arg","locations":[{"start":{"line":145,"column":43},"end":{"line":145,"column":58}}],"line":145},"21":{"loc":{"start":{"line":147,"column":4},"end":{"line":149,"column":5}},"type":"if","locations":[{"start":{"line":147,"column":4},"end":{"line":149,"column":5}},{"start":{"line":147,"column":4},"end":{"line":149,"column":5}}],"line":147},"22":{"loc":{"start":{"line":153,"column":39},"end":{"line":153,"column":71}},"type":"binary-expr","locations":[{"start":{"line":153,"column":39},"end":{"line":153,"column":52}},{"start":{"line":153,"column":56},"end":{"line":153,"column":71}}],"line":153}},"s":{"0":3,"1":3,"2":18,"3":18,"4":18,"5":3,"6":39,"7":3,"8":111,"9":18,"10":9,"11":9,"12":93,"13":6,"14":18,"15":87,"16":3,"17":37,"18":37,"19":3,"20":111,"21":37,"22":74,"23":3,"24":45,"25":3,"26":42,"27":3,"28":39,"29":0,"30":39,"31":111,"32":111,"33":3,"34":13,"35":13,"36":3,"37":39,"38":3,"39":6,"40":6,"41":1,"42":6,"43":3,"44":36,"45":12,"46":24,"47":3,"48":6,"49":39,"50":39,"51":39,"52":39,"53":6,"54":3,"55":6,"56":6,"57":3,"58":3,"59":6,"60":6,"61":6,"62":3,"63":0,"64":0,"65":0,"66":3,"67":0,"68":3,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0},"f":{"0":18,"1":39,"2":111,"3":18,"4":37,"5":111,"6":45,"7":111,"8":13,"9":39,"10":6,"11":3,"12":6,"13":39,"14":39,"15":6,"16":0,"17":0,"18":0,"19":0},"b":{"0":[18,0],"1":[18,93],"2":[9,9],"3":[6,87],"4":[93,51],"5":[87,6],"6":[37,12],"7":[37,74],"8":[6,31],"9":[3,42],"10":[3,39],"11":[0,39],"12":[39,39],"13":[3,36],"14":[3,3],"15":[1,5],"16":[6,3],"17":[3,0],"18":[12,24],"19":[3,3],"20":[0],"21":[0,0],"22":[0,0]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"f9e5e82b2b5a005f1e740011e5e2c4f4cefb7dca"} | ||
} | ||
{} |
@@ -7,4 +7,6 @@ #! /usr/bin/env node | ||
}); | ||
exports.distFile = exports.writeToFile = exports.generator = undefined; | ||
exports.getContent = exports.getContentFromUrl = exports.isObject = exports.getContentFromFile = exports.distFile = exports.isUrl = exports.writeToFile = exports.generator = undefined; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
var _commander = require("commander"); | ||
@@ -30,2 +32,6 @@ | ||
var _axios = require("axios"); | ||
var _axios2 = _interopRequireDefault(_axios); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -62,3 +68,3 @@ | ||
return "Array<" + definitionTypeName(property.items.$ref) + ">"; | ||
} else if (property.items.type === 'object') { | ||
} else if (property.items.type === "object") { | ||
var child = propertiesTemplate(propertiesList(property.items)).replace(/"/g, ""); | ||
@@ -137,2 +143,5 @@ return "Array<" + child + ">"; | ||
var generate = function generate(swagger) { | ||
if (!swagger.definitions) { | ||
throw new Error("There is no definition"); | ||
} | ||
var g = Object.keys(swagger.definitions).reduce(function (acc, definitionName) { | ||
@@ -151,12 +160,5 @@ var arr = acc.concat({ | ||
var generator = exports.generator = function generator(file) { | ||
var ext = _path2.default.extname(file); | ||
var doc = void 0; | ||
if (ext === ".yaml") { | ||
doc = _jsYaml2.default.safeLoad(_fs2.default.readFileSync(file, "utf8")); | ||
} else { | ||
doc = JSON.parse(_fs2.default.readFileSync(file, "utf8")); | ||
} | ||
var generator = exports.generator = function generator(content) { | ||
var options = {}; | ||
var result = "// @flow\n" + generate(doc); | ||
var result = "// @flow\n" + generate(content); | ||
return _prettier2.default.format(result, options); | ||
@@ -176,2 +178,6 @@ }; | ||
var isUrl = exports.isUrl = function isUrl(value) { | ||
return value.match(/https?:\/\//) !== null; | ||
}; | ||
var distFile = exports.distFile = function distFile(p, inputFileName) { | ||
@@ -181,2 +187,6 @@ if (p.destination) { | ||
} | ||
if (isUrl(inputFileName)) { | ||
return "./flowtype.js"; | ||
} | ||
var ext = _path2.default.parse(inputFileName).ext; | ||
@@ -186,5 +196,35 @@ return inputFileName.replace(ext, ".js"); | ||
_commander2.default.arguments("<file>").option("-d --destination <destination>", "Destination path").option("-cr --check-required", "Add question mark to optional properties").option("-e --exact", "Add exact types").action(function (file) { | ||
var getContentFromFile = exports.getContentFromFile = function getContentFromFile(file) { | ||
var ext = _path2.default.extname(file); | ||
var readFile = _fs2.default.readFileSync(file, "utf8"); | ||
return ext === ".yaml" ? _jsYaml2.default.safeLoad(readFile) : JSON.parse(readFile); | ||
}; | ||
var isObject = exports.isObject = function isObject(value) { | ||
return (typeof value === "undefined" ? "undefined" : _typeof(value)) === "object" && value !== null; | ||
}; | ||
var getContentFromUrl = exports.getContentFromUrl = function getContentFromUrl(url) { | ||
return (0, _axios2.default)({ | ||
method: "get", | ||
url: url | ||
}).then(function (response) { | ||
var data = response.data; | ||
return isObject(data) ? data : _jsYaml2.default.safeLoad(data); | ||
}); | ||
}; | ||
var getContent = exports.getContent = function getContent(fileOrUrl) { | ||
if (isUrl(fileOrUrl)) { | ||
return getContentFromUrl(fileOrUrl); | ||
} | ||
var content = getContentFromFile(fileOrUrl); | ||
return Promise.resolve(content); | ||
}; | ||
_commander2.default.arguments("<file>").option("-d --destination <destination>", "Destination path").option("-cr --check-required", "Add question mark to optional properties").option("-e --exact", "Add exact types").action(async function (file) { | ||
try { | ||
var result = generator(file); | ||
var content = await getContent(file); | ||
var result = generator(content); | ||
var dist = distFile(_commander2.default, file); | ||
@@ -191,0 +231,0 @@ writeToFile(dist, result); |
{ | ||
"name": "swagger-to-flowtype", | ||
"version": "0.0.11", | ||
"version": "0.1.0", | ||
"description": "Command line tool for generating flow types from swagger", | ||
@@ -10,6 +10,8 @@ "main": "./dist/index.js", | ||
"test": "jest", | ||
"test:watch": "jest --watch", | ||
"prebuild": "npm run clean && npm run init", | ||
"build": "babel ./src -d ./dist", | ||
"prepublish": "npm run build", | ||
"flow": "flow" | ||
"flow": "flow", | ||
"prettier": "prettier --write {src,__{tests,mocks}__}/**/*.js" | ||
}, | ||
@@ -34,5 +36,6 @@ "author": "yayoc <hi@yayoc.com> (http://yayoc.com)", | ||
"dependencies": { | ||
"axios": "^0.18.0", | ||
"commander": "^2.9.0", | ||
"js-yaml": "^3.8.4", | ||
"prettier": "^1.5.3" | ||
"prettier": "^1.11.0" | ||
}, | ||
@@ -39,0 +42,0 @@ "devDependencies": { |
@@ -13,3 +13,3 @@ # swagger-to-flowtype | ||
`$swagger-to-flowtype <YOUR SWAGGER FILE>` | ||
`$swagger-to-flowtype <YOUR SWAGGER FILE OR URL>` | ||
@@ -24,3 +24,3 @@ This command generates a file named **flowtype.js** includes type definitions as default. | ||
`$swagger-to-flowtype <YOUR SWAGGER FILE> -d <OUTPUT FILE PATH>` | ||
`$swagger-to-flowtype <YOUR SWAGGER FILE PATH OR URL> -d <OUTPUT FILE PATH>` | ||
@@ -27,0 +27,0 @@ *`Supporting Maybe type`* |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
186553
4
607
+ Addedaxios@^0.18.0
+ Addedaxios@0.18.1(transitive)
+ Addedfollow-redirects@1.5.10(transitive)
+ Addedis-buffer@2.0.5(transitive)
Updatedprettier@^1.11.0