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

bigseo

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bigseo - npm Package Compare versions

Comparing version 0.6.1 to 0.6.2

31

index.js

@@ -62,19 +62,24 @@ 'use_strict';

var rawUrl = req.body.url;
rawUrl = _this.processUrl(rawUrl);
var url = _this.encodeURL(rawUrl);
_this.log("Saving cache for: " + rawUrl);
_this.log("Saving at: " + _this.cachePathFor(url));
_this.validCacheFor(rawUrl, function(valid) {
if(!valid) {
_this.log("Saving cache for: " + rawUrl);
_this.log("Saving at: " + _this.cachePathFor(url));
fs.writeFile(_this.cachePathFor(url), body, function(err) {
if(err) {
console.log(err);
_this.log("Error saving cache for: " + rawUrl);
res.send(500);
fs.writeFile(_this.cachePathFor(url), body, function(err) {
if(err) {
console.log(err);
_this.log("Error saving cache for: " + rawUrl);
res.send(500);
}
else {
_this.log("New cache for url: " + rawUrl);
res.send(200);
}
});
}
else {
_this.log("New cache for url: " + rawUrl);
res.send(200);
_this.log("Cache still valid for: " + rawUrl);
res.send(500);
}

@@ -89,3 +94,2 @@ });

var url = req.protocol + "://" + req.headers.host + req.originalUrl;
console.log(url);

@@ -154,2 +158,3 @@ url = _this.processUrl(url);

var url = req.body.url;
url = _this.processUrl(url);
_this.validCacheFor(url, function(valid) {

@@ -156,0 +161,0 @@ res.json({

{
"name": "bigseo",
"version": "0.6.1",
"version": "0.6.2",
"description": "BigSEO is a ExpresJS module built for apps who need a SEO Engine exclusively for web crawlers such as Google, Bing, Facebook, etc.",

@@ -5,0 +5,0 @@ "keywords": "seo, engine, express, cache, crawler, bigseo, angularjs",

@@ -25,2 +25,4 @@ # BigSEO

## Release notes
1. **0.6.2**
1. Verifying cache validation before saving
1. **0.6.1**

@@ -27,0 +29,0 @@ 1. Fixing root url hashbang that wasn't matching

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