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

api-joe

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

api-joe - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

7

bin/api-joe.js
#!node
const { run } = require('nodecaf');
run({
init: require('../lib/main'),
confPath: process.argv[2]
});
const run = require('nodecaf-run');
run({ conf: process.argv[2] });

@@ -8,2 +8,7 @@ # API Joe Changelog

## [v0.2.1] - 2020-04-17
### Changed
- deploy process slightly
## [v0.2.0] - 2020-03-31

@@ -10,0 +15,0 @@

@@ -1,1 +0,1 @@

[{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `pass` has 33 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"89e6ba40f4fb9a4bf4fd4f94d18a3844","location":{"path":"lib/proxy.js","lines":{"begin":5,"end":51}},"other_locations":[],"remediation_points":792000,"severity":"minor","type":"issue","engine_name":"structure"}]
[{"categories":["Complexity"],"check_name":"method_lines","content":{"body":""},"description":"Function `pass` has 33 lines of code (exceeds 25 allowed). Consider refactoring.","fingerprint":"89e6ba40f4fb9a4bf4fd4f94d18a3844","location":{"path":"lib/proxy.js","lines":{"begin":5,"end":57}},"other_locations":[],"remediation_points":792000,"severity":"minor","type":"issue","engine_name":"structure"}]

@@ -6,6 +6,6 @@ const Session = require('./session');

this.cookieSecret = this.settings.signatureSecret;
this.cookieSecret = this.conf.signatureSecret;
if(this.settings.services)
installServices(methods, this.settings.services);
if(this.conf.services)
installServices(methods, this.conf.services);

@@ -12,0 +12,0 @@ let { post } = methods;

@@ -16,2 +16,5 @@ const httpProxy = require('http-proxy');

//let c1 = res.getHeader('Access-Control-Allow-Origin');
//let c2 = res.getHeader('Access-Control-Allow-Credentials');
proxy.on('proxyReq', prq => {

@@ -30,2 +33,5 @@ prq.removeHeader(conf.proxy.claimHeader);

proxy.on('proxyRes', (prs, req, res) => {
//res.setHeaders(prs.getHeaders());
//res.setHeader('Access-Control-Allow-Origin', c1);
//res.setHeader('Access-Control-Allow-Credentials', c2);
if(prs.headers['content-type'])

@@ -32,0 +38,0 @@ res.setHeader('Content-Type', prs.headers['content-type']);

{
"name": "api-joe",
"version": "0.2.0",
"version": "0.2.1",
"description": "An API Gateway to easily expose your services to web clients",

@@ -40,3 +40,4 @@ "main": "lib/main.js",

"muhb": "^3.0.1",
"nodecaf": "^0.8.5",
"nodecaf": "^0.9.1",
"nodecaf-run": "0.0.2",
"periodo": "^0.1.1",

@@ -43,0 +44,0 @@ "uuid": "^7.0.2"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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