@manuscripts/transform 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -122,7 +122,7 @@ const parseJATSArticle = (doc) => {
122
122
  const type = article.getAttribute('article-type');
123
123
  manuscript.articleType = type || 'other';
124
124
  }
125
- if (references) {
125
+ if (references && references.items.size) {
126
126
  models.push(...createBibliographyModels(references));
127
127
  }
128
128
  if (marks.length) {
@@ -117,7 +117,7 @@ export const parseJATSArticle = (doc) => {
117
117
  const type = article.getAttribute('article-type');
118
118
  manuscript.articleType = type || 'other';
119
119
  }
120
- if (references) {
120
+ if (references && references.items.size) {
121
121
  models.push(...createBibliographyModels(references));
122
122
  }
123
123
  if (marks.length) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@manuscripts/transform",
3
3
  "description": "ProseMirror transformer for Manuscripts applications",
4
- "version": "2.0.2",
4
+ "version": "2.0.3",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-transform",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",