jats-cli 1.1.1 → 1.1.2

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.
package/dist/jats.cjs CHANGED
@@ -48999,7 +48999,7 @@ var {
48999
48999
  } = import_index.default;
49000
49000
 
49001
49001
  // src/version.ts
49002
- var version = "1.1.1";
49002
+ var version = "1.1.2";
49003
49003
  var version_default = version;
49004
49004
 
49005
49005
  // src/parse.ts
@@ -58807,7 +58807,9 @@ var Jats = class {
58807
58807
  return processAffiliation(aff);
58808
58808
  });
58809
58809
  const keywords = (_g = (_f = this.keywords) === null || _f === void 0 ? void 0 : _f.map((k) => toText(k))) !== null && _g !== void 0 ? _g : [];
58810
- const firstSubject = select2(Tags.subject, (_h = this.articleCategories) !== null && _h !== void 0 ? _h : this.front);
58810
+ const subjectScope = (_h = this.articleCategories) !== null && _h !== void 0 ? _h : this.front;
58811
+ const journalCollSubject = select2(`${Tags.subjGroup}[subj-group-type="hwp-journal-coll"] ${Tags.subject}`, subjectScope);
58812
+ const articleSubject = journalCollSubject !== null && journalCollSubject !== void 0 ? journalCollSubject : select2(Tags.subject, subjectScope);
58811
58813
  const journalTitle = select2(Tags.journalTitle, this.front);
58812
58814
  const license = this.license;
58813
58815
  let licenseString = null;
@@ -58844,7 +58846,7 @@ var Jats = class {
58844
58846
  affiliations: affiliations.length ? affiliations : void 0,
58845
58847
  keywords: keywords.length ? keywords : void 0,
58846
58848
  venue: journalTitle ? { title: toText(journalTitle) } : void 0,
58847
- subject: firstSubject ? toText(firstSubject) : void 0,
58849
+ subject: articleSubject ? toText(articleSubject) : void 0,
58848
58850
  license: licenseString !== null && licenseString !== void 0 ? licenseString : void 0,
58849
58851
  open_access: openAccess
58850
58852
  }, { property: "frontmatter", messages: {} });
@@ -65789,7 +65791,7 @@ function journalTransforms(fullTree, body) {
65789
65791
  }
65790
65792
 
65791
65793
  // ../jats-convert/dist/version.js
65792
- var version3 = "1.1.1";
65794
+ var version3 = "1.1.2";
65793
65795
  var version_default3 = version3;
65794
65796
 
65795
65797
  // ../jats-convert/dist/myst/inlineCitations.js
package/dist/version.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- declare const version = "1.1.1";
1
+ declare const version = "1.1.2";
2
2
  export default version;
3
3
  //# sourceMappingURL=version.d.ts.map
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
- const version = '1.1.1';
1
+ const version = '1.1.2';
2
2
  export default version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jats-cli",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Typescript CLI for with JATS",
5
5
  "author": "Rowan Cockett <rowan@continuousfoundation.org>",
6
6
  "homepage": "https://github.com/continuous-foundation/jats",
@@ -45,11 +45,11 @@
45
45
  "dependencies": {
46
46
  "doi-utils": "^2.0.6",
47
47
  "fair-principles": "^2.0.0",
48
- "jats-convert": "^1.1.1",
49
- "jats-fetch": "^1.1.1",
50
- "jats-tags": "^1.1.1",
51
- "jats-utils": "^1.1.1",
52
- "jats-xml": "^1.1.1",
48
+ "jats-convert": "^1.1.2",
49
+ "jats-fetch": "^1.1.2",
50
+ "jats-tags": "^1.1.2",
51
+ "jats-utils": "^1.1.2",
52
+ "jats-xml": "^1.1.2",
53
53
  "js-yaml": "^4.1.0",
54
54
  "unist-util-is": "^5.2.1",
55
55
  "unist-util-select": "^4.0.0"