commonform-group-series
Advanced tools
Comparing version 2.0.0 to 3.0.0
@@ -7,6 +7,6 @@ var predicate = require('commonform-predicate') | ||
if (isChild(element)) { | ||
// `element` is part of the previous series. | ||
// `element` is part of the previous series. | ||
if (index > 0 && isChild(content[index - 1])) { | ||
groups[groups.length - 1].content.push(element) | ||
// `element` starts a new series. | ||
// `element` starts a new series. | ||
} else { | ||
@@ -19,6 +19,6 @@ groups.push({ | ||
} else { | ||
// `element` is part of the previous paragraph. | ||
// `element` is part of the previous paragraph. | ||
if (index > 0 && !isChild(content[index - 1])) { | ||
groups[groups.length - 1].content.push(element) | ||
// `element` starts a new paragraph. | ||
// `element` starts a new paragraph. | ||
} else { | ||
@@ -25,0 +25,0 @@ groups.push({ |
{ | ||
"name": "commonform-group-series", | ||
"description": "group paragraphs and series of children within Common Forms", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"author": "Kyle E. Mitchell <kyle@kemitchell.com> (http://kemitchell.com)", | ||
@@ -10,3 +10,3 @@ "files": [ | ||
"dependencies": { | ||
"commonform-predicate": "^3.0.0" | ||
"commonform-predicate": "^4.0.0" | ||
}, | ||
@@ -16,3 +16,3 @@ "devDependencies": { | ||
"replace-require-self": "^1.1.1", | ||
"standard": "^12.0.1" | ||
"standard": "^14.0.2" | ||
}, | ||
@@ -19,0 +19,0 @@ "keywords": [ |
# commonform-group-series | ||
group paragraphs and series o2.0f children within Common Forms | ||
group paragraphs and series of children within Common Forms | ||
@@ -12,6 +12,4 @@ ```javascript | ||
var C = { | ||
repository: 'api.commonform.org', | ||
publisher: 'test', | ||
project: 'test', | ||
edition: '1e', | ||
component: 'https://example.com/component', | ||
version: '1.0.0', | ||
substitutions: { terms: {}, headings: {} } | ||
@@ -18,0 +16,0 @@ } |
4099
41
+ Addedcommonform-predicate@4.0.0(transitive)
+ Addedhas@1.0.4(transitive)
- Removedcommonform-predicate@3.0.1(transitive)
Updatedcommonform-predicate@^4.0.0