boilersuit
Advanced tools
Comparing version 0.3.6 to 0.3.7
@@ -14,2 +14,3 @@ const writeIndex = require('./writeIndex'); | ||
const detectDiff = require('./detectDiff'); | ||
const reservedKeywords = require('../../tools/constants/reservedKeywords'); | ||
@@ -27,9 +28,3 @@ module.exports = ({ | ||
const arrayOfDomains = Object.keys(schema) | ||
.filter( | ||
key => | ||
![ | ||
// Add keys to this list to reserve them | ||
'compose', | ||
].includes(key), | ||
) | ||
.filter(key => !reservedKeywords.includes(key)) | ||
.map(key => ({ | ||
@@ -36,0 +31,0 @@ ...schema[key], |
@@ -10,4 +10,5 @@ #!/usr/bin/env node | ||
const rm = require('./commands/rm'); | ||
const { version } = require('./package.json'); | ||
program.version('0.3.6'); | ||
program.version(version); | ||
@@ -14,0 +15,0 @@ program |
{ | ||
"name": "boilersuit", | ||
"description": "A CLI tool for generating selectors, reducers, actions, constants and sagas in react-boilerplate", | ||
"version": "0.3.6", | ||
"version": "0.3.7", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "author": "Matt Pocock <matt.pocock@thevirtualforge.com>", |
const { concat } = require('./utils'); | ||
const rm = require('../commands/rm'); | ||
const reservedKeywords = require('../tools/constants/reservedKeywords'); | ||
@@ -7,3 +8,3 @@ module.exports = (schema, folder) => { | ||
const domainKeys = Object.keys(schema).filter( | ||
domain => !['compose'].includes(domain), | ||
domain => !reservedKeywords.includes(domain), | ||
); | ||
@@ -10,0 +11,0 @@ if (!domainKeys.length) { |
const { concat } = require('./utils'); | ||
const reservedKeywords = require('./constants/reservedKeywords'); | ||
@@ -6,3 +7,3 @@ module.exports = (schema, config) => { | ||
const domains = Object.keys(schema) | ||
.filter(domain => !['compose'].includes(domain)) | ||
.filter(domain => !reservedKeywords.includes(domain)) | ||
.map(key => ({ | ||
@@ -9,0 +10,0 @@ name: key, |
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
451768
68
3168