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

@springernature/backend-proxy

Package Overview
Dependencies
Maintainers
11
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@springernature/backend-proxy - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

7

HISTORY.md
# History
## 1.3.0
_02/02/20_
- Adds support for using JS mocks that use a function that accepts the `express` request object ([joeyciechanowicz](https://github.com/joeyciechanowicz))
## 1.2.0

@@ -11,3 +16,3 @@ _27/01/20_

- Bump handlebars version to fix critical vulnrability ([joeyciechanowicz](https://github.com/joeyciechanowicz))
- Bump handlebars version to fix critical vulnerability ([joeyciechanowicz](https://github.com/joeyciechanowicz))

@@ -14,0 +19,0 @@ ## 1.1.2

2

package.json
{
"name": "@springernature/backend-proxy",
"version": "1.2.0",
"version": "1.3.0",
"description": "Proxies frontend requests to a backend and can render the result",

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

@@ -46,3 +46,10 @@ const path = require('path');

request[options.key] = require(resolvedFile);
const mockResponse = require(resolvedFile);
if (typeof mockResponse === 'function') {
request[options.key] = mockResponse(request);
} else {
request[options.key] = mockResponse;
}
next();

@@ -49,0 +56,0 @@ } catch (error) {

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