jats-xml 1.0.1 → 1.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.
@@ -1,10 +1,10 @@
1
- import type { ISession, Options } from '../types.js';
1
+ import type { ISession, ResolutionOptions } from '../types.js';
2
2
  /**
3
3
  * https://www.ncbi.nlm.nih.gov/pmc/tools/id-converter-api/
4
4
  */
5
- export declare function convertPMID2PMCID(session: ISession, PMID: string, opts: Options): Promise<string | undefined>;
6
- export declare function checkIfPubMedCentralHasJats(session: ISession, urlOrDoi: string, opts: Options): Promise<string | undefined>;
7
- export declare function downloadJatsFromUrl(session: ISession, urlOrDoi: string, opts?: Options): Promise<{
5
+ export declare function convertPMID2PMCID(session: ISession, PMID: string, opts: ResolutionOptions): Promise<string | undefined>;
6
+ export declare function checkIfPubMedCentralHasJats(session: ISession, urlOrDoi: string, opts: ResolutionOptions): Promise<string | undefined>;
7
+ export declare function downloadJatsFromUrl(session: ISession, urlOrDoi: string, opts?: ResolutionOptions): Promise<{
8
8
  success: boolean;
9
9
  source: string;
10
10
  data?: string;
@@ -1,5 +1,5 @@
1
1
  import { Command } from 'commander';
2
- import type { ISession, Options } from '../types.js';
2
+ import type { ISession, ResolutionOptions } from '../types.js';
3
3
  import { Jats } from '../jats.js';
4
- export declare function parseJats(session: ISession, file: string, opts?: Options): Promise<Jats>;
4
+ export declare function parseJats(session: ISession, file: string, opts?: ResolutionOptions): Promise<Jats>;
5
5
  export declare function addDownloadCLI(program: Command): void;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export { default as version } from './version.js';
2
2
  export { Jats } from './jats.js';
3
+ export * from './session.js';
3
4
  export * from './types.js';
4
5
  export * from './validate/index.js';
package/dist/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  export { default as version } from './version.js';
2
2
  export { Jats } from './jats.js';
3
+ export * from './session.js';
3
4
  export * from './types.js';
4
5
  export * from './validate/index.js';