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

@trusource/simple-oas

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trusource/simple-oas - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

src/environment.js

11

index.js

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

const createOperations = require('./src/operations');
const createEnvironmentVariables = require('./src/environment');
const { sortByPath } = require('./src/helpers/sort');

@@ -27,10 +28,7 @@

// TODO: below is used to list env variables in .env.template (stil needs to be implemented)
// const security = createEnvVariables(securitySchemes);
// TODO: below is used to list env variables in .env.template (in truffle-box)
const environmentVariables = createEnvironmentVariables(securitySchemes);
// This step is very important - paths in OAS can be in any order and we still get the same output
const sortedOperations = [...operations].sort(sortByPath)
// below is not necessary but improves logging
.map((operation, i) => ({ ...operation, uid: i }));
// console.log(sortedOperations);
const sortedOperations = [...operations].sort(sortByPath);

@@ -40,2 +38,3 @@ return {

operations: sortedOperations,
environmentVariables,
};

@@ -42,0 +41,0 @@ }

{
"name": "@trusource/simple-oas",
"version": "0.1.2",
"version": "0.1.3",
"description": "",

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

"license": "ISC",
"gitHead": "9af13f6d51bebbfa43fb37f4e513a5eb61a3953b"
"gitHead": "a4d33fcd12da2331cdfc2a27b325351c3d43c980"
}
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