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

common-expresscions

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

common-expresscions - npm Package Compare versions

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",