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

@radpack/server

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@radpack/server - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

8

lib/middleware.cjs.js

@@ -70,3 +70,3 @@ 'use strict';

cacheControl: false,
setHeaders: this.handleSetHeaders,
setHeaders: this.handleSetHeaders.bind(this),
...proxyOptions

@@ -247,7 +247,3 @@ });

handleSetHeaders(res) {
if (res.set) {
// express
res.set(this.headers);
} else {
// http/connect
if (this.headers) {
Object.entries(this.headers).forEach(([key, value]) => {

@@ -254,0 +250,0 @@ res.setHeader(key, value);

@@ -61,3 +61,3 @@ import fs from 'fs';

cacheControl: false,
setHeaders: this.handleSetHeaders,
setHeaders: this.handleSetHeaders.bind(this),
...proxyOptions

@@ -238,7 +238,3 @@ });

handleSetHeaders(res) {
if (res.set) {
// express
res.set(this.headers);
} else {
// http/connect
if (this.headers) {
Object.entries(this.headers).forEach(([key, value]) => {

@@ -245,0 +241,0 @@ res.setHeader(key, value);

{
"name": "@radpack/server",
"version": "1.1.0",
"version": "1.1.1",
"description": "Rapid Application Development Packaging Server Runtime",

@@ -49,3 +49,3 @@ "main": "./lib/index.cjs.js",

"license": "MIT",
"gitHead": "40c00f14c02d8c6532cf0d16463147e3bb118b50"
"gitHead": "398d21f48a73e95edcc8253f342b8eb0eaa529d9"
}
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