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

castor

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

castor - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

9

index.js

@@ -87,10 +87,13 @@ 'use strict';

send(req, remote, next) {
var {file_md5, file_size, file_path} = this.get(req.url);
var req_uri = decodeURIComponent(url.parse(req.url).pathname);
var {file_md5, file_size, file_path} = this.get(req_uri);
if(!file_md5) {
console.log('%s missing file in index', req.url);
console.log('%s missing file in index', req_uri);
return next();
}
var content_type = send.mime.lookup(url.parse(req.url).pathname);
var content_type = send.mime.lookup(req_uri);
remote.setHeader("content-length", file_size);

@@ -97,0 +100,0 @@ remote.setHeader("content-type", content_type);

{
"name": "castor",
"version": "1.1.0",
"version": "1.1.1",
"description": "An ES7 [CAS designed](https://en.wikipedia.org/wiki/Content-addressable_storage) file storage for nodejs with a simple API and robust implementation.",

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

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