New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

openapi-to-md

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openapi-to-md - npm Package Compare versions

Comparing version 1.0.18 to 1.0.19

16

dist/index.js

@@ -204,5 +204,15 @@ #!/usr/bin/env node

: [];
output +=
(name ? SP(nowLevel) + `${name}${required === true ? "" : "?"}: ` : "") +
`${type.reduce((a, b, index) => a + (index ? " | " : "") + b, "")}\n`;
output += name
? SP(nowLevel) + `${name}${required === true ? "" : "?"}: `
: "";
if (apiObject.enum) {
output += `enum[${apiObject.enum.join(", ")}]`;
}
else {
output += `${type.reduce((a, b, index) => a + (index ? " | " : "") + b, "")}`;
}
if (apiObject.default) {
output += ` //default: ${apiObject.default}`;
}
output += "\n";
}

@@ -209,0 +219,0 @@ else if (apiObject.anyOf) {

6

package.json
{
"name": "openapi-to-md",
"version": "1.0.18",
"version": "1.0.19",
"main": "dist/index.js",

@@ -17,3 +17,3 @@ "bin": {

"devDependencies": {
"@types/node": "^18.15.5",
"@types/node": "^18.15.7",
"@typescript-eslint/eslint-plugin": "^5.56.0",

@@ -25,3 +25,3 @@ "@typescript-eslint/parser": "^5.56.0",

"openapi-types": "^12.1.0",
"prettier": "^2.8.6",
"prettier": "^2.8.7",
"ts-node": "^10.9.1",

@@ -28,0 +28,0 @@ "typescript": "^5.0.2"

Sorry, the diff of this file is not supported yet

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