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

directory-sync

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

directory-sync - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

2

package.json
{
"name": "directory-sync",
"version": "2.0.1",
"version": "2.0.2",
"description": "Easily synchronize directories between two machines over the internet.",

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

@@ -161,2 +161,5 @@ import Path from 'path';

// Retrieve the Directory Map record for this uri
const record = map.get(uri);
// Match the incoming request to one of the supported operations

@@ -170,3 +173,3 @@ let body;

// Ensure that the uri has a valid record in our map
if (map.get(uri) === undefined)
if (record === undefined)
return response.status(404).json({

@@ -227,3 +230,3 @@ code: 'NOT_FOUND',

if (output instanceof Stream.Readable) {
return output.pipe(response.writable);
return response.stream(output, record.stats.size);
} else {

@@ -230,0 +233,0 @@ // Send a 'SUCCESS' code response with any output as that data

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