Comparing version 0.2.0 to 0.2.1
#!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
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
24084
340
7
+ Addednodecaf-run@0.0.2
+ Addedanymatch@3.1.3(transitive)
+ Addedbinary-extensions@2.3.0(transitive)
+ Addedbraces@3.0.3(transitive)
+ Addedchokidar@3.6.0(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addedfill-range@7.1.1(transitive)
+ Addedfsevents@2.3.3(transitive)
+ Addedglob-parent@5.1.2(transitive)
+ Addedis-binary-path@2.1.0(transitive)
+ Addedis-extglob@2.1.1(transitive)
+ Addedis-glob@4.0.3(transitive)
+ Addedis-number@7.0.0(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addednodecaf@0.9.5(transitive)
+ Addednodecaf-run@0.0.2(transitive)
+ Addednormalize-path@3.0.0(transitive)
+ Addedpicomatch@2.3.1(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedreadable-stream@2.3.8(transitive)
+ Addedreaddirp@3.6.0(transitive)
+ Addedsafe-buffer@5.1.2(transitive)
+ Addedstdout-stream@1.4.1(transitive)
+ Addedstring_decoder@1.1.1(transitive)
+ Addedto-regex-range@5.0.1(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
- Removednodecaf@0.8.5(transitive)
Updatednodecaf@^0.9.1