Socket
Socket
Sign inDemoInstall

oas-resolver

Package Overview
Dependencies
57
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.2.1 to 2.2.2

6

index.js

@@ -100,3 +100,2 @@ 'use strict';

if (typeof obj.$fixed !== 'undefined') delete obj.$fixed;
if (!options.preserveMiro) delete obj['x-miro'];
}

@@ -430,2 +429,7 @@ });

}
recurse(options.openapi,{},function(obj,key,state){
if (isRef(obj, key)) {
if (!options.preserveMiro) delete obj['x-miro'];
}
});
res(options);

@@ -432,0 +436,0 @@ }

4

package.json
{
"name": "oas-resolver",
"version": "2.2.1",
"version": "2.2.2",
"description": "Resolve external $refs in OpenAPI (swagger) 2.0 / 3.x definitions",

@@ -35,3 +35,3 @@ "main": "index.js",

},
"gitHead": "229b07984cc88bce1d40aa984c5f73eeac3acb1a"
"gitHead": "fe58671de09ce25b7a7756d621746dfe57d0d9a0"
}

@@ -6,7 +6,8 @@ # oas-resolver

```js
const input = yaml.safeLoad(str,{json:true});
const yaml = require('yaml');
const input = yaml.parse(str);
const source = url; // or filename
resolver.resolve(input,source,options)
.then(function(options){
fs.writeFileSync(outputFile,yaml.safeDump(options.openapi),'utf8');
fs.writeFileSync(outputFile,yaml.stringify(options.openapi),'utf8');
})

@@ -13,0 +14,0 @@ .catch(function(ex){

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc