common-expresscions
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -8,2 +8,3 @@ 'use strict'; | ||
smaasJSON = require('smaas-swagger-spec'), | ||
urlModule = require('url'), | ||
path = require('path'); | ||
@@ -14,4 +15,8 @@ | ||
var hostUrl = process.env.HOST_URL || 'http://localhost:3000'; | ||
var parsedHostUrl = urlModule.parse(hostUrl); | ||
//init swagger | ||
smaasJSON.host = process.env.HOST || 'localhost:3000'; | ||
smaasJSON.host = parsedHostUrl.host; | ||
smaasJSON.schemes = [parsedHostUrl.protocol.slice(0,-1)]; | ||
app.get(smaasJSON.basePath + '/smaas.json', function (req, res) { | ||
@@ -18,0 +23,0 @@ res.status(200).send(smaasJSON); |
{ | ||
"name": "common-expresscions", | ||
"description": "common-expresscions packages all the components that are tcommon between expresscion servers", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"homepage": "https://github.com/JacobeanRnD/common-expresscions", | ||
@@ -6,0 +6,0 @@ "main": "./index.js", |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 2 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
114498
20
203
0
8