@asciidoctor/core 3.0.1 → 3.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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Asciidoctor.js 3.0.
|
|
2
|
+
* @license Asciidoctor.js 3.0.3 | MIT | https://github.com/asciidoctor/asciidoctor.js
|
|
3
3
|
*/
|
|
4
4
|
(function(global_object) {
|
|
5
5
|
"use strict";
|
|
@@ -47639,7 +47639,7 @@ Extensions.newBlockMacroProcessor = function (name, functions) {
|
|
|
47639
47639
|
}
|
|
47640
47640
|
|
|
47641
47641
|
|
|
47642
|
-
var ASCIIDOCTOR_JS_VERSION = '3.0.
|
|
47642
|
+
var ASCIIDOCTOR_JS_VERSION = '3.0.3';
|
|
47643
47643
|
|
|
47644
47644
|
/**
|
|
47645
47645
|
* Get Asciidoctor.js version number.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Asciidoctor.js 3.0.
|
|
2
|
+
Asciidoctor.js 3.0.3 | MIT | https://github.com/asciidoctor/asciidoctor.js
|
|
3
3
|
*/
|
|
4
4
|
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(b){var n=0;return function(){return n<b.length?{done:!1,value:b[n++]}:{done:!0}}};$jscomp.arrayIterator=function(b){return{next:$jscomp.arrayIteratorImpl(b)}};$jscomp.makeIterator=function(b){var n="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];return n?n.call(b):$jscomp.arrayIterator(b)};$jscomp.arrayFromIterator=function(b){for(var n,x=[];!(n=b.next()).done;)x.push(n.value);return x};
|
|
5
5
|
$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(b,n,x){b!=Array.prototype&&b!=Object.prototype&&(b[n]=x.value)};$jscomp.getGlobal=function(b){return"undefined"!=typeof window&&window===b?b:"undefined"!=typeof global&&null!=global?global:b};$jscomp.global=$jscomp.getGlobal(this);
|
|
@@ -1448,5 +1448,5 @@ return a===Opal.nil?void 0:a};m.prototype.parseContentAs=function(a){this.$parse
|
|
|
1448
1448
|
m=U.DocinfoProcessor;m.prototype.prefer=function(){this.$prefer()};m.prototype.atLocation=function(a){this.$at_location(a)};U.createPostprocessor=function(a,b){1===arguments.length&&(b=a,a=null);return q("Postprocessor",a,b)};U.newPostprocessor=function(a,b){1===arguments.length&&(b=a,a=null);return this.createPostprocessor(a,b).$new()};U.createPreprocessor=function(a,b){1===arguments.length&&(b=a,a=null);return q("Preprocessor",a,b)};U.newPreprocessor=function(a,b){1===arguments.length&&(b=a,a=null);
|
|
1449
1449
|
return this.createPreprocessor(a,b).$new()};U.createTreeProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return q("TreeProcessor",a,b)};U.newTreeProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return this.createTreeProcessor(a,b).$new()};U.createIncludeProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return q("IncludeProcessor",a,b)};U.newIncludeProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return this.createIncludeProcessor(a,b).$new()};U.createDocinfoProcessor=
|
|
1450
1450
|
function(a,b){1===arguments.length&&(b=a,a=null);return q("DocinfoProcessor",a,b)};U.newDocinfoProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return this.createDocinfoProcessor(a,b).$new()};U.createBlockProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return q("BlockProcessor",a,b)};U.newBlockProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return this.createBlockProcessor(a,b).$new()};U.createInlineMacroProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return q("InlineMacroProcessor",
|
|
1451
|
-
a,b)};U.newInlineMacroProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return this.createInlineMacroProcessor(a,b).$new()};U.createBlockMacroProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return q("BlockMacroProcessor",a,b)};U.newBlockMacroProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return this.createBlockMacroProcessor(a,b).$new()};Opal.Asciidoctor.prototype.getVersion=function(){return"3.0.
|
|
1451
|
+
a,b)};U.newInlineMacroProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return this.createInlineMacroProcessor(a,b).$new()};U.createBlockMacroProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return q("BlockMacroProcessor",a,b)};U.newBlockMacroProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return this.createBlockMacroProcessor(a,b).$new()};Opal.Asciidoctor.prototype.getVersion=function(){return"3.0.3"};return Opal.Asciidoctor}var module$build$asciidoctor_browser={};
|
|
1452
1452
|
module$build$asciidoctor_browser.default=Asciidoctor$$module$build$asciidoctor_browser;
|
|
@@ -47387,7 +47387,7 @@ Extensions.newBlockMacroProcessor = function (name, functions) {
|
|
|
47387
47387
|
}
|
|
47388
47388
|
|
|
47389
47389
|
|
|
47390
|
-
var ASCIIDOCTOR_JS_VERSION = '3.0.
|
|
47390
|
+
var ASCIIDOCTOR_JS_VERSION = '3.0.3';
|
|
47391
47391
|
|
|
47392
47392
|
/**
|
|
47393
47393
|
* Get Asciidoctor.js version number.
|
|
@@ -7,12 +7,13 @@ var fs = require('fs');
|
|
|
7
7
|
var Opal = require('@asciidoctor/opal-runtime');
|
|
8
8
|
var unxhr = require('unxhr');
|
|
9
9
|
|
|
10
|
+
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
10
11
|
/* global Asciidoctor, ASCIIDOCTOR_JS_VERSION */
|
|
11
12
|
|
|
12
13
|
const __path__ = path;
|
|
13
14
|
const __XMLHttpRequest__ = unxhr.XMLHttpRequest;
|
|
14
|
-
const __asciidoctorDistDir__ = path.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (
|
|
15
|
-
const __require__ = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (
|
|
15
|
+
const __asciidoctorDistDir__ = path.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('asciidoctor-node.cjs', document.baseURI).href))));
|
|
16
|
+
const __require__ = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('asciidoctor-node.cjs', document.baseURI).href)));
|
|
16
17
|
|
|
17
18
|
function asciidoctorNode (moduleConfig) {
|
|
18
19
|
Opal.modules["asciidoctor/js/opal_ext/electron/io"] = function(Opal) {/* Generated by Opal 1.7.3 */
|
|
@@ -6780,7 +6781,7 @@ Opal.modules["asciidoctor/inline"] = function(Opal) {/* Generated by Opal 1.7.3
|
|
|
6780
6781
|
self.$attr_accessor("target");
|
|
6781
6782
|
|
|
6782
6783
|
$def(self, '$initialize', function $$initialize(parent, context, text, opts) {
|
|
6783
|
-
var self = this;
|
|
6784
|
+
$$initialize.$$p || nil; var self = this;
|
|
6784
6785
|
|
|
6785
6786
|
$$initialize.$$p = null;
|
|
6786
6787
|
|
|
@@ -21549,7 +21550,7 @@ Extensions.newBlockMacroProcessor = function (name, functions) {
|
|
|
21549
21550
|
};
|
|
21550
21551
|
|
|
21551
21552
|
|
|
21552
|
-
var ASCIIDOCTOR_JS_VERSION = '3.0.
|
|
21553
|
+
var ASCIIDOCTOR_JS_VERSION = '3.0.3';
|
|
21553
21554
|
|
|
21554
21555
|
/**
|
|
21555
21556
|
* Get Asciidoctor.js version number.
|
package/dist/node/asciidoctor.js
CHANGED
|
@@ -23022,7 +23022,7 @@ Extensions.newBlockMacroProcessor = function (name, functions) {
|
|
|
23022
23022
|
}
|
|
23023
23023
|
|
|
23024
23024
|
|
|
23025
|
-
var ASCIIDOCTOR_JS_VERSION = '3.0.
|
|
23025
|
+
var ASCIIDOCTOR_JS_VERSION = '3.0.3';
|
|
23026
23026
|
|
|
23027
23027
|
/**
|
|
23028
23028
|
* Get Asciidoctor.js version number.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@asciidoctor/core",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"description": "Asciidoctor - the core library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/node/asciidoctor.js",
|
|
@@ -8,12 +8,19 @@
|
|
|
8
8
|
"module": "dist/browser/asciidoctor.js",
|
|
9
9
|
"exports": {
|
|
10
10
|
"node": {
|
|
11
|
-
"import":
|
|
12
|
-
|
|
11
|
+
"import": {
|
|
12
|
+
"default": "./dist/node/asciidoctor.js",
|
|
13
|
+
"types": "./types/index.d.ts"
|
|
14
|
+
},
|
|
15
|
+
"require": {
|
|
16
|
+
"default": "./dist/node/asciidoctor.cjs",
|
|
17
|
+
"types": "./types/index.d.cts"
|
|
18
|
+
}
|
|
13
19
|
},
|
|
14
|
-
"default": "./dist/browser/asciidoctor.js"
|
|
20
|
+
"default": "./dist/browser/asciidoctor.js",
|
|
21
|
+
"types": "./types/index.d.ts"
|
|
15
22
|
},
|
|
16
|
-
"types": "types",
|
|
23
|
+
"types": "types/index.d.ts",
|
|
17
24
|
"engines": {
|
|
18
25
|
"node": ">=16",
|
|
19
26
|
"npm": ">=8"
|
|
@@ -80,39 +87,40 @@
|
|
|
80
87
|
"unxhr": "1.2.0"
|
|
81
88
|
},
|
|
82
89
|
"devDependencies": {
|
|
83
|
-
"@rollup/plugin-commonjs": "
|
|
84
|
-
"@rollup/plugin-json": "6.
|
|
85
|
-
"@rollup/plugin-replace": "5.0.
|
|
86
|
-
"@types/node": "
|
|
87
|
-
"@types/nunjucks": "3.2.
|
|
88
|
-
"@typescript-eslint/eslint-plugin": "
|
|
89
|
-
"@typescript-eslint/parser": "
|
|
90
|
+
"@rollup/plugin-commonjs": "25.0.7",
|
|
91
|
+
"@rollup/plugin-json": "6.1.0",
|
|
92
|
+
"@rollup/plugin-replace": "5.0.5",
|
|
93
|
+
"@types/node": "20.10.6",
|
|
94
|
+
"@types/nunjucks": "3.2.6",
|
|
95
|
+
"@typescript-eslint/eslint-plugin": "6.17.0",
|
|
96
|
+
"@typescript-eslint/parser": "6.17.0",
|
|
90
97
|
"bestikk-download": "1.0.0",
|
|
91
98
|
"bestikk-fs": "1.0.0",
|
|
92
99
|
"bestikk-log": "0.1.0",
|
|
93
100
|
"bestikk-uglify": "3.0.1",
|
|
94
|
-
"chai": "4.
|
|
101
|
+
"chai": "4.4.0",
|
|
95
102
|
"cross-env": "7.0.3",
|
|
96
103
|
"dirty-chai": "2.0.1",
|
|
97
104
|
"documentation": "^14.0.0",
|
|
98
105
|
"dot": "1.1.3",
|
|
99
106
|
"ejs": "3.1.9",
|
|
100
|
-
"eslint": "8.
|
|
101
|
-
"handlebars": "4.7.
|
|
107
|
+
"eslint": "8.56.0",
|
|
108
|
+
"handlebars": "4.7.8",
|
|
102
109
|
"http-server": "14.1.1",
|
|
103
110
|
"mocha": "10.2.0",
|
|
104
111
|
"mock-http-server": "1.4.5",
|
|
105
|
-
"module-alias": "2.2.
|
|
112
|
+
"module-alias": "2.2.3",
|
|
106
113
|
"nunjucks": "3.2.4",
|
|
107
114
|
"opal-compiler": "3.0.0",
|
|
108
115
|
"portfinder": "1.0.32",
|
|
109
116
|
"pug": "3.0.2",
|
|
110
|
-
"puppeteer": "
|
|
111
|
-
"rollup": "
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
117
|
+
"puppeteer": "21.7.0",
|
|
118
|
+
"rollup": "~4.9.0",
|
|
119
|
+
"rollup-plugin-dts": "^6.1.0",
|
|
120
|
+
"sinon": "17.0.1",
|
|
121
|
+
"standard": "17.1.0",
|
|
122
|
+
"tsd": "0.30.3",
|
|
123
|
+
"typescript": "5.3.3"
|
|
116
124
|
},
|
|
117
125
|
"standard": {
|
|
118
126
|
"ignore": [
|
package/types/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
// TypeScript Version: 3.7
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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?:
|
|
1711
|
+
getDocumentTitle(options?: TitleOptions): string | Title | undefined;
|
|
1711
1712
|
|
|
1712
1713
|
/**
|
|
1713
1714
|
* @see {@link Document#getDocumentTitle}
|
|
1714
1715
|
*/
|
|
1715
|
-
getDoctitle(options:
|
|
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
|
/**
|