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

connect-assetmanager

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

connect-assetmanager - npm Package Compare versions

Comparing version 0.0.22 to 0.0.23

17

lib/assetmanager.js

@@ -151,8 +151,15 @@ var fs = require('fs')

var file = contents[i];
if (typeof file == "string"){
continue;
}
if (typeof file.modified != "undefined"){
file.modified = new Date();
}
if (Object.prototype.toString.call(file.modified) === "[object Date]" && !isNaN(file.modified)){
} else {
file.modified = new Date();
}
if (!lastModified || lastModified.getTime() < file.modified.getTime()) {
if (typeof file.modified != "undefined" && file.modified == null){
lastModified = new Date();
} else {
lastModified = file.modified;
}
lastModified = file.modified;
}

@@ -159,0 +166,0 @@ if (!group.preManipulate) {

{
"name" : "connect-assetmanager",
"description" : "Middleware for Connect (node.js) for handling your static assets.",
"version" : "0.0.22",
"version" : "0.0.23",
"author" : "Mathias Pettersson <mape@mape.me>",

@@ -6,0 +6,0 @@ "engines" : ["node"],

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