Socket
Socket
Sign inDemoInstall

ssr-for-bots

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ssr-for-bots - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

10

lib/index.d.ts

@@ -1,9 +0,1 @@

import { NextFunction, Request, Response } from "express";
interface Options {
prerender: Array<string>;
exclude: Array<string>;
useCache: boolean;
cacheRefreshRate: number;
}
declare function ssrForBots(options: Options): (req: Request, res: Response, next: NextFunction) => void;
export = ssrForBots;
export {};

1

lib/index.js

@@ -45,2 +45,3 @@ "use strict";

};
Object.defineProperty(exports, "__esModule", { value: true });
var ssr_1 = require("./ssr");

@@ -47,0 +48,0 @@ function ssrForBots(options) {

{
"name": "ssr-for-bots",
"version": "1.0.0",
"version": "1.0.1",
"description": "SSR-for-bots is an express middleware that will apply SSR to your application only when bots are visiting it",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

@@ -84,2 +84,2 @@ import { NextFunction, Request, Response } from "express";

export = ssrForBots;
module.exports = ssrForBots;

Sorry, the diff of this file is not supported yet

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