Skip to content
This repository has been archived by the owner on Jun 30, 2020. It is now read-only.

Commit

Permalink
stacking can now specify whether to add new
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamdyson committed Jul 6, 2019
1 parent dd47618 commit 58086fb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -91,5 +91,5 @@
"spellcheck": "find -type f \\( -name \"*.js\" -or -name \"*.md\" \\) ! -path \"./dist/*\" ! -path \"./dist/**/*\" ! -path \"./node_modules/**/*\" ! -path \"./test-coverage/**/*\" -exec npx cspell {} +",
"test": "npx jest --runInBand"
},
"version": "7.0.0"
"version": "7.1.0"
}
3 changes: 2 additions & 1 deletion stacking/createOrAddToStacksOfParentMatch/index.js
Expand Up @@ -8,6 +8,7 @@ const

module.exports =
({
addNewInTarget = true,
items,
keysAndPatterns,
targetLevelOrStack,
Expand All @@ -26,7 +27,7 @@ module.exports =
})
?
createStackWhenIdentifierOrItemOrLevelOrAddWhenStack({
addNewInTarget: true,
addNewInTarget,
identifierOrItemOrLevelOrStack,
targetLevelOrStack,
})
Expand Down
2 changes: 2 additions & 0 deletions stacking/createOrAddToStacksUniformly/index.js
Expand Up @@ -7,6 +7,7 @@ const

module.exports =
({
addNewInTarget = false,
items,
targetLevelOrStack,
}) =>
Expand All @@ -16,6 +17,7 @@ module.exports =
replace:
({ identifierOrItemOrLevelOrStack }) =>
createStackWhenIdentifierOrItemOrLevelOrAddWhenStack({
addNewInTarget,
identifierOrItemOrLevelOrStack,
targetLevelOrStack,
}),
Expand Down
3 changes: 2 additions & 1 deletion stacking/createOrAddToStacksUsingFileSystem/index.js
Expand Up @@ -8,6 +8,7 @@ const

module.exports =
({
addNewInTarget = true,
directory,
items,
subsetIdentifierHierarchy,
Expand All @@ -31,7 +32,7 @@ module.exports =
targetLevelOrStack
?
createStackWhenIdentifierOrItemOrLevelOrAddWhenStack({
addNewInTarget: true,
addNewInTarget,
identifierOrItemOrLevelOrStack,
targetLevelOrStack,
})
Expand Down

0 comments on commit 58086fb

Please sign in to comment.