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

next-redux-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-redux-wrapper - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

2

package.json
{
"name": "next-redux-wrapper",
"version": "1.1.1",
"version": "1.1.2",
"description": "Redux wrapper for Next.js",

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

@@ -44,4 +44,4 @@ var React = require('react');

var initialState = props.initialState;
var initialProps = props.initialProps;
var initialState = props.initialState || {};
var initialProps = props.initialProps || {};
var hasStore = props.store && props.store.dispatch && props.store.getState;

@@ -57,3 +57,3 @@ var store = hasStore

Object.keys(props).forEach(function(p) { if (!~skipMerge.indexOf(p)) mergedProps[p] = props[p]; });
Object.keys(initialProps).forEach(function(p) { mergedProps[p] = initialProps[p]; });
Object.keys(initialProps || {}).forEach(function(p) { mergedProps[p] = initialProps[p]; });

@@ -60,0 +60,0 @@ return React.createElement( //FIXME This will create double Provider for _document case

@@ -80,2 +80,12 @@ import React from "react";

await verifyComponent(WrappedPage);
});
test('simple props', () => {
const App = ({foo}) => (<div>{foo}</div>);
const WrappedApp = wrapper(makeStore, state => state)(App);
const component = renderer.create(<WrappedApp foo="foo"/>);
expect(component.toJSON()).toMatchSnapshot();
});

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