doc-detective-common 3.3.0 → 3.4.0-dita.0-dev.1
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/schemas/config_v3.schema.json +9 -2
- package/dist/schemas/resolvedTests_v3.schema.json +9 -2
- package/package.json +5 -6
- package/src/schemas/build/config_v3.schema.json +9 -2
- package/src/schemas/output_schemas/config_v3.schema.json +9 -2
- package/src/schemas/output_schemas/resolvedTests_v3.schema.json +9 -2
- package/src/schemas/schemas.json +18 -4
- package/src/schemas/src_schemas/config_v3.schema.json +7 -2
- package/src/validate.js +2 -2
|
@@ -121,6 +121,11 @@
|
|
|
121
121
|
"type": "boolean",
|
|
122
122
|
"description": "Whether or not to run potentially unsafe steps, such as those that might modify files or system state."
|
|
123
123
|
},
|
|
124
|
+
"processDitaMaps": {
|
|
125
|
+
"description": "If `true`, processes DITA maps and includes generated files as inputs.",
|
|
126
|
+
"type": "boolean",
|
|
127
|
+
"default": true
|
|
128
|
+
},
|
|
124
129
|
"logLevel": {
|
|
125
130
|
"description": "Amount of detail to output when performing an operation.",
|
|
126
131
|
"type": "string",
|
|
@@ -520,7 +525,8 @@
|
|
|
520
525
|
"default": [
|
|
521
526
|
"markdown",
|
|
522
527
|
"asciidoc",
|
|
523
|
-
"html"
|
|
528
|
+
"html",
|
|
529
|
+
"dita"
|
|
524
530
|
],
|
|
525
531
|
"anyOf": [
|
|
526
532
|
{
|
|
@@ -535,7 +541,8 @@
|
|
|
535
541
|
"enum": [
|
|
536
542
|
"markdown",
|
|
537
543
|
"asciidoc",
|
|
538
|
-
"html"
|
|
544
|
+
"html",
|
|
545
|
+
"dita"
|
|
539
546
|
]
|
|
540
547
|
},
|
|
541
548
|
{
|
|
@@ -134,6 +134,11 @@
|
|
|
134
134
|
"type": "boolean",
|
|
135
135
|
"description": "Whether or not to run potentially unsafe steps, such as those that might modify files or system state."
|
|
136
136
|
},
|
|
137
|
+
"processDitaMaps": {
|
|
138
|
+
"description": "If `true`, processes DITA maps and includes generated files as inputs.",
|
|
139
|
+
"type": "boolean",
|
|
140
|
+
"default": true
|
|
141
|
+
},
|
|
137
142
|
"logLevel": {
|
|
138
143
|
"description": "Amount of detail to output when performing an operation.",
|
|
139
144
|
"type": "string",
|
|
@@ -533,7 +538,8 @@
|
|
|
533
538
|
"default": [
|
|
534
539
|
"markdown",
|
|
535
540
|
"asciidoc",
|
|
536
|
-
"html"
|
|
541
|
+
"html",
|
|
542
|
+
"dita"
|
|
537
543
|
],
|
|
538
544
|
"anyOf": [
|
|
539
545
|
{
|
|
@@ -548,7 +554,8 @@
|
|
|
548
554
|
"enum": [
|
|
549
555
|
"markdown",
|
|
550
556
|
"asciidoc",
|
|
551
|
-
"html"
|
|
557
|
+
"html",
|
|
558
|
+
"dita"
|
|
552
559
|
]
|
|
553
560
|
},
|
|
554
561
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "doc-detective-common",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0-dita.0-dev.1",
|
|
4
4
|
"description": "Shared components for Doc Detective projects.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -20,18 +20,17 @@
|
|
|
20
20
|
},
|
|
21
21
|
"homepage": "https://github.com/doc-detective/doc-detective-common#readme",
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"chai": "^
|
|
24
|
-
"mocha": "^11.7.
|
|
23
|
+
"chai": "^6.2.0",
|
|
24
|
+
"mocha": "^11.7.4",
|
|
25
25
|
"sinon": "^21.0.0"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@apidevtools/json-schema-ref-parser": "^14.2.
|
|
28
|
+
"@apidevtools/json-schema-ref-parser": "^14.2.1",
|
|
29
29
|
"ajv": "^8.17.1",
|
|
30
30
|
"ajv-errors": "^3.0.0",
|
|
31
31
|
"ajv-formats": "^3.0.1",
|
|
32
32
|
"ajv-keywords": "^5.1.0",
|
|
33
|
-
"axios": "^1.
|
|
34
|
-
"uuid": "^11.1.0",
|
|
33
|
+
"axios": "^1.12.2",
|
|
35
34
|
"yaml": "^2.8.1"
|
|
36
35
|
}
|
|
37
36
|
}
|
|
@@ -104,6 +104,11 @@
|
|
|
104
104
|
"type": "boolean",
|
|
105
105
|
"description": "Whether or not to run potentially unsafe steps, such as those that might modify files or system state."
|
|
106
106
|
},
|
|
107
|
+
"processDitaMaps": {
|
|
108
|
+
"description": "If `true`, processes DITA maps and includes generated files as inputs.",
|
|
109
|
+
"type": "boolean",
|
|
110
|
+
"default": true
|
|
111
|
+
},
|
|
107
112
|
"logLevel": {
|
|
108
113
|
"description": "Amount of detail to output when performing an operation.",
|
|
109
114
|
"type": "string",
|
|
@@ -124,7 +129,8 @@
|
|
|
124
129
|
"default": [
|
|
125
130
|
"markdown",
|
|
126
131
|
"asciidoc",
|
|
127
|
-
"html"
|
|
132
|
+
"html",
|
|
133
|
+
"dita"
|
|
128
134
|
],
|
|
129
135
|
"anyOf": [
|
|
130
136
|
{
|
|
@@ -139,7 +145,8 @@
|
|
|
139
145
|
"enum": [
|
|
140
146
|
"markdown",
|
|
141
147
|
"asciidoc",
|
|
142
|
-
"html"
|
|
148
|
+
"html",
|
|
149
|
+
"dita"
|
|
143
150
|
]
|
|
144
151
|
},
|
|
145
152
|
{
|
|
@@ -121,6 +121,11 @@
|
|
|
121
121
|
"type": "boolean",
|
|
122
122
|
"description": "Whether or not to run potentially unsafe steps, such as those that might modify files or system state."
|
|
123
123
|
},
|
|
124
|
+
"processDitaMaps": {
|
|
125
|
+
"description": "If `true`, processes DITA maps and includes generated files as inputs.",
|
|
126
|
+
"type": "boolean",
|
|
127
|
+
"default": true
|
|
128
|
+
},
|
|
124
129
|
"logLevel": {
|
|
125
130
|
"description": "Amount of detail to output when performing an operation.",
|
|
126
131
|
"type": "string",
|
|
@@ -520,7 +525,8 @@
|
|
|
520
525
|
"default": [
|
|
521
526
|
"markdown",
|
|
522
527
|
"asciidoc",
|
|
523
|
-
"html"
|
|
528
|
+
"html",
|
|
529
|
+
"dita"
|
|
524
530
|
],
|
|
525
531
|
"anyOf": [
|
|
526
532
|
{
|
|
@@ -535,7 +541,8 @@
|
|
|
535
541
|
"enum": [
|
|
536
542
|
"markdown",
|
|
537
543
|
"asciidoc",
|
|
538
|
-
"html"
|
|
544
|
+
"html",
|
|
545
|
+
"dita"
|
|
539
546
|
]
|
|
540
547
|
},
|
|
541
548
|
{
|
|
@@ -134,6 +134,11 @@
|
|
|
134
134
|
"type": "boolean",
|
|
135
135
|
"description": "Whether or not to run potentially unsafe steps, such as those that might modify files or system state."
|
|
136
136
|
},
|
|
137
|
+
"processDitaMaps": {
|
|
138
|
+
"description": "If `true`, processes DITA maps and includes generated files as inputs.",
|
|
139
|
+
"type": "boolean",
|
|
140
|
+
"default": true
|
|
141
|
+
},
|
|
137
142
|
"logLevel": {
|
|
138
143
|
"description": "Amount of detail to output when performing an operation.",
|
|
139
144
|
"type": "string",
|
|
@@ -533,7 +538,8 @@
|
|
|
533
538
|
"default": [
|
|
534
539
|
"markdown",
|
|
535
540
|
"asciidoc",
|
|
536
|
-
"html"
|
|
541
|
+
"html",
|
|
542
|
+
"dita"
|
|
537
543
|
],
|
|
538
544
|
"anyOf": [
|
|
539
545
|
{
|
|
@@ -548,7 +554,8 @@
|
|
|
548
554
|
"enum": [
|
|
549
555
|
"markdown",
|
|
550
556
|
"asciidoc",
|
|
551
|
-
"html"
|
|
557
|
+
"html",
|
|
558
|
+
"dita"
|
|
552
559
|
]
|
|
553
560
|
},
|
|
554
561
|
{
|
package/src/schemas/schemas.json
CHANGED
|
@@ -383,6 +383,11 @@
|
|
|
383
383
|
"type": "boolean",
|
|
384
384
|
"description": "Whether or not to run potentially unsafe steps, such as those that might modify files or system state."
|
|
385
385
|
},
|
|
386
|
+
"processDitaMaps": {
|
|
387
|
+
"description": "If `true`, processes DITA maps and includes generated files as inputs.",
|
|
388
|
+
"type": "boolean",
|
|
389
|
+
"default": true
|
|
390
|
+
},
|
|
386
391
|
"logLevel": {
|
|
387
392
|
"description": "Amount of detail to output when performing an operation.",
|
|
388
393
|
"type": "string",
|
|
@@ -782,7 +787,8 @@
|
|
|
782
787
|
"default": [
|
|
783
788
|
"markdown",
|
|
784
789
|
"asciidoc",
|
|
785
|
-
"html"
|
|
790
|
+
"html",
|
|
791
|
+
"dita"
|
|
786
792
|
],
|
|
787
793
|
"anyOf": [
|
|
788
794
|
{
|
|
@@ -797,7 +803,8 @@
|
|
|
797
803
|
"enum": [
|
|
798
804
|
"markdown",
|
|
799
805
|
"asciidoc",
|
|
800
|
-
"html"
|
|
806
|
+
"html",
|
|
807
|
+
"dita"
|
|
801
808
|
]
|
|
802
809
|
},
|
|
803
810
|
{
|
|
@@ -15947,6 +15954,11 @@
|
|
|
15947
15954
|
"type": "boolean",
|
|
15948
15955
|
"description": "Whether or not to run potentially unsafe steps, such as those that might modify files or system state."
|
|
15949
15956
|
},
|
|
15957
|
+
"processDitaMaps": {
|
|
15958
|
+
"description": "If `true`, processes DITA maps and includes generated files as inputs.",
|
|
15959
|
+
"type": "boolean",
|
|
15960
|
+
"default": true
|
|
15961
|
+
},
|
|
15950
15962
|
"logLevel": {
|
|
15951
15963
|
"description": "Amount of detail to output when performing an operation.",
|
|
15952
15964
|
"type": "string",
|
|
@@ -16346,7 +16358,8 @@
|
|
|
16346
16358
|
"default": [
|
|
16347
16359
|
"markdown",
|
|
16348
16360
|
"asciidoc",
|
|
16349
|
-
"html"
|
|
16361
|
+
"html",
|
|
16362
|
+
"dita"
|
|
16350
16363
|
],
|
|
16351
16364
|
"anyOf": [
|
|
16352
16365
|
{
|
|
@@ -16361,7 +16374,8 @@
|
|
|
16361
16374
|
"enum": [
|
|
16362
16375
|
"markdown",
|
|
16363
16376
|
"asciidoc",
|
|
16364
|
-
"html"
|
|
16377
|
+
"html",
|
|
16378
|
+
"dita"
|
|
16365
16379
|
]
|
|
16366
16380
|
},
|
|
16367
16381
|
{
|
|
@@ -101,6 +101,11 @@
|
|
|
101
101
|
"type": "boolean",
|
|
102
102
|
"description": "Whether or not to run potentially unsafe steps, such as those that might modify files or system state."
|
|
103
103
|
},
|
|
104
|
+
"processDitaMaps": {
|
|
105
|
+
"description": "If `true`, processes DITA maps and includes generated files as inputs.",
|
|
106
|
+
"type": "boolean",
|
|
107
|
+
"default": true
|
|
108
|
+
},
|
|
104
109
|
"logLevel": {
|
|
105
110
|
"description": "Amount of detail to output when performing an operation.",
|
|
106
111
|
"type": "string",
|
|
@@ -112,7 +117,7 @@
|
|
|
112
117
|
},
|
|
113
118
|
"fileTypes": {
|
|
114
119
|
"description": "Configuration for file types and their markup detection.",
|
|
115
|
-
"default": ["markdown", "asciidoc", "html"],
|
|
120
|
+
"default": ["markdown", "asciidoc", "html", "dita"],
|
|
116
121
|
"anyOf": [
|
|
117
122
|
{
|
|
118
123
|
"type": "array",
|
|
@@ -123,7 +128,7 @@
|
|
|
123
128
|
"$comment": "Simple mode: Reference predefined templates by name.",
|
|
124
129
|
"title": "File type (predefined)",
|
|
125
130
|
"type": "string",
|
|
126
|
-
"enum": ["markdown", "asciidoc", "html"]
|
|
131
|
+
"enum": ["markdown", "asciidoc", "html", "dita"]
|
|
127
132
|
},
|
|
128
133
|
{
|
|
129
134
|
"$comment": "Custom mode: Extend predefined templates or write whole new ones.",
|
package/src/validate.js
CHANGED
|
@@ -6,7 +6,7 @@ const addFormats = require("ajv-formats");
|
|
|
6
6
|
const addKeywords = require("ajv-keywords");
|
|
7
7
|
// Ajv custom errors: https://ajv.js.org/packages/ajv-errors.html
|
|
8
8
|
const addErrors = require("ajv-errors");
|
|
9
|
-
const
|
|
9
|
+
const { randomUUID } = require("crypto");
|
|
10
10
|
|
|
11
11
|
// Configure base Ajv
|
|
12
12
|
const ajv = new Ajv({
|
|
@@ -19,7 +19,7 @@ const ajv = new Ajv({
|
|
|
19
19
|
|
|
20
20
|
// Enable `uuid` dynamic default
|
|
21
21
|
const def = require("ajv-keywords/dist/definitions/dynamicDefaults");
|
|
22
|
-
def.DEFAULTS.uuid = () =>
|
|
22
|
+
def.DEFAULTS.uuid = () => randomUUID;
|
|
23
23
|
|
|
24
24
|
// Enhance Ajv
|
|
25
25
|
addFormats(ajv);
|