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.2 to 0.0.3

lib/create-ssr-render.js

1

index.js
module.exports = {
createSSRRouter: require('./lib/create-ssr-router').createSSRRouter,
createSSRRemder: require('./lib/create-ssr-render').createSSRRemder,
}

6

lib/middlewares/serve-app-ssr.js

@@ -23,4 +23,6 @@ 'use strict';

Helmet = _require.Helmet;
// const { staticRender } = require('../../../../src/index.ssr')
var _require2 = require('../ssr-version'),
ssrVersion = _require2.ssrVersion;
var readFile = function readFile(filePath) {

@@ -138,3 +140,3 @@ var encoding = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'utf8';

case 9:
if (!(staticRender.ssrVersion !== '0.0.2')) {
if (!(staticRender.ssrVersion !== ssrVersion)) {
_context.next = 11;

@@ -141,0 +143,0 @@ break;

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

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

@@ -5,3 +5,3 @@ const path = require('path')

const { Helmet } = require('react-helmet')
// const { staticRender } = require('../../../../src/index.ssr')
const { ssrVersion } = require('../ssr-version')

@@ -91,3 +91,3 @@ const readFile = (filePath, encoding = 'utf8') => new Promise((resolve, reject) => {

}
if (staticRender.ssrVersion !== '0.0.2') {
if (staticRender.ssrVersion !== ssrVersion) {
throw new Error('ssr static render version signature does not appear to match')

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