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

file-send

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

file-send - npm Package Compare versions

Comparing version 2.1.7 to 2.1.8

9

index.js

@@ -666,2 +666,6 @@ /*!

// The first open boundary remove \r\n
var open = context.ranges[0].open;
context.ranges[0].open = open.replace(/^\r\n/, '');
// The last add closed boundary

@@ -925,4 +929,2 @@ context.ranges[context.ranges.length - 1].close = close;

// Next
next();
// Destroy file stream

@@ -932,2 +934,5 @@ destroy(file);

// Next
file.on('close', next);
// Pipe stream

@@ -934,0 +939,0 @@ file.pipe(stream, { end: false });

@@ -80,3 +80,3 @@ /*!

*/
normalize: function normalize(path) {
normalize: function(path) {
// \a\b\.\c\.\d ==> /a/b/./c/./d

@@ -96,3 +96,3 @@ path = path.replace(/\\/g, '/');

// transfer path
// Transfer path
var src = path;

@@ -108,3 +108,3 @@ // DOUBLE_DOT_RE matches a/b/c//../d path correctly only if replace // with / first

// break
// Break
if (path === src) {

@@ -111,0 +111,0 @@ break;

{
"name": "file-send",
"version": "2.1.7",
"version": "2.1.8",
"description": "A http file send",

@@ -47,3 +47,3 @@ "author": {

"after": "^0.8.2",
"chai": "^4.1.1",
"chai": "^4.1.2",
"superagent": "^3.6.0"

@@ -50,0 +50,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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