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

ifile

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ifile - npm Package Compare versions

Comparing version 0.1.2 to 0.1.4

test/static2/static3/static3/test.xml

2

package.json

@@ -18,3 +18,3 @@ {

],
"version": "0.1.2",
"version": "0.1.4",
"url": "https://github.com/DoubleSpout/ifile",

@@ -21,0 +21,0 @@ "homepage": "https://github.com/DoubleSpout/ifile",

@@ -1,2 +0,2 @@

# ifile(fast and simple nodejs http/https static file module)
# ifile(fast and simple nodejs http/https static file module)[![Build Status](https://travis-ci.org/DoubleSpout/ifile.png?branch=master)](https://travis-ci.org/DoubleSpout/ifile)

@@ -3,0 +3,0 @@ ifile is a simple static http/https handler module, build with libuv and c++.

@@ -9,3 +9,3 @@ var ifile = require('../index.js');

["static2","static2"],
["static3/static3/","static2",['js','css']]
["static3/static3/","static2",['js','css','xml']]
],function(req, res, isStatic){

@@ -45,4 +45,4 @@

var testjs2 = fs.readFileSync(path.join(__dirname,'static2','static3','static3','test.js'))
var testjs2_stat = fs.statSync(path.join(__dirname,'static2','static3','static3','test.js'))
var testjs2 = fs.readFileSync(path.join(__dirname,'static2','static3','static3','test.xml'))
var testjs2_stat = fs.statSync(path.join(__dirname,'static2','static3','static3','test.xml'))

@@ -293,3 +293,3 @@

request('/static3/static3/test.js', {}, function(err,res,buf){
request('/static3/static3/test.xml', {}, function(err,res,buf){

@@ -303,3 +303,3 @@ if(err) throw(err);

assert.equal(res.headers["content-length"], testjs2_stat.size)
assert.equal(res.headers["content-type"], 'application/javascript')
assert.equal(res.headers["content-type"], 'application/xml')
assert.equal(buf.toString(), testjs2.toString());

@@ -334,3 +334,3 @@

request('/static3/static3/test.js', {"Accept-Encoding":"gzip,deflate,sdch"}, function(err,res,buf){
request('/static3/static3/test.xml', {"Accept-Encoding":"gzip,deflate,sdch"}, function(err,res,buf){

@@ -344,3 +344,3 @@ if(err) throw(err);

assert.equal(res.headers["content-type"], 'application/javascript')
assert.equal(res.headers["content-type"], 'application/xml')
assert.equal(res.headers["content-encoding"], 'gzip')

@@ -347,0 +347,0 @@

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