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

node-img-placeholder

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-img-placeholder - npm Package Compare versions

Comparing version 4.0.0 to 4.1.0

13

lib/app.js

@@ -8,2 +8,9 @@ module.exports = function(config) {

app.all('/*', function(req, res, next) {
res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Headers", "X-Requested-With");
next();
});
app.get('/' + config.namespace + '/:dimension.:contentType', function(req, res, next) {

@@ -24,3 +31,2 @@ var p = req.params;

});
imageService.createImage(_config, function(err, image) {

@@ -30,3 +36,2 @@ if(err) {

}
res.setHeader('Content-Type', 'image/' + _config.contentType);

@@ -36,3 +41,2 @@ res.setHeader('Cache-Control', 'public, max-age=' + _config.maxAge);

res.setHeader('Last-Modified', _config.expiryDate);
if(_config.delay) {

@@ -46,8 +50,7 @@ setTimeout(function() {

}
})
});
return app;
};
{
"name": "node-img-placeholder",
"version": "4.0.0",
"version": "4.1.0",
"description": "run a local image placeholder service",

@@ -40,5 +40,5 @@ "main": "lib/server.js",

"dependencies": {
"express": "4.13.3",
"extend": "3.0.0",
"gm": "1.21.1",
"express": "^4.13.3",
"extend": "^3.0.0",
"gm": "^1.21.1",
"morgan": "1.6.1",

@@ -45,0 +45,0 @@ "serve-favicon": "2.3.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