jats-xml 1.0.5 → 1.0.6
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/cli/parse.d.ts +1 -1
- package/dist/cli/parse.d.ts.map +1 -1
- package/dist/cli/parse.js +1 -1
- package/dist/jats.cjs +3 -3
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
package/dist/cli/parse.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command } from 'commander';
|
|
2
2
|
import type { ISession } from '../types.js';
|
|
3
3
|
import { Jats } from '../jats.js';
|
|
4
|
-
import { type ResolutionOptions } from 'jats-
|
|
4
|
+
import { type ResolutionOptions } from 'jats-fetch';
|
|
5
5
|
export declare function parseJats(session: ISession, file: string, opts?: ResolutionOptions): Promise<Jats>;
|
|
6
6
|
export declare function addDownloadCLI(program: Command): void;
|
|
7
7
|
//# sourceMappingURL=parse.d.ts.map
|
package/dist/cli/parse.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../src/cli/parse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWpC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAA0C,KAAK,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../src/cli/parse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWpC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAA0C,KAAK,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAgD5F,wBAAsB,SAAS,CAC7B,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,MAAM,EACZ,IAAI,GAAE,iBAAoD,GACzD,OAAO,CAAC,IAAI,CAAC,CAef;AA2JD,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,QAI9C"}
|
package/dist/cli/parse.js
CHANGED
|
@@ -10,7 +10,7 @@ import { toText } from 'myst-common';
|
|
|
10
10
|
import { select, selectAll } from 'unist-util-select';
|
|
11
11
|
import { getSession } from '../session.js';
|
|
12
12
|
import { Jats } from '../jats.js';
|
|
13
|
-
import { downloadJatsFromUrl, DEFAULT_RESOLVERS } from 'jats-
|
|
13
|
+
import { downloadJatsFromUrl, DEFAULT_RESOLVERS } from 'jats-fetch';
|
|
14
14
|
import { findArticleId, formatDate, toDate } from '../utils.js';
|
|
15
15
|
function hasValidExtension(output) {
|
|
16
16
|
return ['.xml', '.jats'].includes(extname(output).toLowerCase());
|
package/dist/jats.cjs
CHANGED
|
@@ -13022,7 +13022,7 @@ var {
|
|
|
13022
13022
|
} = import_index.default;
|
|
13023
13023
|
|
|
13024
13024
|
// src/version.ts
|
|
13025
|
-
var version = "1.0.
|
|
13025
|
+
var version = "1.0.6";
|
|
13026
13026
|
var version_default = version;
|
|
13027
13027
|
|
|
13028
13028
|
// src/cli/parse.ts
|
|
@@ -16812,7 +16812,7 @@ function fixResponseChunkedTransferBadEnding(request, errorCallback) {
|
|
|
16812
16812
|
});
|
|
16813
16813
|
}
|
|
16814
16814
|
|
|
16815
|
-
// ../jats-
|
|
16815
|
+
// ../jats-fetch/dist/resolvers.js
|
|
16816
16816
|
var elife2 = {
|
|
16817
16817
|
test(url) {
|
|
16818
16818
|
return new URL(url).hostname === "elifesciences.org";
|
|
@@ -16857,7 +16857,7 @@ async function customResolveJatsUrlFromDoi(session, doiString, opts = { resolver
|
|
|
16857
16857
|
return jatsUrl;
|
|
16858
16858
|
}
|
|
16859
16859
|
|
|
16860
|
-
// ../jats-
|
|
16860
|
+
// ../jats-fetch/dist/download.js
|
|
16861
16861
|
async function downloadFromUrl(session, jatsUrl, opts) {
|
|
16862
16862
|
var _a, _b;
|
|
16863
16863
|
const toc = tic();
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const version = '1.0.
|
|
1
|
+
const version = '1.0.6';
|
|
2
2
|
export default version;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jats-xml",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
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",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"adm-zip": "^0.5.10",
|
|
49
49
|
"doi-utils": "^2.0.0",
|
|
50
50
|
"fair-principles": "^2.0.0",
|
|
51
|
-
"jats-
|
|
52
|
-
"jats-tags": "^1.0.
|
|
51
|
+
"jats-fetch": "^1.0.6",
|
|
52
|
+
"jats-tags": "^1.0.6",
|
|
53
53
|
"js-yaml": "^4.1.0",
|
|
54
54
|
"node-fetch": "^3.3.1",
|
|
55
55
|
"unist-util-is": "^5.2.1",
|