jats-xml 1.0.4 → 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.
@@ -1,2 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  export {};
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":""}
@@ -6,3 +6,4 @@ type Options = {
6
6
  export declare function testJatsFile(session: ISession, file: string, opts: Options): Promise<boolean>;
7
7
  export declare function addTestCLI(program: Command): void;
8
8
  export {};
9
+ //# sourceMappingURL=jats-test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jats-test.d.ts","sourceRoot":"","sources":["../../src/cli/jats-test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AAU5C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,KAAK,OAAO,GAAG;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAsBF,wBAAsB,YAAY,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,oBAsFhF;AAWD,wBAAgB,UAAU,CAAC,OAAO,EAAE,OAAO,QAE1C"}
@@ -1,5 +1,7 @@
1
1
  import { Command } from 'commander';
2
- import type { ISession, ResolutionOptions } from '../types.js';
2
+ import type { ISession } from '../types.js';
3
3
  import { Jats } from '../jats.js';
4
+ import { type ResolutionOptions } from 'jats-fetch';
4
5
  export declare function parseJats(session: ISession, file: string, opts?: ResolutionOptions): Promise<Jats>;
5
6
  export declare function addDownloadCLI(program: Command): void;
7
+ //# sourceMappingURL=parse.d.ts.map
@@ -0,0 +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,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,8 +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 } from './download.js';
14
- import { DEFAULT_RESOLVERS } from '../resolvers.js';
13
+ import { downloadJatsFromUrl, DEFAULT_RESOLVERS } from 'jats-fetch';
15
14
  import { findArticleId, formatDate, toDate } from '../utils.js';
16
15
  function hasValidExtension(output) {
17
16
  return ['.xml', '.jats'].includes(extname(output).toLowerCase());
@@ -1,2 +1,3 @@
1
1
  import { Command } from 'commander';
2
2
  export declare function addValidateCLI(program: Command): void;
3
+ //# sourceMappingURL=validate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../src/cli/validate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AA8C5C,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,QAE9C"}
package/dist/index.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  export { default as version } from './version.js';
2
2
  export { Jats } from './jats.js';
3
+ export { convertToUnist } from './utils.js';
3
4
  export * from './session.js';
4
5
  export * from './types.js';
5
6
  export * from './validate/index.js';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC"}
package/dist/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export { default as version } from './version.js';
2
2
  export { Jats } from './jats.js';
3
+ export { convertToUnist } from './utils.js';
3
4
  export * from './session.js';
4
5
  export * from './types.js';
5
6
  export * from './validate/index.js';