jats-xml 1.0.0 → 1.0.1

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
@@ -28100,7 +28100,7 @@ var {
28100
28100
  } = import_index.default;
28101
28101
 
28102
28102
  // src/version.ts
28103
- var version = "1.0.0";
28103
+ var version = "1.0.1";
28104
28104
  var version_default = version;
28105
28105
 
28106
28106
  // src/cli/parse.ts
@@ -31951,7 +31951,7 @@ async function ensureDtdExists(session, opts) {
31951
31951
  }
31952
31952
  }
31953
31953
  function isXmllintAvailable() {
31954
- return (0, import_which.sync)("xmllint", { nothrow: true });
31954
+ return import_which.default.sync("xmllint", { nothrow: true });
31955
31955
  }
31956
31956
  async function validateJatsAgainstDtd(session, file, opts) {
31957
31957
  if (!isXmllintAvailable()) {
@@ -2,7 +2,7 @@ import fs, { createReadStream } from 'fs';
2
2
  import path from 'path';
3
3
  import fetch from 'node-fetch';
4
4
  import unzipper from 'unzipper';
5
- import { sync as which } from 'which';
5
+ import which from 'which';
6
6
  import { makeExecutable, writeFileToFolder } from 'myst-cli-utils';
7
7
  import chalk from 'chalk';
8
8
  const JATS_VERSIONS = [
@@ -225,7 +225,7 @@ async function ensureDtdExists(session, opts) {
225
225
  * Test if xmllint is available as a cli command
226
226
  */
227
227
  function isXmllintAvailable() {
228
- return which('xmllint', { nothrow: true });
228
+ return which.sync('xmllint', { nothrow: true });
229
229
  }
230
230
  /**
231
231
  * Check if JATS file is valid based on JATS version/library/etc.
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const version = "1.0.0";
1
+ declare const version = "1.0.1";
2
2
  export default version;
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
- const version = '1.0.0';
1
+ const version = '1.0.1';
2
2
  export default version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jats-xml",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Types and utilities for working with JATS in Typescript",
5
5
  "author": "Rowan Cockett <rowan@curvenote.com>",
6
6
  "homepage": "https://github.com/curvenote/jats-xml",
@@ -47,7 +47,7 @@
47
47
  "dependencies": {
48
48
  "doi-utils": "^2.0.0",
49
49
  "fair-principles": "^2.0.0",
50
- "jats-tags": "^1.0.0",
50
+ "jats-tags": "^1.0.1",
51
51
  "js-yaml": "^4.1.0",
52
52
  "node-fetch": "^3.3.1",
53
53
  "unist-util-is": "^5.2.1",