asciidoctor 3.0.2 → 3.0.4

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/types/index.d.ts +11 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asciidoctor",
3
- "version": "3.0.2",
3
+ "version": "3.0.4",
4
4
  "description": "A JavaScript AsciiDoc processor, cross-compiled from the Ruby-based AsciiDoc implementation, Asciidoctor, using Opal",
5
5
  "main": "index.js",
6
6
  "types": "types",
@@ -46,11 +46,11 @@
46
46
  "homepage": "https://github.com/asciidoctor/asciidoctor.js",
47
47
  "dependencies": {
48
48
  "@asciidoctor/cli": "4.0.0",
49
- "@asciidoctor/core": "3.0.2",
49
+ "@asciidoctor/core": "3.0.4",
50
50
  "ejs": "^3.1.2",
51
51
  "handlebars": "^4.7.6",
52
52
  "nunjucks": "^3.2.1",
53
- "pug": "^2.0.4"
53
+ "pug": "^3.0.0"
54
54
  },
55
55
  "devDependencies": {
56
56
  "pkg": "5.8.1"
package/types/index.d.ts CHANGED
@@ -1,9 +1,10 @@
1
1
  /// <reference types="node" />
2
2
  // TypeScript Version: 3.7
3
- import Author = Document.Author;
4
- import Title = Document.Title;
5
- import Registry = Extensions.Registry;
6
- import Cursor = Reader.Cursor;
3
+ type Author = Document.Author;
4
+ type Title = Document.Title;
5
+ type TitleOptions = Document.Title.Options;
6
+ type Registry = Extensions.Registry;
7
+ type Cursor = Reader.Cursor;
7
8
 
8
9
  declare class OpalKlass<T> {
9
10
  $new(...params: any[]): T;
@@ -1707,12 +1708,12 @@ export class Document extends AbstractBlock {
1707
1708
  * @returns the resolved title as a {@link Document/Title} if the partition option is passed
1708
1709
  * or a {string} if not or undefined if no value can be resolved.
1709
1710
  */
1710
- getDocumentTitle(options?: Title.Options): string | Title | undefined;
1711
+ getDocumentTitle(options?: TitleOptions): string | Title | undefined;
1711
1712
 
1712
1713
  /**
1713
1714
  * @see {@link Document#getDocumentTitle}
1714
1715
  */
1715
- getDoctitle(options: Title.Options): string | Title;
1716
+ getDoctitle(options: TitleOptions): string | Title;
1716
1717
 
1717
1718
  /**
1718
1719
  * Get the document catalog JSON object.
@@ -2715,6 +2716,10 @@ export class AbstractNode implements Logging {
2715
2716
  *
2716
2717
  * @returns An Array of Strings representing the substitution operation or nothing if no subs are found.
2717
2718
  */
2719
+
2720
+ node_name: string;
2721
+ context: string
2722
+
2718
2723
  resolveSubstitutions(subs: string, type?: string, defaults?: string[], subject?: string): string[] | undefined;
2719
2724
 
2720
2725
  /**