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

swagger-to-flowtype

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swagger-to-flowtype - npm Package Compare versions

Comparing version 0.0.10 to 0.0.11

12

dist/index.js

@@ -108,3 +108,3 @@ #! /usr/bin/env node

var withExact = function withExact(property) {
var result = property.replace(/{/g, "{|").replace(/}/g, "|}");
var result = property.replace(/{[^|]/g, "{|").replace(/[^|]}/g, "|}");
return result;

@@ -172,4 +172,8 @@ };

var distFile = exports.distFile = function distFile(p) {
return p.destination || "./flowtype.js";
var distFile = exports.distFile = function distFile(p, inputFileName) {
if (p.destination) {
return p.destination;
}
var ext = _path2.default.parse(inputFileName).ext;
return inputFileName.replace(ext, ".js");
};

@@ -180,3 +184,3 @@

var result = generator(file);
var dist = distFile(_commander2.default);
var dist = distFile(_commander2.default, file);
writeToFile(dist, result);

@@ -183,0 +187,0 @@ console.log("Generated flow types to " + dist);

{
"name": "swagger-to-flowtype",
"version": "0.0.10",
"version": "0.0.11",
"description": "Command line tool for generating flow types from swagger",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

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