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

@frontegg/client

Package Overview
Dependencies
Maintainers
1
Versions
184
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@frontegg/client - npm Package Compare versions

Comparing version 1.0.19 to 1.0.20

10

dist/src/middleware/index.js

@@ -117,2 +117,12 @@ "use strict";

}); });
proxy.on('proxyReq', function (proxyReq, req, res, options) {
if (req.body) {
var bodyData = JSON.stringify(req.body);
// incase if content-type is application/x-www-form-urlencoded -> we need to change to application/json
proxyReq.setHeader('Content-Type', 'application/json');
proxyReq.setHeader('Content-Length', Buffer.byteLength(bodyData));
// stream the content
proxyReq.write(bodyData);
}
});
return function (req, res) {

@@ -119,0 +129,0 @@ return __awaiter(this, void 0, void 0, function () {

2

package.json
{
"name": "@frontegg/client",
"version": "1.0.19",
"version": "1.0.20",
"description": "Frontegg Javascript Library for backend",

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

@@ -61,2 +61,13 @@ import { FronteggAuthenticator } from '../authenticator'

proxy.on('proxyReq', (proxyReq, req: any, res, options) => {
if (req.body) {
let bodyData = JSON.stringify(req.body);
// incase if content-type is application/x-www-form-urlencoded -> we need to change to application/json
proxyReq.setHeader('Content-Type', 'application/json');
proxyReq.setHeader('Content-Length', Buffer.byteLength(bodyData));
// stream the content
proxyReq.write(bodyData);
}
});
return async function (req, res) {

@@ -63,0 +74,0 @@ const context = await options.contextResolver(req)

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