Socket
Socket
Sign inDemoInstall

@lighthouseapps/oauth2-server

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lighthouseapps/oauth2-server - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

5

EggOAuth2.js

@@ -7,2 +7,5 @@ 'use strict';

const Password = require('./lib/Password');
const {
replaceResponse
} = require('./lib/util');

@@ -40,3 +43,3 @@ class EggOAuth2 {

const response = new Response(ctx.response);
const response = new Response(replaceResponse(ctx.response));

@@ -43,0 +46,0 @@ try {

@@ -7,2 +7,5 @@ 'use strict';

const Password = require('./lib/Password');
const {
replaceResponse
} = require('./lib/util');

@@ -43,3 +46,3 @@ class ExpressOAuth2 {

const response = new Response(req);
const response = new Response(replaceResponse(req));

@@ -46,0 +49,0 @@ try {

@@ -23,1 +23,20 @@ 'use strict';

};
exports.replaceResponse = res => {
const response = {
headers: {}
};
Object.keys(res).forEach(key => {
if(key !== 'headers')
response[key] = res[key];
});
Object.keys(res.headers).forEach(key => {
response.headers[key] = res.headers[key];
});
response.header = response.headers;
return response;
};

2

package.json
{
"name": "@lighthouseapps/oauth2-server",
"version": "1.0.0",
"version": "1.0.1",
"description": "",

@@ -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