@bufferapp/session-manager
Advanced tools
Comparing version
14
index.js
@@ -6,4 +6,6 @@ const RPCClient = require('micro-rpc-client'); | ||
const sessionClient = new RPCClient({ url: `http://${process.env.SESSION_SVC_HOST}` }); | ||
sessionExports.cookieName = ({ production }) => | ||
(production ? 'buffer-session' : 'local-buffer-session'); | ||
(production ? 'buffer_session' : 'local_buffer_session'); | ||
@@ -37,3 +39,2 @@ sessionExports.cookieDomain = ({ production }) => | ||
res, | ||
sessionClient, | ||
}) => { | ||
@@ -59,3 +60,2 @@ // this will throw errors when a session cannot be created | ||
req, | ||
sessionClient, | ||
production, | ||
@@ -73,7 +73,5 @@ }) => | ||
production, | ||
sessionUrl, | ||
sessionKeys, | ||
}) => { | ||
const sessionClient = new RPCClient({ url: sessionUrl }); | ||
return async (req, res, next) => { | ||
}) => | ||
async (req, res, next) => { | ||
const sessionCookie = sessionExports.getCookie({ | ||
@@ -97,4 +95,4 @@ name: sessionExports.cookieName({ production }), | ||
}; | ||
}; | ||
const validateSession = ({ | ||
@@ -101,0 +99,0 @@ requiredSessionKeys, |
{ | ||
"name": "@bufferapp/session-manager", | ||
"version": "0.5.35", | ||
"version": "0.5.36", | ||
"description": "Buffer session manager", | ||
@@ -12,2 +12,6 @@ "main": "index.js", | ||
"author": "hharnisc@gmail.com", | ||
"dependencies": { | ||
"micro-rpc-client": "0.1.2", | ||
"object-path": "0.11.4" | ||
}, | ||
"devDependencies": { | ||
@@ -14,0 +18,0 @@ "eslint": "3.19.0", |
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
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
15771
0.36%2
Infinity%542
-0.73%3
50%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added