Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

create-react-app-ssr

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-react-app-ssr - npm Package Compare versions

Comparing version 0.0.20 to 0.0.21

3

lib/create-ssr-router.js

@@ -35,3 +35,4 @@ 'use strict';

settings.ssrBlacklist.forEach(function (path) {
var rules = Array.isArray(settngs.ssrBlacklist) ? settings.ssrBlacklist : settings.ssrBlacklist.split(',');
rules.forEach(function (path) {
return router.get(path, _serveAppStatic(settings));

@@ -38,0 +39,0 @@ });

{
"name": "create-react-app-ssr",
"version": "0.0.20",
"version": "0.0.21",
"description": "Server Side Rendering for Create React App (with redux, router, code splitting, ...)",

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

@@ -27,3 +27,7 @@ const express = require('express')

const { serveAppStatic } = require('./middlewares/serve-app-static')
settings.ssrBlacklist.forEach(path => router.get(path, serveAppStatic(settings)))
const rules = (Array.isArray(settngs.ssrBlacklist)
? settings.ssrBlacklist
: settings.ssrBlacklist.split(',')
)
rules.forEach(path => router.get(path, serveAppStatic(settings)))
}

@@ -30,0 +34,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