Socket
Socket
Sign inDemoInstall

swagger2openapi

Package Overview
Dependencies
Maintainers
1
Versions
156
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swagger2openapi - npm Package Compare versions

Comparing version 3.2.8 to 3.2.9

2

index.js

@@ -1284,3 +1284,3 @@ // @ts-check

let server = {};
server.url = (s ? s+':' : '') + '//' + swagger.host + (swagger.basePath ? swagger.basePath : '/');
server.url = (s ? s+':' : '') + '//' + swagger.host + (swagger.basePath ? swagger.basePath : '');
extractServerParameters(server);

@@ -1287,0 +1287,0 @@ if (!openapi.servers) openapi.servers = [];

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

const readfiles = require('node-readfiles');
const should = require('should/as-function');
const yaml = require('js-yaml');

@@ -167,4 +168,4 @@

let resultStr2 = yaml.safeDump(result, { lineWidth: -1, noRefs: true });
resultStr.should.not.be.exactly('{}','Result should not be empty');
resultStr.should.equal(resultStr2,'Result should have no object identity ref_s');
should(resultStr).not.be.exactly('{}','Result should not be empty');
should(resultStr).equal(resultStr2,'Result should have no object identity ref_s');
}

@@ -171,0 +172,0 @@

{
"name": "swagger2openapi",
"version": "3.2.8",
"version": "3.2.9",
"description": "Convert Swagger 2.0 definitions to OpenApi 3.0 and validate",

@@ -38,5 +38,5 @@ "main": "index.js",

"oas-kit-common": "^1.0.3",
"oas-resolver": "^1.0.8",
"oas-schema-walker": "^1.0.4",
"oas-validator": "^1.1.7",
"oas-resolver": "^1.0.9",
"oas-schema-walker": "^1.1.0",
"oas-validator": "^1.1.8",
"reftools": "^1.0.2",

@@ -63,3 +63,3 @@ "yargs": "^11.0.0"

},
"gitHead": "3cd5907e4b7e18384495f60e5929330e94cabe04"
"gitHead": "c0080cde40d45cde9a972918668aec899b49834b"
}
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