doc-detective-common 4.0.2-dev.1 → 4.0.2-dev.11
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/detectTests.d.ts.map +1 -1
- package/dist/detectTests.js +43 -12
- package/dist/detectTests.js.map +1 -1
- package/dist/fileTypes.d.ts.map +1 -1
- package/dist/fileTypes.js +10 -0
- package/dist/fileTypes.js.map +1 -1
- package/dist/index.cjs +630 -14
- package/dist/schemas/schemas.json +594 -0
- package/dist/types/generated/checkLink_v3.d.ts +15 -0
- package/dist/types/generated/checkLink_v3.d.ts.map +1 -1
- package/dist/types/generated/config_v3.d.ts +4 -0
- package/dist/types/generated/config_v3.d.ts.map +1 -1
- package/dist/types/generated/resolvedTests_v3.d.ts +4 -0
- package/dist/types/generated/resolvedTests_v3.d.ts.map +1 -1
- package/dist/types/generated/step_v3.d.ts +15 -0
- package/dist/types/generated/step_v3.d.ts.map +1 -1
- package/dist/types/generated/test_v3.d.ts +30 -0
- package/dist/types/generated/test_v3.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -101,6 +101,26 @@ var schemas_default = {
|
|
|
101
101
|
307,
|
|
102
102
|
308
|
|
103
103
|
]
|
|
104
|
+
},
|
|
105
|
+
headers: {
|
|
106
|
+
description: "Additional HTTP headers to include in the request. Merged on top of Doc Detective's default browser-mimicking headers. Useful for sites behind bot protection or WAFs that allowlist specific headers (for example, a Cloudflare Access service token or a `Cookie` with a `cf_clearance` value).",
|
|
107
|
+
default: {},
|
|
108
|
+
anyOf: [
|
|
109
|
+
{
|
|
110
|
+
title: "Request headers (object)",
|
|
111
|
+
description: "Headers to include in the HTTP request, in key/value format. Values must be strings.",
|
|
112
|
+
type: "object",
|
|
113
|
+
additionalProperties: {
|
|
114
|
+
type: "string"
|
|
115
|
+
},
|
|
116
|
+
properties: {}
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
title: "Request headers (string)",
|
|
120
|
+
description: "Headers to include in the HTTP request, as newline-separated values. For example, `X-Api-Key: abc123\nAuthorization: Bearer token`.",
|
|
121
|
+
type: "string"
|
|
122
|
+
}
|
|
123
|
+
]
|
|
104
124
|
}
|
|
105
125
|
}
|
|
106
126
|
}
|
|
@@ -164,6 +184,26 @@ var schemas_default = {
|
|
|
164
184
|
307,
|
|
165
185
|
308
|
|
166
186
|
]
|
|
187
|
+
},
|
|
188
|
+
headers: {
|
|
189
|
+
description: "Additional HTTP headers to include in the request. Merged on top of Doc Detective's default browser-mimicking headers. Useful for sites behind bot protection or WAFs that allowlist specific headers (for example, a Cloudflare Access service token or a `Cookie` with a `cf_clearance` value).",
|
|
190
|
+
default: {},
|
|
191
|
+
anyOf: [
|
|
192
|
+
{
|
|
193
|
+
title: "Request headers (object)",
|
|
194
|
+
description: "Headers to include in the HTTP request, in key/value format. Values must be strings.",
|
|
195
|
+
type: "object",
|
|
196
|
+
additionalProperties: {
|
|
197
|
+
type: "string"
|
|
198
|
+
},
|
|
199
|
+
properties: {}
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
title: "Request headers (string)",
|
|
203
|
+
description: "Headers to include in the HTTP request, as newline-separated values. For example, `X-Api-Key: abc123\nAuthorization: Bearer token`.",
|
|
204
|
+
type: "string"
|
|
205
|
+
}
|
|
206
|
+
]
|
|
167
207
|
}
|
|
168
208
|
}
|
|
169
209
|
}
|
|
@@ -488,6 +528,18 @@ var schemas_default = {
|
|
|
488
528
|
type: "string",
|
|
489
529
|
default: "."
|
|
490
530
|
},
|
|
531
|
+
reporters: {
|
|
532
|
+
description: "Reporters to use when emitting test results. Built-in reporters: `terminal`, `json`, `html`. Custom reporters registered via `registerReporter()` can also be referenced by name.",
|
|
533
|
+
type: "array",
|
|
534
|
+
items: {
|
|
535
|
+
type: "string",
|
|
536
|
+
minLength: 1
|
|
537
|
+
},
|
|
538
|
+
default: [
|
|
539
|
+
"terminal",
|
|
540
|
+
"json"
|
|
541
|
+
]
|
|
542
|
+
},
|
|
491
543
|
recursive: {
|
|
492
544
|
description: "If `true` searches `input`, `setup`, and `cleanup` paths recursively for test specifications and source files.",
|
|
493
545
|
type: "boolean",
|
|
@@ -1553,6 +1605,26 @@ var schemas_default = {
|
|
|
1553
1605
|
307,
|
|
1554
1606
|
308
|
|
1555
1607
|
]
|
|
1608
|
+
},
|
|
1609
|
+
headers: {
|
|
1610
|
+
description: "Additional HTTP headers to include in the request. Merged on top of Doc Detective's default browser-mimicking headers. Useful for sites behind bot protection or WAFs that allowlist specific headers (for example, a Cloudflare Access service token or a `Cookie` with a `cf_clearance` value).",
|
|
1611
|
+
default: {},
|
|
1612
|
+
anyOf: [
|
|
1613
|
+
{
|
|
1614
|
+
title: "Request headers (object)",
|
|
1615
|
+
description: "Headers to include in the HTTP request, in key/value format. Values must be strings.",
|
|
1616
|
+
type: "object",
|
|
1617
|
+
additionalProperties: {
|
|
1618
|
+
type: "string"
|
|
1619
|
+
},
|
|
1620
|
+
properties: {}
|
|
1621
|
+
},
|
|
1622
|
+
{
|
|
1623
|
+
title: "Request headers (string)",
|
|
1624
|
+
description: "Headers to include in the HTTP request, as newline-separated values. For example, `X-Api-Key: abc123\nAuthorization: Bearer token`.",
|
|
1625
|
+
type: "string"
|
|
1626
|
+
}
|
|
1627
|
+
]
|
|
1556
1628
|
}
|
|
1557
1629
|
}
|
|
1558
1630
|
}
|
|
@@ -1616,6 +1688,26 @@ var schemas_default = {
|
|
|
1616
1688
|
307,
|
|
1617
1689
|
308
|
|
1618
1690
|
]
|
|
1691
|
+
},
|
|
1692
|
+
headers: {
|
|
1693
|
+
description: "Additional HTTP headers to include in the request. Merged on top of Doc Detective's default browser-mimicking headers. Useful for sites behind bot protection or WAFs that allowlist specific headers (for example, a Cloudflare Access service token or a `Cookie` with a `cf_clearance` value).",
|
|
1694
|
+
default: {},
|
|
1695
|
+
anyOf: [
|
|
1696
|
+
{
|
|
1697
|
+
title: "Request headers (object)",
|
|
1698
|
+
description: "Headers to include in the HTTP request, in key/value format. Values must be strings.",
|
|
1699
|
+
type: "object",
|
|
1700
|
+
additionalProperties: {
|
|
1701
|
+
type: "string"
|
|
1702
|
+
},
|
|
1703
|
+
properties: {}
|
|
1704
|
+
},
|
|
1705
|
+
{
|
|
1706
|
+
title: "Request headers (string)",
|
|
1707
|
+
description: "Headers to include in the HTTP request, as newline-separated values. For example, `X-Api-Key: abc123\nAuthorization: Bearer token`.",
|
|
1708
|
+
type: "string"
|
|
1709
|
+
}
|
|
1710
|
+
]
|
|
1619
1711
|
}
|
|
1620
1712
|
}
|
|
1621
1713
|
}
|
|
@@ -10176,6 +10268,26 @@ var schemas_default = {
|
|
|
10176
10268
|
307,
|
|
10177
10269
|
308
|
|
10178
10270
|
]
|
|
10271
|
+
},
|
|
10272
|
+
headers: {
|
|
10273
|
+
description: "Additional HTTP headers to include in the request. Merged on top of Doc Detective's default browser-mimicking headers. Useful for sites behind bot protection or WAFs that allowlist specific headers (for example, a Cloudflare Access service token or a `Cookie` with a `cf_clearance` value).",
|
|
10274
|
+
default: {},
|
|
10275
|
+
anyOf: [
|
|
10276
|
+
{
|
|
10277
|
+
title: "Request headers (object)",
|
|
10278
|
+
description: "Headers to include in the HTTP request, in key/value format. Values must be strings.",
|
|
10279
|
+
type: "object",
|
|
10280
|
+
additionalProperties: {
|
|
10281
|
+
type: "string"
|
|
10282
|
+
},
|
|
10283
|
+
properties: {}
|
|
10284
|
+
},
|
|
10285
|
+
{
|
|
10286
|
+
title: "Request headers (string)",
|
|
10287
|
+
description: "Headers to include in the HTTP request, as newline-separated values. For example, `X-Api-Key: abc123\nAuthorization: Bearer token`.",
|
|
10288
|
+
type: "string"
|
|
10289
|
+
}
|
|
10290
|
+
]
|
|
10179
10291
|
}
|
|
10180
10292
|
}
|
|
10181
10293
|
}
|
|
@@ -10239,6 +10351,26 @@ var schemas_default = {
|
|
|
10239
10351
|
307,
|
|
10240
10352
|
308
|
|
10241
10353
|
]
|
|
10354
|
+
},
|
|
10355
|
+
headers: {
|
|
10356
|
+
description: "Additional HTTP headers to include in the request. Merged on top of Doc Detective's default browser-mimicking headers. Useful for sites behind bot protection or WAFs that allowlist specific headers (for example, a Cloudflare Access service token or a `Cookie` with a `cf_clearance` value).",
|
|
10357
|
+
default: {},
|
|
10358
|
+
anyOf: [
|
|
10359
|
+
{
|
|
10360
|
+
title: "Request headers (object)",
|
|
10361
|
+
description: "Headers to include in the HTTP request, in key/value format. Values must be strings.",
|
|
10362
|
+
type: "object",
|
|
10363
|
+
additionalProperties: {
|
|
10364
|
+
type: "string"
|
|
10365
|
+
},
|
|
10366
|
+
properties: {}
|
|
10367
|
+
},
|
|
10368
|
+
{
|
|
10369
|
+
title: "Request headers (string)",
|
|
10370
|
+
description: "Headers to include in the HTTP request, as newline-separated values. For example, `X-Api-Key: abc123\nAuthorization: Bearer token`.",
|
|
10371
|
+
type: "string"
|
|
10372
|
+
}
|
|
10373
|
+
]
|
|
10242
10374
|
}
|
|
10243
10375
|
}
|
|
10244
10376
|
}
|
|
@@ -17839,6 +17971,11 @@ var schemas_default = {
|
|
|
17839
17971
|
loadVariables: ".env",
|
|
17840
17972
|
fileTypes: [
|
|
17841
17973
|
"markdown"
|
|
17974
|
+
],
|
|
17975
|
+
reporters: [
|
|
17976
|
+
"terminal",
|
|
17977
|
+
"json",
|
|
17978
|
+
"html"
|
|
17842
17979
|
]
|
|
17843
17980
|
},
|
|
17844
17981
|
{
|
|
@@ -22147,6 +22284,18 @@ var schemas_default = {
|
|
|
22147
22284
|
type: "string",
|
|
22148
22285
|
default: "."
|
|
22149
22286
|
},
|
|
22287
|
+
reporters: {
|
|
22288
|
+
description: "Reporters to use when emitting test results. Built-in reporters: `terminal`, `json`, `html`. Custom reporters registered via `registerReporter()` can also be referenced by name.",
|
|
22289
|
+
type: "array",
|
|
22290
|
+
items: {
|
|
22291
|
+
type: "string",
|
|
22292
|
+
minLength: 1
|
|
22293
|
+
},
|
|
22294
|
+
default: [
|
|
22295
|
+
"terminal",
|
|
22296
|
+
"json"
|
|
22297
|
+
]
|
|
22298
|
+
},
|
|
22150
22299
|
recursive: {
|
|
22151
22300
|
description: "If `true` searches `input`, `setup`, and `cleanup` paths recursively for test specifications and source files.",
|
|
22152
22301
|
type: "boolean",
|
|
@@ -23212,6 +23361,26 @@ var schemas_default = {
|
|
|
23212
23361
|
307,
|
|
23213
23362
|
308
|
|
23214
23363
|
]
|
|
23364
|
+
},
|
|
23365
|
+
headers: {
|
|
23366
|
+
description: "Additional HTTP headers to include in the request. Merged on top of Doc Detective's default browser-mimicking headers. Useful for sites behind bot protection or WAFs that allowlist specific headers (for example, a Cloudflare Access service token or a `Cookie` with a `cf_clearance` value).",
|
|
23367
|
+
default: {},
|
|
23368
|
+
anyOf: [
|
|
23369
|
+
{
|
|
23370
|
+
title: "Request headers (object)",
|
|
23371
|
+
description: "Headers to include in the HTTP request, in key/value format. Values must be strings.",
|
|
23372
|
+
type: "object",
|
|
23373
|
+
additionalProperties: {
|
|
23374
|
+
type: "string"
|
|
23375
|
+
},
|
|
23376
|
+
properties: {}
|
|
23377
|
+
},
|
|
23378
|
+
{
|
|
23379
|
+
title: "Request headers (string)",
|
|
23380
|
+
description: "Headers to include in the HTTP request, as newline-separated values. For example, `X-Api-Key: abc123\nAuthorization: Bearer token`.",
|
|
23381
|
+
type: "string"
|
|
23382
|
+
}
|
|
23383
|
+
]
|
|
23215
23384
|
}
|
|
23216
23385
|
}
|
|
23217
23386
|
}
|
|
@@ -23275,6 +23444,26 @@ var schemas_default = {
|
|
|
23275
23444
|
307,
|
|
23276
23445
|
308
|
|
23277
23446
|
]
|
|
23447
|
+
},
|
|
23448
|
+
headers: {
|
|
23449
|
+
description: "Additional HTTP headers to include in the request. Merged on top of Doc Detective's default browser-mimicking headers. Useful for sites behind bot protection or WAFs that allowlist specific headers (for example, a Cloudflare Access service token or a `Cookie` with a `cf_clearance` value).",
|
|
23450
|
+
default: {},
|
|
23451
|
+
anyOf: [
|
|
23452
|
+
{
|
|
23453
|
+
title: "Request headers (object)",
|
|
23454
|
+
description: "Headers to include in the HTTP request, in key/value format. Values must be strings.",
|
|
23455
|
+
type: "object",
|
|
23456
|
+
additionalProperties: {
|
|
23457
|
+
type: "string"
|
|
23458
|
+
},
|
|
23459
|
+
properties: {}
|
|
23460
|
+
},
|
|
23461
|
+
{
|
|
23462
|
+
title: "Request headers (string)",
|
|
23463
|
+
description: "Headers to include in the HTTP request, as newline-separated values. For example, `X-Api-Key: abc123\nAuthorization: Bearer token`.",
|
|
23464
|
+
type: "string"
|
|
23465
|
+
}
|
|
23466
|
+
]
|
|
23278
23467
|
}
|
|
23279
23468
|
}
|
|
23280
23469
|
}
|
|
@@ -31835,6 +32024,26 @@ var schemas_default = {
|
|
|
31835
32024
|
307,
|
|
31836
32025
|
308
|
|
31837
32026
|
]
|
|
32027
|
+
},
|
|
32028
|
+
headers: {
|
|
32029
|
+
description: "Additional HTTP headers to include in the request. Merged on top of Doc Detective's default browser-mimicking headers. Useful for sites behind bot protection or WAFs that allowlist specific headers (for example, a Cloudflare Access service token or a `Cookie` with a `cf_clearance` value).",
|
|
32030
|
+
default: {},
|
|
32031
|
+
anyOf: [
|
|
32032
|
+
{
|
|
32033
|
+
title: "Request headers (object)",
|
|
32034
|
+
description: "Headers to include in the HTTP request, in key/value format. Values must be strings.",
|
|
32035
|
+
type: "object",
|
|
32036
|
+
additionalProperties: {
|
|
32037
|
+
type: "string"
|
|
32038
|
+
},
|
|
32039
|
+
properties: {}
|
|
32040
|
+
},
|
|
32041
|
+
{
|
|
32042
|
+
title: "Request headers (string)",
|
|
32043
|
+
description: "Headers to include in the HTTP request, as newline-separated values. For example, `X-Api-Key: abc123\nAuthorization: Bearer token`.",
|
|
32044
|
+
type: "string"
|
|
32045
|
+
}
|
|
32046
|
+
]
|
|
31838
32047
|
}
|
|
31839
32048
|
}
|
|
31840
32049
|
}
|
|
@@ -31898,6 +32107,26 @@ var schemas_default = {
|
|
|
31898
32107
|
307,
|
|
31899
32108
|
308
|
|
31900
32109
|
]
|
|
32110
|
+
},
|
|
32111
|
+
headers: {
|
|
32112
|
+
description: "Additional HTTP headers to include in the request. Merged on top of Doc Detective's default browser-mimicking headers. Useful for sites behind bot protection or WAFs that allowlist specific headers (for example, a Cloudflare Access service token or a `Cookie` with a `cf_clearance` value).",
|
|
32113
|
+
default: {},
|
|
32114
|
+
anyOf: [
|
|
32115
|
+
{
|
|
32116
|
+
title: "Request headers (object)",
|
|
32117
|
+
description: "Headers to include in the HTTP request, in key/value format. Values must be strings.",
|
|
32118
|
+
type: "object",
|
|
32119
|
+
additionalProperties: {
|
|
32120
|
+
type: "string"
|
|
32121
|
+
},
|
|
32122
|
+
properties: {}
|
|
32123
|
+
},
|
|
32124
|
+
{
|
|
32125
|
+
title: "Request headers (string)",
|
|
32126
|
+
description: "Headers to include in the HTTP request, as newline-separated values. For example, `X-Api-Key: abc123\nAuthorization: Bearer token`.",
|
|
32127
|
+
type: "string"
|
|
32128
|
+
}
|
|
32129
|
+
]
|
|
31901
32130
|
}
|
|
31902
32131
|
}
|
|
31903
32132
|
}
|
|
@@ -39498,6 +39727,11 @@ var schemas_default = {
|
|
|
39498
39727
|
loadVariables: ".env",
|
|
39499
39728
|
fileTypes: [
|
|
39500
39729
|
"markdown"
|
|
39730
|
+
],
|
|
39731
|
+
reporters: [
|
|
39732
|
+
"terminal",
|
|
39733
|
+
"json",
|
|
39734
|
+
"html"
|
|
39501
39735
|
]
|
|
39502
39736
|
},
|
|
39503
39737
|
{
|
|
@@ -41147,6 +41381,26 @@ var schemas_default = {
|
|
|
41147
41381
|
307,
|
|
41148
41382
|
308
|
|
41149
41383
|
]
|
|
41384
|
+
},
|
|
41385
|
+
headers: {
|
|
41386
|
+
description: "Additional HTTP headers to include in the request. Merged on top of Doc Detective's default browser-mimicking headers. Useful for sites behind bot protection or WAFs that allowlist specific headers (for example, a Cloudflare Access service token or a `Cookie` with a `cf_clearance` value).",
|
|
41387
|
+
default: {},
|
|
41388
|
+
anyOf: [
|
|
41389
|
+
{
|
|
41390
|
+
title: "Request headers (object)",
|
|
41391
|
+
description: "Headers to include in the HTTP request, in key/value format. Values must be strings.",
|
|
41392
|
+
type: "object",
|
|
41393
|
+
additionalProperties: {
|
|
41394
|
+
type: "string"
|
|
41395
|
+
},
|
|
41396
|
+
properties: {}
|
|
41397
|
+
},
|
|
41398
|
+
{
|
|
41399
|
+
title: "Request headers (string)",
|
|
41400
|
+
description: "Headers to include in the HTTP request, as newline-separated values. For example, `X-Api-Key: abc123\nAuthorization: Bearer token`.",
|
|
41401
|
+
type: "string"
|
|
41402
|
+
}
|
|
41403
|
+
]
|
|
41150
41404
|
}
|
|
41151
41405
|
}
|
|
41152
41406
|
}
|
|
@@ -41210,6 +41464,26 @@ var schemas_default = {
|
|
|
41210
41464
|
307,
|
|
41211
41465
|
308
|
|
41212
41466
|
]
|
|
41467
|
+
},
|
|
41468
|
+
headers: {
|
|
41469
|
+
description: "Additional HTTP headers to include in the request. Merged on top of Doc Detective's default browser-mimicking headers. Useful for sites behind bot protection or WAFs that allowlist specific headers (for example, a Cloudflare Access service token or a `Cookie` with a `cf_clearance` value).",
|
|
41470
|
+
default: {},
|
|
41471
|
+
anyOf: [
|
|
41472
|
+
{
|
|
41473
|
+
title: "Request headers (object)",
|
|
41474
|
+
description: "Headers to include in the HTTP request, in key/value format. Values must be strings.",
|
|
41475
|
+
type: "object",
|
|
41476
|
+
additionalProperties: {
|
|
41477
|
+
type: "string"
|
|
41478
|
+
},
|
|
41479
|
+
properties: {}
|
|
41480
|
+
},
|
|
41481
|
+
{
|
|
41482
|
+
title: "Request headers (string)",
|
|
41483
|
+
description: "Headers to include in the HTTP request, as newline-separated values. For example, `X-Api-Key: abc123\nAuthorization: Bearer token`.",
|
|
41484
|
+
type: "string"
|
|
41485
|
+
}
|
|
41486
|
+
]
|
|
41213
41487
|
}
|
|
41214
41488
|
}
|
|
41215
41489
|
}
|
|
@@ -49244,6 +49518,26 @@ var schemas_default = {
|
|
|
49244
49518
|
307,
|
|
49245
49519
|
308
|
|
49246
49520
|
]
|
|
49521
|
+
},
|
|
49522
|
+
headers: {
|
|
49523
|
+
description: "Additional HTTP headers to include in the request. Merged on top of Doc Detective's default browser-mimicking headers. Useful for sites behind bot protection or WAFs that allowlist specific headers (for example, a Cloudflare Access service token or a `Cookie` with a `cf_clearance` value).",
|
|
49524
|
+
default: {},
|
|
49525
|
+
anyOf: [
|
|
49526
|
+
{
|
|
49527
|
+
title: "Request headers (object)",
|
|
49528
|
+
description: "Headers to include in the HTTP request, in key/value format. Values must be strings.",
|
|
49529
|
+
type: "object",
|
|
49530
|
+
additionalProperties: {
|
|
49531
|
+
type: "string"
|
|
49532
|
+
},
|
|
49533
|
+
properties: {}
|
|
49534
|
+
},
|
|
49535
|
+
{
|
|
49536
|
+
title: "Request headers (string)",
|
|
49537
|
+
description: "Headers to include in the HTTP request, as newline-separated values. For example, `X-Api-Key: abc123\nAuthorization: Bearer token`.",
|
|
49538
|
+
type: "string"
|
|
49539
|
+
}
|
|
49540
|
+
]
|
|
49247
49541
|
}
|
|
49248
49542
|
}
|
|
49249
49543
|
}
|
|
@@ -49307,6 +49601,26 @@ var schemas_default = {
|
|
|
49307
49601
|
307,
|
|
49308
49602
|
308
|
|
49309
49603
|
]
|
|
49604
|
+
},
|
|
49605
|
+
headers: {
|
|
49606
|
+
description: "Additional HTTP headers to include in the request. Merged on top of Doc Detective's default browser-mimicking headers. Useful for sites behind bot protection or WAFs that allowlist specific headers (for example, a Cloudflare Access service token or a `Cookie` with a `cf_clearance` value).",
|
|
49607
|
+
default: {},
|
|
49608
|
+
anyOf: [
|
|
49609
|
+
{
|
|
49610
|
+
title: "Request headers (object)",
|
|
49611
|
+
description: "Headers to include in the HTTP request, in key/value format. Values must be strings.",
|
|
49612
|
+
type: "object",
|
|
49613
|
+
additionalProperties: {
|
|
49614
|
+
type: "string"
|
|
49615
|
+
},
|
|
49616
|
+
properties: {}
|
|
49617
|
+
},
|
|
49618
|
+
{
|
|
49619
|
+
title: "Request headers (string)",
|
|
49620
|
+
description: "Headers to include in the HTTP request, as newline-separated values. For example, `X-Api-Key: abc123\nAuthorization: Bearer token`.",
|
|
49621
|
+
type: "string"
|
|
49622
|
+
}
|
|
49623
|
+
]
|
|
49310
49624
|
}
|
|
49311
49625
|
}
|
|
49312
49626
|
}
|
|
@@ -59051,6 +59365,26 @@ var schemas_default = {
|
|
|
59051
59365
|
307,
|
|
59052
59366
|
308
|
|
59053
59367
|
]
|
|
59368
|
+
},
|
|
59369
|
+
headers: {
|
|
59370
|
+
description: "Additional HTTP headers to include in the request. Merged on top of Doc Detective's default browser-mimicking headers. Useful for sites behind bot protection or WAFs that allowlist specific headers (for example, a Cloudflare Access service token or a `Cookie` with a `cf_clearance` value).",
|
|
59371
|
+
default: {},
|
|
59372
|
+
anyOf: [
|
|
59373
|
+
{
|
|
59374
|
+
title: "Request headers (object)",
|
|
59375
|
+
description: "Headers to include in the HTTP request, in key/value format. Values must be strings.",
|
|
59376
|
+
type: "object",
|
|
59377
|
+
additionalProperties: {
|
|
59378
|
+
type: "string"
|
|
59379
|
+
},
|
|
59380
|
+
properties: {}
|
|
59381
|
+
},
|
|
59382
|
+
{
|
|
59383
|
+
title: "Request headers (string)",
|
|
59384
|
+
description: "Headers to include in the HTTP request, as newline-separated values. For example, `X-Api-Key: abc123\nAuthorization: Bearer token`.",
|
|
59385
|
+
type: "string"
|
|
59386
|
+
}
|
|
59387
|
+
]
|
|
59054
59388
|
}
|
|
59055
59389
|
}
|
|
59056
59390
|
}
|
|
@@ -59114,6 +59448,26 @@ var schemas_default = {
|
|
|
59114
59448
|
307,
|
|
59115
59449
|
308
|
|
59116
59450
|
]
|
|
59451
|
+
},
|
|
59452
|
+
headers: {
|
|
59453
|
+
description: "Additional HTTP headers to include in the request. Merged on top of Doc Detective's default browser-mimicking headers. Useful for sites behind bot protection or WAFs that allowlist specific headers (for example, a Cloudflare Access service token or a `Cookie` with a `cf_clearance` value).",
|
|
59454
|
+
default: {},
|
|
59455
|
+
anyOf: [
|
|
59456
|
+
{
|
|
59457
|
+
title: "Request headers (object)",
|
|
59458
|
+
description: "Headers to include in the HTTP request, in key/value format. Values must be strings.",
|
|
59459
|
+
type: "object",
|
|
59460
|
+
additionalProperties: {
|
|
59461
|
+
type: "string"
|
|
59462
|
+
},
|
|
59463
|
+
properties: {}
|
|
59464
|
+
},
|
|
59465
|
+
{
|
|
59466
|
+
title: "Request headers (string)",
|
|
59467
|
+
description: "Headers to include in the HTTP request, as newline-separated values. For example, `X-Api-Key: abc123\nAuthorization: Bearer token`.",
|
|
59468
|
+
type: "string"
|
|
59469
|
+
}
|
|
59470
|
+
]
|
|
59117
59471
|
}
|
|
59118
59472
|
}
|
|
59119
59473
|
}
|
|
@@ -67148,6 +67502,26 @@ var schemas_default = {
|
|
|
67148
67502
|
307,
|
|
67149
67503
|
308
|
|
67150
67504
|
]
|
|
67505
|
+
},
|
|
67506
|
+
headers: {
|
|
67507
|
+
description: "Additional HTTP headers to include in the request. Merged on top of Doc Detective's default browser-mimicking headers. Useful for sites behind bot protection or WAFs that allowlist specific headers (for example, a Cloudflare Access service token or a `Cookie` with a `cf_clearance` value).",
|
|
67508
|
+
default: {},
|
|
67509
|
+
anyOf: [
|
|
67510
|
+
{
|
|
67511
|
+
title: "Request headers (object)",
|
|
67512
|
+
description: "Headers to include in the HTTP request, in key/value format. Values must be strings.",
|
|
67513
|
+
type: "object",
|
|
67514
|
+
additionalProperties: {
|
|
67515
|
+
type: "string"
|
|
67516
|
+
},
|
|
67517
|
+
properties: {}
|
|
67518
|
+
},
|
|
67519
|
+
{
|
|
67520
|
+
title: "Request headers (string)",
|
|
67521
|
+
description: "Headers to include in the HTTP request, as newline-separated values. For example, `X-Api-Key: abc123\nAuthorization: Bearer token`.",
|
|
67522
|
+
type: "string"
|
|
67523
|
+
}
|
|
67524
|
+
]
|
|
67151
67525
|
}
|
|
67152
67526
|
}
|
|
67153
67527
|
}
|
|
@@ -67211,6 +67585,26 @@ var schemas_default = {
|
|
|
67211
67585
|
307,
|
|
67212
67586
|
308
|
|
67213
67587
|
]
|
|
67588
|
+
},
|
|
67589
|
+
headers: {
|
|
67590
|
+
description: "Additional HTTP headers to include in the request. Merged on top of Doc Detective's default browser-mimicking headers. Useful for sites behind bot protection or WAFs that allowlist specific headers (for example, a Cloudflare Access service token or a `Cookie` with a `cf_clearance` value).",
|
|
67591
|
+
default: {},
|
|
67592
|
+
anyOf: [
|
|
67593
|
+
{
|
|
67594
|
+
title: "Request headers (object)",
|
|
67595
|
+
description: "Headers to include in the HTTP request, in key/value format. Values must be strings.",
|
|
67596
|
+
type: "object",
|
|
67597
|
+
additionalProperties: {
|
|
67598
|
+
type: "string"
|
|
67599
|
+
},
|
|
67600
|
+
properties: {}
|
|
67601
|
+
},
|
|
67602
|
+
{
|
|
67603
|
+
title: "Request headers (string)",
|
|
67604
|
+
description: "Headers to include in the HTTP request, as newline-separated values. For example, `X-Api-Key: abc123\nAuthorization: Bearer token`.",
|
|
67605
|
+
type: "string"
|
|
67606
|
+
}
|
|
67607
|
+
]
|
|
67214
67608
|
}
|
|
67215
67609
|
}
|
|
67216
67610
|
}
|
|
@@ -78337,6 +78731,26 @@ var schemas_default = {
|
|
|
78337
78731
|
307,
|
|
78338
78732
|
308
|
|
78339
78733
|
]
|
|
78734
|
+
},
|
|
78735
|
+
headers: {
|
|
78736
|
+
description: "Additional HTTP headers to include in the request. Merged on top of Doc Detective's default browser-mimicking headers. Useful for sites behind bot protection or WAFs that allowlist specific headers (for example, a Cloudflare Access service token or a `Cookie` with a `cf_clearance` value).",
|
|
78737
|
+
default: {},
|
|
78738
|
+
anyOf: [
|
|
78739
|
+
{
|
|
78740
|
+
title: "Request headers (object)",
|
|
78741
|
+
description: "Headers to include in the HTTP request, in key/value format. Values must be strings.",
|
|
78742
|
+
type: "object",
|
|
78743
|
+
additionalProperties: {
|
|
78744
|
+
type: "string"
|
|
78745
|
+
},
|
|
78746
|
+
properties: {}
|
|
78747
|
+
},
|
|
78748
|
+
{
|
|
78749
|
+
title: "Request headers (string)",
|
|
78750
|
+
description: "Headers to include in the HTTP request, as newline-separated values. For example, `X-Api-Key: abc123\nAuthorization: Bearer token`.",
|
|
78751
|
+
type: "string"
|
|
78752
|
+
}
|
|
78753
|
+
]
|
|
78340
78754
|
}
|
|
78341
78755
|
}
|
|
78342
78756
|
}
|
|
@@ -78400,6 +78814,26 @@ var schemas_default = {
|
|
|
78400
78814
|
307,
|
|
78401
78815
|
308
|
|
78402
78816
|
]
|
|
78817
|
+
},
|
|
78818
|
+
headers: {
|
|
78819
|
+
description: "Additional HTTP headers to include in the request. Merged on top of Doc Detective's default browser-mimicking headers. Useful for sites behind bot protection or WAFs that allowlist specific headers (for example, a Cloudflare Access service token or a `Cookie` with a `cf_clearance` value).",
|
|
78820
|
+
default: {},
|
|
78821
|
+
anyOf: [
|
|
78822
|
+
{
|
|
78823
|
+
title: "Request headers (object)",
|
|
78824
|
+
description: "Headers to include in the HTTP request, in key/value format. Values must be strings.",
|
|
78825
|
+
type: "object",
|
|
78826
|
+
additionalProperties: {
|
|
78827
|
+
type: "string"
|
|
78828
|
+
},
|
|
78829
|
+
properties: {}
|
|
78830
|
+
},
|
|
78831
|
+
{
|
|
78832
|
+
title: "Request headers (string)",
|
|
78833
|
+
description: "Headers to include in the HTTP request, as newline-separated values. For example, `X-Api-Key: abc123\nAuthorization: Bearer token`.",
|
|
78834
|
+
type: "string"
|
|
78835
|
+
}
|
|
78836
|
+
]
|
|
78403
78837
|
}
|
|
78404
78838
|
}
|
|
78405
78839
|
}
|
|
@@ -86434,6 +86868,26 @@ var schemas_default = {
|
|
|
86434
86868
|
307,
|
|
86435
86869
|
308
|
|
86436
86870
|
]
|
|
86871
|
+
},
|
|
86872
|
+
headers: {
|
|
86873
|
+
description: "Additional HTTP headers to include in the request. Merged on top of Doc Detective's default browser-mimicking headers. Useful for sites behind bot protection or WAFs that allowlist specific headers (for example, a Cloudflare Access service token or a `Cookie` with a `cf_clearance` value).",
|
|
86874
|
+
default: {},
|
|
86875
|
+
anyOf: [
|
|
86876
|
+
{
|
|
86877
|
+
title: "Request headers (object)",
|
|
86878
|
+
description: "Headers to include in the HTTP request, in key/value format. Values must be strings.",
|
|
86879
|
+
type: "object",
|
|
86880
|
+
additionalProperties: {
|
|
86881
|
+
type: "string"
|
|
86882
|
+
},
|
|
86883
|
+
properties: {}
|
|
86884
|
+
},
|
|
86885
|
+
{
|
|
86886
|
+
title: "Request headers (string)",
|
|
86887
|
+
description: "Headers to include in the HTTP request, as newline-separated values. For example, `X-Api-Key: abc123\nAuthorization: Bearer token`.",
|
|
86888
|
+
type: "string"
|
|
86889
|
+
}
|
|
86890
|
+
]
|
|
86437
86891
|
}
|
|
86438
86892
|
}
|
|
86439
86893
|
}
|
|
@@ -86497,6 +86951,26 @@ var schemas_default = {
|
|
|
86497
86951
|
307,
|
|
86498
86952
|
308
|
|
86499
86953
|
]
|
|
86954
|
+
},
|
|
86955
|
+
headers: {
|
|
86956
|
+
description: "Additional HTTP headers to include in the request. Merged on top of Doc Detective's default browser-mimicking headers. Useful for sites behind bot protection or WAFs that allowlist specific headers (for example, a Cloudflare Access service token or a `Cookie` with a `cf_clearance` value).",
|
|
86957
|
+
default: {},
|
|
86958
|
+
anyOf: [
|
|
86959
|
+
{
|
|
86960
|
+
title: "Request headers (object)",
|
|
86961
|
+
description: "Headers to include in the HTTP request, in key/value format. Values must be strings.",
|
|
86962
|
+
type: "object",
|
|
86963
|
+
additionalProperties: {
|
|
86964
|
+
type: "string"
|
|
86965
|
+
},
|
|
86966
|
+
properties: {}
|
|
86967
|
+
},
|
|
86968
|
+
{
|
|
86969
|
+
title: "Request headers (string)",
|
|
86970
|
+
description: "Headers to include in the HTTP request, as newline-separated values. For example, `X-Api-Key: abc123\nAuthorization: Bearer token`.",
|
|
86971
|
+
type: "string"
|
|
86972
|
+
}
|
|
86973
|
+
]
|
|
86500
86974
|
}
|
|
86501
86975
|
}
|
|
86502
86976
|
}
|
|
@@ -94811,6 +95285,26 @@ var schemas_default = {
|
|
|
94811
95285
|
307,
|
|
94812
95286
|
308
|
|
94813
95287
|
]
|
|
95288
|
+
},
|
|
95289
|
+
headers: {
|
|
95290
|
+
description: "Additional HTTP headers to include in the request. Merged on top of Doc Detective's default browser-mimicking headers. Useful for sites behind bot protection or WAFs that allowlist specific headers (for example, a Cloudflare Access service token or a `Cookie` with a `cf_clearance` value).",
|
|
95291
|
+
default: {},
|
|
95292
|
+
anyOf: [
|
|
95293
|
+
{
|
|
95294
|
+
title: "Request headers (object)",
|
|
95295
|
+
description: "Headers to include in the HTTP request, in key/value format. Values must be strings.",
|
|
95296
|
+
type: "object",
|
|
95297
|
+
additionalProperties: {
|
|
95298
|
+
type: "string"
|
|
95299
|
+
},
|
|
95300
|
+
properties: {}
|
|
95301
|
+
},
|
|
95302
|
+
{
|
|
95303
|
+
title: "Request headers (string)",
|
|
95304
|
+
description: "Headers to include in the HTTP request, as newline-separated values. For example, `X-Api-Key: abc123\nAuthorization: Bearer token`.",
|
|
95305
|
+
type: "string"
|
|
95306
|
+
}
|
|
95307
|
+
]
|
|
94814
95308
|
}
|
|
94815
95309
|
}
|
|
94816
95310
|
}
|
|
@@ -94874,6 +95368,26 @@ var schemas_default = {
|
|
|
94874
95368
|
307,
|
|
94875
95369
|
308
|
|
94876
95370
|
]
|
|
95371
|
+
},
|
|
95372
|
+
headers: {
|
|
95373
|
+
description: "Additional HTTP headers to include in the request. Merged on top of Doc Detective's default browser-mimicking headers. Useful for sites behind bot protection or WAFs that allowlist specific headers (for example, a Cloudflare Access service token or a `Cookie` with a `cf_clearance` value).",
|
|
95374
|
+
default: {},
|
|
95375
|
+
anyOf: [
|
|
95376
|
+
{
|
|
95377
|
+
title: "Request headers (object)",
|
|
95378
|
+
description: "Headers to include in the HTTP request, in key/value format. Values must be strings.",
|
|
95379
|
+
type: "object",
|
|
95380
|
+
additionalProperties: {
|
|
95381
|
+
type: "string"
|
|
95382
|
+
},
|
|
95383
|
+
properties: {}
|
|
95384
|
+
},
|
|
95385
|
+
{
|
|
95386
|
+
title: "Request headers (string)",
|
|
95387
|
+
description: "Headers to include in the HTTP request, as newline-separated values. For example, `X-Api-Key: abc123\nAuthorization: Bearer token`.",
|
|
95388
|
+
type: "string"
|
|
95389
|
+
}
|
|
95390
|
+
]
|
|
94877
95391
|
}
|
|
94878
95392
|
}
|
|
94879
95393
|
}
|
|
@@ -103261,6 +103775,26 @@ var schemas_default = {
|
|
|
103261
103775
|
307,
|
|
103262
103776
|
308
|
|
103263
103777
|
]
|
|
103778
|
+
},
|
|
103779
|
+
headers: {
|
|
103780
|
+
description: "Additional HTTP headers to include in the request. Merged on top of Doc Detective's default browser-mimicking headers. Useful for sites behind bot protection or WAFs that allowlist specific headers (for example, a Cloudflare Access service token or a `Cookie` with a `cf_clearance` value).",
|
|
103781
|
+
default: {},
|
|
103782
|
+
anyOf: [
|
|
103783
|
+
{
|
|
103784
|
+
title: "Request headers (object)",
|
|
103785
|
+
description: "Headers to include in the HTTP request, in key/value format. Values must be strings.",
|
|
103786
|
+
type: "object",
|
|
103787
|
+
additionalProperties: {
|
|
103788
|
+
type: "string"
|
|
103789
|
+
},
|
|
103790
|
+
properties: {}
|
|
103791
|
+
},
|
|
103792
|
+
{
|
|
103793
|
+
title: "Request headers (string)",
|
|
103794
|
+
description: "Headers to include in the HTTP request, as newline-separated values. For example, `X-Api-Key: abc123\nAuthorization: Bearer token`.",
|
|
103795
|
+
type: "string"
|
|
103796
|
+
}
|
|
103797
|
+
]
|
|
103264
103798
|
}
|
|
103265
103799
|
}
|
|
103266
103800
|
}
|
|
@@ -103324,6 +103858,26 @@ var schemas_default = {
|
|
|
103324
103858
|
307,
|
|
103325
103859
|
308
|
|
103326
103860
|
]
|
|
103861
|
+
},
|
|
103862
|
+
headers: {
|
|
103863
|
+
description: "Additional HTTP headers to include in the request. Merged on top of Doc Detective's default browser-mimicking headers. Useful for sites behind bot protection or WAFs that allowlist specific headers (for example, a Cloudflare Access service token or a `Cookie` with a `cf_clearance` value).",
|
|
103864
|
+
default: {},
|
|
103865
|
+
anyOf: [
|
|
103866
|
+
{
|
|
103867
|
+
title: "Request headers (object)",
|
|
103868
|
+
description: "Headers to include in the HTTP request, in key/value format. Values must be strings.",
|
|
103869
|
+
type: "object",
|
|
103870
|
+
additionalProperties: {
|
|
103871
|
+
type: "string"
|
|
103872
|
+
},
|
|
103873
|
+
properties: {}
|
|
103874
|
+
},
|
|
103875
|
+
{
|
|
103876
|
+
title: "Request headers (string)",
|
|
103877
|
+
description: "Headers to include in the HTTP request, as newline-separated values. For example, `X-Api-Key: abc123\nAuthorization: Bearer token`.",
|
|
103878
|
+
type: "string"
|
|
103879
|
+
}
|
|
103880
|
+
]
|
|
103327
103881
|
}
|
|
103328
103882
|
}
|
|
103329
103883
|
}
|
|
@@ -111358,6 +111912,26 @@ var schemas_default = {
|
|
|
111358
111912
|
307,
|
|
111359
111913
|
308
|
|
111360
111914
|
]
|
|
111915
|
+
},
|
|
111916
|
+
headers: {
|
|
111917
|
+
description: "Additional HTTP headers to include in the request. Merged on top of Doc Detective's default browser-mimicking headers. Useful for sites behind bot protection or WAFs that allowlist specific headers (for example, a Cloudflare Access service token or a `Cookie` with a `cf_clearance` value).",
|
|
111918
|
+
default: {},
|
|
111919
|
+
anyOf: [
|
|
111920
|
+
{
|
|
111921
|
+
title: "Request headers (object)",
|
|
111922
|
+
description: "Headers to include in the HTTP request, in key/value format. Values must be strings.",
|
|
111923
|
+
type: "object",
|
|
111924
|
+
additionalProperties: {
|
|
111925
|
+
type: "string"
|
|
111926
|
+
},
|
|
111927
|
+
properties: {}
|
|
111928
|
+
},
|
|
111929
|
+
{
|
|
111930
|
+
title: "Request headers (string)",
|
|
111931
|
+
description: "Headers to include in the HTTP request, as newline-separated values. For example, `X-Api-Key: abc123\nAuthorization: Bearer token`.",
|
|
111932
|
+
type: "string"
|
|
111933
|
+
}
|
|
111934
|
+
]
|
|
111361
111935
|
}
|
|
111362
111936
|
}
|
|
111363
111937
|
}
|
|
@@ -111421,6 +111995,26 @@ var schemas_default = {
|
|
|
111421
111995
|
307,
|
|
111422
111996
|
308
|
|
111423
111997
|
]
|
|
111998
|
+
},
|
|
111999
|
+
headers: {
|
|
112000
|
+
description: "Additional HTTP headers to include in the request. Merged on top of Doc Detective's default browser-mimicking headers. Useful for sites behind bot protection or WAFs that allowlist specific headers (for example, a Cloudflare Access service token or a `Cookie` with a `cf_clearance` value).",
|
|
112001
|
+
default: {},
|
|
112002
|
+
anyOf: [
|
|
112003
|
+
{
|
|
112004
|
+
title: "Request headers (object)",
|
|
112005
|
+
description: "Headers to include in the HTTP request, in key/value format. Values must be strings.",
|
|
112006
|
+
type: "object",
|
|
112007
|
+
additionalProperties: {
|
|
112008
|
+
type: "string"
|
|
112009
|
+
},
|
|
112010
|
+
properties: {}
|
|
112011
|
+
},
|
|
112012
|
+
{
|
|
112013
|
+
title: "Request headers (string)",
|
|
112014
|
+
description: "Headers to include in the HTTP request, as newline-separated values. For example, `X-Api-Key: abc123\nAuthorization: Bearer token`.",
|
|
112015
|
+
type: "string"
|
|
112016
|
+
}
|
|
112017
|
+
]
|
|
111424
112018
|
}
|
|
111425
112019
|
}
|
|
111426
112020
|
}
|
|
@@ -128637,11 +129231,17 @@ var defaultFileTypesBase = {
|
|
|
128637
129231
|
inlineStatements: {
|
|
128638
129232
|
testStart: [
|
|
128639
129233
|
"<\\?doc-detective\\s+test([\\s\\S]*?)\\?>",
|
|
128640
|
-
"<!--\\s*test([\\s\\S]+?)-->"
|
|
129234
|
+
"<!--\\s*test([\\s\\S]+?)-->",
|
|
129235
|
+
`<data\\s+[^>]*?name=["']doc-detective["'][^>]*?value='test\\s+([^']+?)'[^>]*?(?:\\/\\s*>|>\\s*<\\/data>)`,
|
|
129236
|
+
`<data\\s+[^>]*?name=["']doc-detective["'][^>]*?value="test\\s+([^"]+?)"[^>]*?(?:\\/\\s*>|>\\s*<\\/data>)`,
|
|
129237
|
+
`<data\\s+[^>]*?value='test\\s+([^']+?)'[^>]*?name=["']doc-detective["'][^>]*?(?:\\/\\s*>|>\\s*<\\/data>)`,
|
|
129238
|
+
`<data\\s+[^>]*?value="test\\s+([^"]+?)"[^>]*?name=["']doc-detective["'][^>]*?(?:\\/\\s*>|>\\s*<\\/data>)`
|
|
128641
129239
|
],
|
|
128642
129240
|
testEnd: [
|
|
128643
129241
|
"<\\?doc-detective\\s+test\\s+end\\s*\\?>",
|
|
128644
|
-
"<!--\\s*test end([\\s\\S]+?)-->"
|
|
129242
|
+
"<!--\\s*test end([\\s\\S]+?)-->",
|
|
129243
|
+
`<data\\s+[^>]*?name=["']doc-detective["'][^>]*?value=["']test end["'][^>]*?(?:\\/\\s*>|>\\s*<\\/data>)`,
|
|
129244
|
+
`<data\\s+[^>]*?value=["']test end["'][^>]*?name=["']doc-detective["'][^>]*?(?:\\/\\s*>|>\\s*<\\/data>)`
|
|
128645
129245
|
],
|
|
128646
129246
|
ignoreStart: [
|
|
128647
129247
|
"<\\?doc-detective\\s+test\\s+ignore\\s+start\\s*\\?>",
|
|
@@ -128654,7 +129254,11 @@ var defaultFileTypesBase = {
|
|
|
128654
129254
|
step: [
|
|
128655
129255
|
"<\\?doc-detective\\s+step\\s+([\\s\\S]*?)\\s*\\?>",
|
|
128656
129256
|
"<!--\\s*step([\\s\\S]+?)-->",
|
|
128657
|
-
'<data\\s+name="step"\\s*>([\\s\\S]*?)<\\/data>'
|
|
129257
|
+
'<data\\s+name="step"\\s*>([\\s\\S]*?)<\\/data>',
|
|
129258
|
+
`<data\\s+[^>]*?name=["']doc-detective["'][^>]*?value='step\\s+([^']+?)'[^>]*?(?:\\/\\s*>|>\\s*<\\/data>)`,
|
|
129259
|
+
`<data\\s+[^>]*?name=["']doc-detective["'][^>]*?value="step\\s+([^"]+?)"[^>]*?(?:\\/\\s*>|>\\s*<\\/data>)`,
|
|
129260
|
+
`<data\\s+[^>]*?value='step\\s+([^']+?)'[^>]*?name=["']doc-detective["'][^>]*?(?:\\/\\s*>|>\\s*<\\/data>)`,
|
|
129261
|
+
`<data\\s+[^>]*?value="step\\s+([^"]+?)"[^>]*?name=["']doc-detective["'][^>]*?(?:\\/\\s*>|>\\s*<\\/data>)`
|
|
128658
129262
|
]
|
|
128659
129263
|
},
|
|
128660
129264
|
markup: [
|
|
@@ -129007,6 +129611,9 @@ function parseXmlAttributes({ stringifiedObject }) {
|
|
|
129007
129611
|
}
|
|
129008
129612
|
function parseObject({ stringifiedObject }) {
|
|
129009
129613
|
if (typeof stringifiedObject === "string") {
|
|
129614
|
+
if (/&(?:#\d+|#x[0-9a-fA-F]+|amp|lt|gt|quot|apos);/.test(stringifiedObject)) {
|
|
129615
|
+
stringifiedObject = stringifiedObject.replace(/'|'/g, "'").replace(/"|"/g, '"').replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
129616
|
+
}
|
|
129010
129617
|
const xmlAttrs = parseXmlAttributes({ stringifiedObject });
|
|
129011
129618
|
if (xmlAttrs !== null) {
|
|
129012
129619
|
return xmlAttrs;
|
|
@@ -129266,17 +129873,7 @@ async function parseContent({ config = {}, content, filePath = "", fileType }) {
|
|
|
129266
129873
|
if (step.screenshot && config._herettoPathMapping) {
|
|
129267
129874
|
const herettoIntegration = findHerettoIntegration(config, filePath);
|
|
129268
129875
|
if (herettoIntegration) {
|
|
129269
|
-
|
|
129270
|
-
step.screenshot = { path: step.screenshot };
|
|
129271
|
-
} else if (typeof step.screenshot === "boolean") {
|
|
129272
|
-
step.screenshot = {};
|
|
129273
|
-
}
|
|
129274
|
-
step.screenshot.sourceIntegration = {
|
|
129275
|
-
type: "heretto",
|
|
129276
|
-
integrationName: herettoIntegration,
|
|
129277
|
-
filePath: step.screenshot.path || "",
|
|
129278
|
-
contentPath: filePath
|
|
129279
|
-
};
|
|
129876
|
+
attachHerettoScreenshotSourceIntegration(step, herettoIntegration, filePath);
|
|
129280
129877
|
}
|
|
129281
129878
|
}
|
|
129282
129879
|
}
|
|
@@ -129342,6 +129939,12 @@ async function parseContent({ config = {}, content, filePath = "", fileType }) {
|
|
|
129342
129939
|
endIndex: statement._endIndex
|
|
129343
129940
|
};
|
|
129344
129941
|
}
|
|
129942
|
+
if (step.screenshot && config._herettoPathMapping) {
|
|
129943
|
+
const herettoIntegration = findHerettoIntegration(config, filePath);
|
|
129944
|
+
if (herettoIntegration) {
|
|
129945
|
+
attachHerettoScreenshotSourceIntegration(step, herettoIntegration, filePath);
|
|
129946
|
+
}
|
|
129947
|
+
}
|
|
129345
129948
|
const validation = validate({
|
|
129346
129949
|
schemaKey: "step_v3",
|
|
129347
129950
|
object: step,
|
|
@@ -129380,6 +129983,19 @@ async function parseContent({ config = {}, content, filePath = "", fileType }) {
|
|
|
129380
129983
|
});
|
|
129381
129984
|
return validatedTests;
|
|
129382
129985
|
}
|
|
129986
|
+
function attachHerettoScreenshotSourceIntegration(step, integrationName, contentPath) {
|
|
129987
|
+
if (typeof step.screenshot === "string") {
|
|
129988
|
+
step.screenshot = { path: step.screenshot };
|
|
129989
|
+
} else if (step.screenshot === null || typeof step.screenshot !== "object" || Array.isArray(step.screenshot)) {
|
|
129990
|
+
step.screenshot = {};
|
|
129991
|
+
}
|
|
129992
|
+
step.screenshot.sourceIntegration = {
|
|
129993
|
+
type: "heretto",
|
|
129994
|
+
integrationName,
|
|
129995
|
+
filePath: step.screenshot.path || "",
|
|
129996
|
+
contentPath
|
|
129997
|
+
};
|
|
129998
|
+
}
|
|
129383
129999
|
function findHerettoIntegration(config, filePath) {
|
|
129384
130000
|
if (!config._herettoPathMapping)
|
|
129385
130001
|
return null;
|