@trusource/simple-oas
Advanced tools
Comparing version 0.1.2 to 0.1.3
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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7854
12
171