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

cardserver

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cardserver - npm Package Compare versions

Comparing version 2.0.4 to 2.0.5

3

cardserver.js

@@ -11,3 +11,2 @@ #!/usr/bin/env node

const maxage = 60 * 60 * 24 * 7
const storage = '/tmp/cards'

@@ -18,3 +17,3 @@ const card = async (req, res) => {

const imagePath = `${storage}/${host}/${req.params[0]}.png`
const imagePath = `/tmp/cards/${host}/${req.params[0].replace('cards/', '')}.png`
const imageExpired = !fs.existsSync(imagePath) || Date.parse(fs.statSync(imagePath).mtime) < new Date - maxage * 1000

@@ -21,0 +20,0 @@

{
"name": "cardserver",
"version": "2.0.4",
"version": "2.0.5",
"description": "A simple social media card renderer written using Puppeteer – screenshot card-like webpages on-the-fly",

@@ -5,0 +5,0 @@ "main": "cardserver.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