create-react-app-ssr
Advanced tools
Comparing version 0.0.21 to 0.0.22
@@ -35,5 +35,5 @@ 'use strict'; | ||
var rules = Array.isArray(settngs.ssrBlacklist) ? settings.ssrBlacklist : settings.ssrBlacklist.split(','); | ||
rules.forEach(function (path) { | ||
return router.get(path, _serveAppStatic(settings)); | ||
var rules = Array.isArray(settings.ssrBlacklist) ? settings.ssrBlacklist : settings.ssrBlacklist.split(','); | ||
rules.forEach(function (rule) { | ||
return router.get(rule, _serveAppStatic(settings)); | ||
}); | ||
@@ -40,0 +40,0 @@ } |
{ | ||
"name": "create-react-app-ssr", | ||
"version": "0.0.21", | ||
"version": "0.0.22", | ||
"description": "Server Side Rendering for Create React App (with redux, router, code splitting, ...)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -27,7 +27,7 @@ const express = require('express') | ||
const { serveAppStatic } = require('./middlewares/serve-app-static') | ||
const rules = (Array.isArray(settngs.ssrBlacklist) | ||
const rules = (Array.isArray(settings.ssrBlacklist) | ||
? settings.ssrBlacklist | ||
: settings.ssrBlacklist.split(',') | ||
) | ||
rules.forEach(path => router.get(path, serveAppStatic(settings))) | ||
rules.forEach(rule => router.get(rule, serveAppStatic(settings))) | ||
} | ||
@@ -34,0 +34,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
94831