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.3 to 0.4.4

1

commands/up/writeReducer/addCustomFunctions.js

@@ -19,3 +19,2 @@ const { transforms, concat } = require('../../../tools/utils');

const index = b.indexOf(`const ${name}CustomFunction`);
console.log(index);
if (index !== -1) return b;

@@ -22,0 +21,0 @@ return concat([

18

commands/up/writeReducerTests/writeReducerTests.js

@@ -15,10 +15,12 @@ const {

ensureImport(`${cases.camel}Reducer`, '../reducer', { destructure: true }),
...Object.keys(actions).map(actionName => buf => {
const actionCases = new Cases(parseCamelCaseToArray(actionName)).all();
return transforms(buf, [
ensureImport(actionCases.camel, '../actions', {
destructure: true,
}),
]);
}),
...Object.keys(actions)
.filter(action => !actions[action].customFunction)
.map(actionName => buf => {
const actionCases = new Cases(parseCamelCaseToArray(actionName)).all();
return transforms(buf, [
ensureImport(actionCases.camel, '../actions', {
destructure: true,
}),
]);
}),
b =>

@@ -25,0 +27,0 @@ concat([

@@ -23,3 +23,2 @@ const {

ensureImport('takeLatest', 'redux-saga/effects', { destructure: true }),
ensureImport('call', 'redux-saga/effects', { destructure: true }),
ensureImport('put', 'redux-saga/effects', { destructure: true }),

@@ -93,2 +92,10 @@ b => {

},
b => {
if (b.indexOf('call(') !== -1) {
return ensureImport('call', 'redux-saga/effects', {
destructure: true,
})(b);
}
return b;
},
ensureImport(actionCases.constant, './constants', { destructure: true }),

@@ -95,0 +102,0 @@ prettify,

@@ -12,3 +12,2 @@ const {

ensureImport('takeLatest', 'redux-saga/effects', { destructure: true }),
ensureImport('call', 'redux-saga/effects', { destructure: true }),
ensureImport('put', 'redux-saga/effects', { destructure: true }),

@@ -73,2 +72,11 @@ b => {

ensureImport(actionCases.constant, './constants', { destructure: true }),
b => {
console.log(b.indexOf('call('));
if (b.indexOf('call(') !== -1) {
return ensureImport('call', 'redux-saga/effects', {
destructure: true,
})(b);
}
return b;
},
prettify,

@@ -75,0 +83,0 @@ ]);

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

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

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