New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

http-permission-injection

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-permission-injection - npm Package Compare versions

Comparing version 1.0.9 to 1.1.0

2

index.js

@@ -107,2 +107,3 @@ // Request module, used to perform remote api requests.

function approved (event){
console.log("Auth APPROVED for user " + event.username);
var now = new Date();

@@ -119,2 +120,3 @@ now.setTime(now.getTime() + (event.cookie_expiry_minutes * 60 * 1000));

function denied (event){
console.log("Auth DENIED for user " + event.username);
event.response.writeHead(401, {

@@ -121,0 +123,0 @@ 'Content-Type': 'text/plain',

2

package.json
{
"name": "http-permission-injection",
"version": "1.0.9",
"version": "1.1.0",
"description": "Inject and verify a users permissions coming form an http request, using local or remote resources for verification.",

@@ -5,0 +5,0 @@ "main": "index.js",

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