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

vfs-local

Package Overview
Dependencies
Maintainers
3
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vfs-local - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

18

localfs.js

@@ -398,4 +398,18 @@ var fs = require('fs');

var range = options.range;
var start = range.hasOwnProperty("start") ? range.start : 0;
var end = range.hasOwnProperty("end") ? range.end : stat.size - 1;
var start, end;
if (range.hasOwnProperty("start")) {
start = range.start;
end = range.hasOwnProperty("end") ? range.end : meta.size - 1;
}
else {
if (range.hasOwnProperty("end")) {
start = meta.size - range.end;
end = meta.size - 1;
}
else {
meta.rangeNotSatisfiable = "Invalid Range";
fs.close(fd);
return callback(null, meta);
}
}
if (end < start || start < 0 || end >= stat.size) {

@@ -402,0 +416,0 @@ meta.rangeNotSatisfiable = "Range out of bounds";

2

package.json

@@ -9,3 +9,3 @@ {

"description": "A vfs implementation that works on the local filesystem, but with optional security constraints",
"version": "0.1.0",
"version": "0.1.1",
"repository": {

@@ -12,0 +12,0 @@ "type": "git",

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