Socket
Socket
Sign inDemoInstall

boilersuit

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

boilersuit - npm Package Compare versions

Comparing version 0.4.2 to 0.4.3

12

commands/up/writeIndex/writeImportsToIndex.js

@@ -39,9 +39,11 @@ const {

},
b => b.replace('\t', ' '),
/** Get actions into mapDispatchToProps */
b => {
const searchTerm = concat([
'mapDispatchToProps(dispatch) {',
' return {\n',
]);
const index = b.indexOf(searchTerm) + searchTerm.length;
const index =
b.indexOf('return {\n', b.indexOf('mapDispatchToProps')) +
'return {\n'.length;
if (index === -1 + 'return {\n'.length) {
return b;
}
return (

@@ -48,0 +50,0 @@ b.slice(0, index) +

@@ -70,7 +70,8 @@ const Cases = require('../../../tools/cases');

b => {
const searchTerm = concat([
'mapDispatchToProps(dispatch) {',
' return {\n',
]);
const index = b.indexOf(searchTerm) + searchTerm.length;
const index =
b.indexOf('return {\n', b.indexOf('mapDispatchToProps')) +
'return {\n'.length;
if (index === -1 + 'return {\n'.length) {
return b;
}
return (

@@ -77,0 +78,0 @@ b.slice(0, index) +

{
"name": "boilersuit",
"description": "A CLI tool for generating selectors, reducers, actions, constants and sagas in react-boilerplate",
"version": "0.4.2",
"version": "0.4.3",
"main": "index.js",

@@ -6,0 +6,0 @@ "author": "Matt Pocock <matt.pocock@thevirtualforge.com>",

@@ -1,3 +0,5 @@

<div style="text-align: center"><img src="https://raw.githubusercontent.com/mattpocock/boilersuit/master/logo.png" max-height="240px" alt="boilerplate logo"/></div>
<div style="text-align: center; margin-bottom: 20px;"><img src="https://raw.githubusercontent.com/mattpocock/boilersuit/master/logo.png" max-height="240px" alt="boilerplate logo"/></div>
<img src="https://raw.githubusercontent.com/mattpocock/boilersuit-raw/master/general.gif" />
## What Is Boilersuit?

@@ -23,6 +25,2 @@

## How To Use Boilersuit - Video
[![how to use boilersuit](http://img.youtube.com/vi/HHsyoCgzFGg/0.jpg)](http://www.youtube.com/watch?v=HHsyoCgzFGg 'How To Use Boilersuit')
## How To Install

@@ -207,2 +205,4 @@

<img src="https://raw.githubusercontent.com/mattpocock/boilersuit-raw/master/initialState.gif" />
This is an object which defines the initial data structure of the reducer's state.

@@ -255,2 +255,4 @@

<img src="https://raw.githubusercontent.com/mattpocock/boilersuit-raw/master/actions.gif" />
Every reducer has an `"actions": {}` attribute, which is required to make the reducer work.

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