reffy 19.1.7 → 19.2.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reffy",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.2.0",
|
|
4
4
|
"description": "W3C/WHATWG spec dependencies exploration companion. Features a short set of tools to study spec references as well as WebIDL term definitions and references found in W3C specifications.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -37,15 +37,15 @@
|
|
|
37
37
|
"ajv-formats": "3.0.1",
|
|
38
38
|
"commander": "14.0.0",
|
|
39
39
|
"fetch-filecache-for-crawling": "5.1.1",
|
|
40
|
-
"puppeteer": "24.
|
|
40
|
+
"puppeteer": "24.17.1",
|
|
41
41
|
"semver": "^7.3.5",
|
|
42
|
-
"web-specs": "3.
|
|
42
|
+
"web-specs": "3.61.0",
|
|
43
43
|
"webidl2": "24.5.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"respec": "35.
|
|
46
|
+
"respec": "35.5.1",
|
|
47
47
|
"respec-hljs": "2.1.1",
|
|
48
|
-
"rollup": "4.
|
|
48
|
+
"rollup": "4.50.0",
|
|
49
49
|
"undici": "^7.0.0"
|
|
50
50
|
},
|
|
51
51
|
"overrides": {
|
package/schemas/common.json
CHANGED
|
@@ -105,6 +105,80 @@
|
|
|
105
105
|
"additionalProperties": { "$ref": "#/$defs/interfaces" }
|
|
106
106
|
},
|
|
107
107
|
|
|
108
|
+
"idlFragment": {
|
|
109
|
+
"description": "Represents a Web IDL fragment definition.",
|
|
110
|
+
"type": "object",
|
|
111
|
+
"properties": {
|
|
112
|
+
"fragment": {
|
|
113
|
+
"description": "The raw IDL fragment.",
|
|
114
|
+
"type": "string",
|
|
115
|
+
"minLength": 1
|
|
116
|
+
},
|
|
117
|
+
"type": {
|
|
118
|
+
"description": "The type of the IDL definition.",
|
|
119
|
+
"$ref": "#/$defs/extensiontype"
|
|
120
|
+
},
|
|
121
|
+
"name": {
|
|
122
|
+
"description": "The name of the IDL definition.",
|
|
123
|
+
"type": "string",
|
|
124
|
+
"minLength": 1
|
|
125
|
+
},
|
|
126
|
+
"target": {
|
|
127
|
+
"description": "The target of an includes statement.",
|
|
128
|
+
"type": "string",
|
|
129
|
+
"minLength": 1
|
|
130
|
+
},
|
|
131
|
+
"includes": {
|
|
132
|
+
"description": "The module that is included.",
|
|
133
|
+
"type": "string",
|
|
134
|
+
"minLength": 1
|
|
135
|
+
},
|
|
136
|
+
"inheritance": {
|
|
137
|
+
"description": "The name of the inherited interface, if any.",
|
|
138
|
+
"type": [
|
|
139
|
+
"string",
|
|
140
|
+
"null"
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
"members": {
|
|
144
|
+
"description": "A list of members of the IDL definition.",
|
|
145
|
+
"type": "array",
|
|
146
|
+
"items": {
|
|
147
|
+
"$ref": "#/$defs/idlMember"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"idlType": {
|
|
151
|
+
"$ref": "#/$defs/idlType"
|
|
152
|
+
},
|
|
153
|
+
"arguments": {
|
|
154
|
+
"type": "array",
|
|
155
|
+
"items": {
|
|
156
|
+
"$ref": "#/$defs/argument"
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"extAttrs": {
|
|
160
|
+
"description": "A list of extended attributes.",
|
|
161
|
+
"type": "array",
|
|
162
|
+
"items": {
|
|
163
|
+
"$ref": "#/$defs/extendedAttribute"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"partial": {
|
|
167
|
+
"description": "Whether the definition is partial.",
|
|
168
|
+
"type": "boolean"
|
|
169
|
+
},
|
|
170
|
+
"href": {
|
|
171
|
+
"description": "The URL to the definition.",
|
|
172
|
+
"type": "string"
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"required": [
|
|
176
|
+
"fragment",
|
|
177
|
+
"type",
|
|
178
|
+
"extAttrs"
|
|
179
|
+
]
|
|
180
|
+
},
|
|
181
|
+
|
|
108
182
|
"idlFragmentInSpec": {
|
|
109
183
|
"type": "object",
|
|
110
184
|
"additionalProperties": false,
|
|
@@ -144,6 +218,660 @@
|
|
|
144
218
|
"specShortname": { "$ref": "#/$defs/shortname" }
|
|
145
219
|
}
|
|
146
220
|
}
|
|
221
|
+
},
|
|
222
|
+
|
|
223
|
+
"idlType": {
|
|
224
|
+
"description": "Represents a WebIDL type.",
|
|
225
|
+
"type": "object",
|
|
226
|
+
"properties": {
|
|
227
|
+
"type": {
|
|
228
|
+
"description": "The type of the IDL type.",
|
|
229
|
+
"type": [
|
|
230
|
+
"string",
|
|
231
|
+
"null"
|
|
232
|
+
],
|
|
233
|
+
"enum": [
|
|
234
|
+
"argument-type",
|
|
235
|
+
"attribute-type",
|
|
236
|
+
"return-type",
|
|
237
|
+
"const-type",
|
|
238
|
+
"dictionary-type",
|
|
239
|
+
"field-type",
|
|
240
|
+
"typedef-type",
|
|
241
|
+
null
|
|
242
|
+
]
|
|
243
|
+
},
|
|
244
|
+
"extAttrs": {
|
|
245
|
+
"description": "A list of extended attributes.",
|
|
246
|
+
"type": "array",
|
|
247
|
+
"items": {
|
|
248
|
+
"$ref": "#/$defs/extendedAttribute"
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
"generic": {
|
|
252
|
+
"description": "The type of a parameterized type, if any.",
|
|
253
|
+
"type": "string",
|
|
254
|
+
"enum": [
|
|
255
|
+
"",
|
|
256
|
+
"FrozenArray",
|
|
257
|
+
"ObservableArray",
|
|
258
|
+
"Promise",
|
|
259
|
+
"record",
|
|
260
|
+
"sequence",
|
|
261
|
+
"async_sequence"
|
|
262
|
+
]
|
|
263
|
+
},
|
|
264
|
+
"nullable": {
|
|
265
|
+
"description": "Whether the type is nullable.",
|
|
266
|
+
"type": "boolean"
|
|
267
|
+
},
|
|
268
|
+
"union": {
|
|
269
|
+
"description": "Whether the type is a union type.",
|
|
270
|
+
"type": "boolean"
|
|
271
|
+
},
|
|
272
|
+
"idlType": {
|
|
273
|
+
"description": "The inner IDL type. Can be a string or an array of idlType objects for union or parameterized types.",
|
|
274
|
+
"oneOf": [
|
|
275
|
+
{
|
|
276
|
+
"type": "string"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"type": "array",
|
|
280
|
+
"items": {
|
|
281
|
+
"$ref": "#/$defs/idlType"
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
]
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
"required": [
|
|
288
|
+
"type",
|
|
289
|
+
"extAttrs",
|
|
290
|
+
"generic",
|
|
291
|
+
"nullable",
|
|
292
|
+
"union",
|
|
293
|
+
"idlType"
|
|
294
|
+
]
|
|
295
|
+
},
|
|
296
|
+
"extendedAttribute": {
|
|
297
|
+
"description": "Represents a WebIDL extended attribute.",
|
|
298
|
+
"type": "object",
|
|
299
|
+
"properties": {
|
|
300
|
+
"type": {
|
|
301
|
+
"type": "string",
|
|
302
|
+
"enum": [
|
|
303
|
+
"extended-attribute"
|
|
304
|
+
]
|
|
305
|
+
},
|
|
306
|
+
"name": {
|
|
307
|
+
"description": "The name of the extended attribute.",
|
|
308
|
+
"type": "string"
|
|
309
|
+
},
|
|
310
|
+
"rhs": {
|
|
311
|
+
"description": "The right-hand side of the extended attribute, if applicable.",
|
|
312
|
+
"type": [
|
|
313
|
+
"object",
|
|
314
|
+
"null"
|
|
315
|
+
]
|
|
316
|
+
},
|
|
317
|
+
"arguments": {
|
|
318
|
+
"description": "A list of arguments for the extended attribute.",
|
|
319
|
+
"type": "array"
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
"required": [
|
|
323
|
+
"type",
|
|
324
|
+
"name",
|
|
325
|
+
"rhs",
|
|
326
|
+
"arguments"
|
|
327
|
+
]
|
|
328
|
+
},
|
|
329
|
+
"argument": {
|
|
330
|
+
"description": "Represents an argument to a WebIDL operation or constructor.",
|
|
331
|
+
"type": "object",
|
|
332
|
+
"properties": {
|
|
333
|
+
"type": {
|
|
334
|
+
"const": "argument"
|
|
335
|
+
},
|
|
336
|
+
"name": {
|
|
337
|
+
"description": "The name of the argument.",
|
|
338
|
+
"type": "string"
|
|
339
|
+
},
|
|
340
|
+
"extAttrs": {
|
|
341
|
+
"description": "A list of extended attributes.",
|
|
342
|
+
"type": "array",
|
|
343
|
+
"items": {
|
|
344
|
+
"$ref": "#/$defs/extendedAttribute"
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
"idlType": {
|
|
348
|
+
"$ref": "#/$defs/idlType"
|
|
349
|
+
},
|
|
350
|
+
"default": {
|
|
351
|
+
"$ref": "#/$defs/defaultValue"
|
|
352
|
+
},
|
|
353
|
+
"optional": {
|
|
354
|
+
"description": "Whether the argument is optional.",
|
|
355
|
+
"type": "boolean"
|
|
356
|
+
},
|
|
357
|
+
"variadic": {
|
|
358
|
+
"description": "Whether the argument is variadic.",
|
|
359
|
+
"type": "boolean"
|
|
360
|
+
}
|
|
361
|
+
},
|
|
362
|
+
"required": [
|
|
363
|
+
"type",
|
|
364
|
+
"name",
|
|
365
|
+
"extAttrs",
|
|
366
|
+
"idlType",
|
|
367
|
+
"default",
|
|
368
|
+
"optional",
|
|
369
|
+
"variadic"
|
|
370
|
+
]
|
|
371
|
+
},
|
|
372
|
+
"idlMember": {
|
|
373
|
+
"description": "Represents a member of a WebIDL interface, dictionary, etc.",
|
|
374
|
+
"oneOf": [
|
|
375
|
+
{
|
|
376
|
+
"$ref": "#/$defs/constructorMember"
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"$ref": "#/$defs/attributeMember"
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"$ref": "#/$defs/operationMember"
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"$ref": "#/$defs/constMember"
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"$ref": "#/$defs/fieldMember"
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
"$ref": "#/$defs/iterableMember"
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"$ref": "#/$defs/setlikeMember"
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"$ref": "#/$defs/maplikeMember"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"$ref": "#/$defs/asyncIterableMember"
|
|
401
|
+
}
|
|
402
|
+
]
|
|
403
|
+
},
|
|
404
|
+
"constructorMember": {
|
|
405
|
+
"type": "object",
|
|
406
|
+
"properties": {
|
|
407
|
+
"type": {
|
|
408
|
+
"const": "constructor"
|
|
409
|
+
},
|
|
410
|
+
"arguments": {
|
|
411
|
+
"description": "A list of arguments for the constructor.",
|
|
412
|
+
"type": "array",
|
|
413
|
+
"items": {
|
|
414
|
+
"$ref": "#/$defs/argument"
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
"extAttrs": {
|
|
418
|
+
"description": "A list of extended attributes.",
|
|
419
|
+
"type": "array",
|
|
420
|
+
"items": {
|
|
421
|
+
"$ref": "#/$defs/extendedAttribute"
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
"href": {
|
|
425
|
+
"description": "The URL to the definition of the constructor.",
|
|
426
|
+
"type": "string"
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
"required": [
|
|
430
|
+
"type",
|
|
431
|
+
"arguments",
|
|
432
|
+
"extAttrs"
|
|
433
|
+
]
|
|
434
|
+
},
|
|
435
|
+
"attributeMember": {
|
|
436
|
+
"type": "object",
|
|
437
|
+
"properties": {
|
|
438
|
+
"type": {
|
|
439
|
+
"const": "attribute"
|
|
440
|
+
},
|
|
441
|
+
"name": {
|
|
442
|
+
"description": "The name of the attribute.",
|
|
443
|
+
"type": "string"
|
|
444
|
+
},
|
|
445
|
+
"idlType": {
|
|
446
|
+
"$ref": "#/$defs/idlType"
|
|
447
|
+
},
|
|
448
|
+
"extAttrs": {
|
|
449
|
+
"description": "A list of extended attributes.",
|
|
450
|
+
"type": "array",
|
|
451
|
+
"items": {
|
|
452
|
+
"$ref": "#/$defs/extendedAttribute"
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
"special": {
|
|
456
|
+
"description": "The special property of the attribute (e.g., 'static').",
|
|
457
|
+
"type": "string",
|
|
458
|
+
"enum": [
|
|
459
|
+
"",
|
|
460
|
+
"inherit",
|
|
461
|
+
"static",
|
|
462
|
+
"stringifier"
|
|
463
|
+
]
|
|
464
|
+
},
|
|
465
|
+
"readonly": {
|
|
466
|
+
"description": "Whether the attribute is read-only.",
|
|
467
|
+
"type": "boolean"
|
|
468
|
+
},
|
|
469
|
+
"href": {
|
|
470
|
+
"description": "The URL to the definition of the attribute.",
|
|
471
|
+
"type": "string"
|
|
472
|
+
}
|
|
473
|
+
},
|
|
474
|
+
"required": [
|
|
475
|
+
"type",
|
|
476
|
+
"name",
|
|
477
|
+
"idlType",
|
|
478
|
+
"extAttrs",
|
|
479
|
+
"special"
|
|
480
|
+
]
|
|
481
|
+
},
|
|
482
|
+
"operationMember": {
|
|
483
|
+
"type": "object",
|
|
484
|
+
"properties": {
|
|
485
|
+
"type": {
|
|
486
|
+
"const": "operation"
|
|
487
|
+
},
|
|
488
|
+
"name": {
|
|
489
|
+
"description": "The name of the operation.",
|
|
490
|
+
"type": "string"
|
|
491
|
+
},
|
|
492
|
+
"idlType": {
|
|
493
|
+
"$ref": "#/$defs/idlType"
|
|
494
|
+
},
|
|
495
|
+
"arguments": {
|
|
496
|
+
"description": "A list of arguments for the operation.",
|
|
497
|
+
"type": "array",
|
|
498
|
+
"items": {
|
|
499
|
+
"$ref": "#/$defs/argument"
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
"extAttrs": {
|
|
503
|
+
"description": "A list of extended attributes.",
|
|
504
|
+
"type": "array",
|
|
505
|
+
"items": {
|
|
506
|
+
"$ref": "#/$defs/extendedAttribute"
|
|
507
|
+
}
|
|
508
|
+
},
|
|
509
|
+
"special": {
|
|
510
|
+
"description": "The special property of the operation (e.g., 'static').",
|
|
511
|
+
"type": "string",
|
|
512
|
+
"enum": [
|
|
513
|
+
"",
|
|
514
|
+
"deleter",
|
|
515
|
+
"getter",
|
|
516
|
+
"setter",
|
|
517
|
+
"static",
|
|
518
|
+
"stringifier"
|
|
519
|
+
]
|
|
520
|
+
},
|
|
521
|
+
"readonly": {
|
|
522
|
+
"description": "Whether the operation is read-only.",
|
|
523
|
+
"type": "boolean"
|
|
524
|
+
},
|
|
525
|
+
"href": {
|
|
526
|
+
"description": "The URL to the definition of the operation.",
|
|
527
|
+
"type": "string"
|
|
528
|
+
}
|
|
529
|
+
},
|
|
530
|
+
"required": [
|
|
531
|
+
"type",
|
|
532
|
+
"name",
|
|
533
|
+
"arguments",
|
|
534
|
+
"extAttrs",
|
|
535
|
+
"special"
|
|
536
|
+
]
|
|
537
|
+
},
|
|
538
|
+
"constMember": {
|
|
539
|
+
"type": "object",
|
|
540
|
+
"properties": {
|
|
541
|
+
"type": {
|
|
542
|
+
"const": "const"
|
|
543
|
+
},
|
|
544
|
+
"name": {
|
|
545
|
+
"description": "The name of the constant.",
|
|
546
|
+
"type": "string"
|
|
547
|
+
},
|
|
548
|
+
"idlType": {
|
|
549
|
+
"$ref": "#/$defs/idlType"
|
|
550
|
+
},
|
|
551
|
+
"extAttrs": {
|
|
552
|
+
"description": "A list of extended attributes.",
|
|
553
|
+
"type": "array",
|
|
554
|
+
"items": {
|
|
555
|
+
"$ref": "#/$defs/extendedAttribute"
|
|
556
|
+
}
|
|
557
|
+
},
|
|
558
|
+
"value": {
|
|
559
|
+
"description": "The value of the constant.",
|
|
560
|
+
"type": "object"
|
|
561
|
+
},
|
|
562
|
+
"href": {
|
|
563
|
+
"description": "The URL to the definition of the constant.",
|
|
564
|
+
"type": "string"
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
"required": [
|
|
568
|
+
"type",
|
|
569
|
+
"name",
|
|
570
|
+
"idlType",
|
|
571
|
+
"extAttrs",
|
|
572
|
+
"value"
|
|
573
|
+
]
|
|
574
|
+
},
|
|
575
|
+
"fieldMember": {
|
|
576
|
+
"type": "object",
|
|
577
|
+
"properties": {
|
|
578
|
+
"type": {
|
|
579
|
+
"const": "field"
|
|
580
|
+
},
|
|
581
|
+
"name": {
|
|
582
|
+
"description": "The name of the field.",
|
|
583
|
+
"type": "string"
|
|
584
|
+
},
|
|
585
|
+
"extAttrs": {
|
|
586
|
+
"description": "A list of extended attributes.",
|
|
587
|
+
"type": "array",
|
|
588
|
+
"items": {
|
|
589
|
+
"$ref": "#/$defs/extendedAttribute"
|
|
590
|
+
}
|
|
591
|
+
},
|
|
592
|
+
"idlType": {
|
|
593
|
+
"$ref": "#/$defs/idlType"
|
|
594
|
+
},
|
|
595
|
+
"default": {
|
|
596
|
+
"$ref": "#/$defs/defaultValue"
|
|
597
|
+
},
|
|
598
|
+
"required": {
|
|
599
|
+
"description": "Whether the field is required.",
|
|
600
|
+
"type": "boolean"
|
|
601
|
+
},
|
|
602
|
+
"href": {
|
|
603
|
+
"description": "The URL to the definition of the field.",
|
|
604
|
+
"type": "string"
|
|
605
|
+
}
|
|
606
|
+
},
|
|
607
|
+
"required": [
|
|
608
|
+
"type",
|
|
609
|
+
"name",
|
|
610
|
+
"extAttrs",
|
|
611
|
+
"idlType",
|
|
612
|
+
"default",
|
|
613
|
+
"required"
|
|
614
|
+
]
|
|
615
|
+
},
|
|
616
|
+
"iterableMember": {
|
|
617
|
+
"type": "object",
|
|
618
|
+
"properties": {
|
|
619
|
+
"type": {
|
|
620
|
+
"const": "iterable"
|
|
621
|
+
},
|
|
622
|
+
"idlType": {
|
|
623
|
+
"type": "array",
|
|
624
|
+
"items": {
|
|
625
|
+
"$ref": "#/$defs/idlType"
|
|
626
|
+
}
|
|
627
|
+
},
|
|
628
|
+
"arguments": {
|
|
629
|
+
"type": "array",
|
|
630
|
+
"items": {
|
|
631
|
+
"$ref": "#/$defs/argument"
|
|
632
|
+
}
|
|
633
|
+
},
|
|
634
|
+
"extAttrs": {
|
|
635
|
+
"type": "array",
|
|
636
|
+
"items": {
|
|
637
|
+
"$ref": "#/$defs/extendedAttribute"
|
|
638
|
+
}
|
|
639
|
+
},
|
|
640
|
+
"readonly": {
|
|
641
|
+
"type": "boolean"
|
|
642
|
+
},
|
|
643
|
+
"async": {
|
|
644
|
+
"type": "boolean"
|
|
645
|
+
}
|
|
646
|
+
},
|
|
647
|
+
"required": [
|
|
648
|
+
"type",
|
|
649
|
+
"idlType",
|
|
650
|
+
"arguments",
|
|
651
|
+
"extAttrs",
|
|
652
|
+
"readonly",
|
|
653
|
+
"async"
|
|
654
|
+
]
|
|
655
|
+
},
|
|
656
|
+
"setlikeMember": {
|
|
657
|
+
"type": "object",
|
|
658
|
+
"properties": {
|
|
659
|
+
"type": {
|
|
660
|
+
"const": "setlike"
|
|
661
|
+
},
|
|
662
|
+
"idlType": {
|
|
663
|
+
"type": "array",
|
|
664
|
+
"items": {
|
|
665
|
+
"$ref": "#/$defs/idlType"
|
|
666
|
+
}
|
|
667
|
+
},
|
|
668
|
+
"arguments": {
|
|
669
|
+
"type": "array",
|
|
670
|
+
"items": {
|
|
671
|
+
"$ref": "#/$defs/argument"
|
|
672
|
+
}
|
|
673
|
+
},
|
|
674
|
+
"extAttrs": {
|
|
675
|
+
"type": "array",
|
|
676
|
+
"items": {
|
|
677
|
+
"$ref": "#/$defs/extendedAttribute"
|
|
678
|
+
}
|
|
679
|
+
},
|
|
680
|
+
"readonly": {
|
|
681
|
+
"type": "boolean"
|
|
682
|
+
},
|
|
683
|
+
"async": {
|
|
684
|
+
"type": "boolean"
|
|
685
|
+
}
|
|
686
|
+
},
|
|
687
|
+
"required": [
|
|
688
|
+
"type",
|
|
689
|
+
"idlType",
|
|
690
|
+
"arguments",
|
|
691
|
+
"extAttrs",
|
|
692
|
+
"readonly",
|
|
693
|
+
"async"
|
|
694
|
+
]
|
|
695
|
+
},
|
|
696
|
+
"maplikeMember": {
|
|
697
|
+
"type": "object",
|
|
698
|
+
"properties": {
|
|
699
|
+
"type": {
|
|
700
|
+
"const": "maplike"
|
|
701
|
+
},
|
|
702
|
+
"idlType": {
|
|
703
|
+
"type": "array",
|
|
704
|
+
"items": {
|
|
705
|
+
"$ref": "#/$defs/idlType"
|
|
706
|
+
}
|
|
707
|
+
},
|
|
708
|
+
"arguments": {
|
|
709
|
+
"type": "array",
|
|
710
|
+
"items": {
|
|
711
|
+
"$ref": "#/$defs/argument"
|
|
712
|
+
}
|
|
713
|
+
},
|
|
714
|
+
"extAttrs": {
|
|
715
|
+
"type": "array",
|
|
716
|
+
"items": {
|
|
717
|
+
"$ref": "#/$defs/extendedAttribute"
|
|
718
|
+
}
|
|
719
|
+
},
|
|
720
|
+
"readonly": {
|
|
721
|
+
"type": "boolean"
|
|
722
|
+
},
|
|
723
|
+
"async": {
|
|
724
|
+
"type": "boolean"
|
|
725
|
+
}
|
|
726
|
+
},
|
|
727
|
+
"required": [
|
|
728
|
+
"type",
|
|
729
|
+
"idlType",
|
|
730
|
+
"arguments",
|
|
731
|
+
"extAttrs",
|
|
732
|
+
"readonly",
|
|
733
|
+
"async"
|
|
734
|
+
]
|
|
735
|
+
},
|
|
736
|
+
"asyncIterableMember": {
|
|
737
|
+
"type": "object",
|
|
738
|
+
"properties": {
|
|
739
|
+
"type": {
|
|
740
|
+
"const": "async_iterable"
|
|
741
|
+
},
|
|
742
|
+
"idlType": {
|
|
743
|
+
"type": "array",
|
|
744
|
+
"items": {
|
|
745
|
+
"$ref": "#/$defs/idlType"
|
|
746
|
+
}
|
|
747
|
+
},
|
|
748
|
+
"arguments": {
|
|
749
|
+
"type": "array",
|
|
750
|
+
"items": {
|
|
751
|
+
"$ref": "#/$defs/argument"
|
|
752
|
+
}
|
|
753
|
+
},
|
|
754
|
+
"extAttrs": {
|
|
755
|
+
"type": "array",
|
|
756
|
+
"items": {
|
|
757
|
+
"$ref": "#/$defs/extendedAttribute"
|
|
758
|
+
}
|
|
759
|
+
},
|
|
760
|
+
"readonly": {
|
|
761
|
+
"type": "boolean"
|
|
762
|
+
},
|
|
763
|
+
"async": {
|
|
764
|
+
"type": "boolean"
|
|
765
|
+
}
|
|
766
|
+
},
|
|
767
|
+
"required": [
|
|
768
|
+
"type",
|
|
769
|
+
"idlType",
|
|
770
|
+
"arguments",
|
|
771
|
+
"extAttrs",
|
|
772
|
+
"readonly",
|
|
773
|
+
"async"
|
|
774
|
+
]
|
|
775
|
+
},
|
|
776
|
+
"defaultValue": {
|
|
777
|
+
"oneOf": [
|
|
778
|
+
{
|
|
779
|
+
"type": "null"
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
"type": "object",
|
|
783
|
+
"properties": {
|
|
784
|
+
"type": {
|
|
785
|
+
"const": "string"
|
|
786
|
+
},
|
|
787
|
+
"value": {
|
|
788
|
+
"type": "string"
|
|
789
|
+
}
|
|
790
|
+
},
|
|
791
|
+
"required": [
|
|
792
|
+
"type",
|
|
793
|
+
"value"
|
|
794
|
+
],
|
|
795
|
+
"additionalProperties": false
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
"type": "object",
|
|
799
|
+
"properties": {
|
|
800
|
+
"type": {
|
|
801
|
+
"const": "number"
|
|
802
|
+
},
|
|
803
|
+
"value": {
|
|
804
|
+
"type": [
|
|
805
|
+
"number",
|
|
806
|
+
"string"
|
|
807
|
+
]
|
|
808
|
+
}
|
|
809
|
+
},
|
|
810
|
+
"required": [
|
|
811
|
+
"type",
|
|
812
|
+
"value"
|
|
813
|
+
],
|
|
814
|
+
"additionalProperties": false
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
"type": "object",
|
|
818
|
+
"properties": {
|
|
819
|
+
"type": {
|
|
820
|
+
"const": "boolean"
|
|
821
|
+
},
|
|
822
|
+
"value": {
|
|
823
|
+
"type": "boolean"
|
|
824
|
+
}
|
|
825
|
+
},
|
|
826
|
+
"required": [
|
|
827
|
+
"type",
|
|
828
|
+
"value"
|
|
829
|
+
],
|
|
830
|
+
"additionalProperties": false
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
"type": "object",
|
|
834
|
+
"properties": {
|
|
835
|
+
"type": {
|
|
836
|
+
"const": "dictionary"
|
|
837
|
+
},
|
|
838
|
+
"value": {
|
|
839
|
+
"type": "object"
|
|
840
|
+
}
|
|
841
|
+
},
|
|
842
|
+
"required": [
|
|
843
|
+
"type"
|
|
844
|
+
],
|
|
845
|
+
"additionalProperties": false
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
"type": "object",
|
|
849
|
+
"properties": {
|
|
850
|
+
"type": {
|
|
851
|
+
"const": "sequence"
|
|
852
|
+
},
|
|
853
|
+
"value": {
|
|
854
|
+
"type": "array"
|
|
855
|
+
}
|
|
856
|
+
},
|
|
857
|
+
"required": [
|
|
858
|
+
"type"
|
|
859
|
+
],
|
|
860
|
+
"additionalProperties": false
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
"type": "object",
|
|
864
|
+
"properties": {
|
|
865
|
+
"type": {
|
|
866
|
+
"const": "null"
|
|
867
|
+
}
|
|
868
|
+
},
|
|
869
|
+
"required": [
|
|
870
|
+
"type"
|
|
871
|
+
],
|
|
872
|
+
"additionalProperties": false
|
|
873
|
+
}
|
|
874
|
+
]
|
|
147
875
|
}
|
|
148
876
|
}
|
|
149
877
|
}
|
|
@@ -9,12 +9,14 @@
|
|
|
9
9
|
"spec": { "$ref": "../common.json#/$defs/specInExtract" },
|
|
10
10
|
|
|
11
11
|
"idlparsed": {
|
|
12
|
+
"description": "Structured information about Web IDL definitions in the spec including, for each definition, an abstract syntax tree (AST) created by parsing the raw definition.",
|
|
12
13
|
"type": "object",
|
|
13
14
|
"additionalProperties": false,
|
|
14
15
|
"required": ["jsNames", "idlNames", "idlExtendedNames", "globals",
|
|
15
16
|
"exposed", "dependencies", "externalDependencies", "hasObsoleteIdl"],
|
|
16
17
|
"properties": {
|
|
17
18
|
"jsNames": {
|
|
19
|
+
"description": "List of names available to global interfaces, either as objects that can be constructed or as objects that can be returned from functions",
|
|
18
20
|
"type": "object",
|
|
19
21
|
"additionalProperties": false,
|
|
20
22
|
"required": ["constructors", "functions"],
|
|
@@ -24,45 +26,41 @@
|
|
|
24
26
|
}
|
|
25
27
|
},
|
|
26
28
|
"idlNames": {
|
|
29
|
+
"description": "List of base IDL definitions, indexed by name",
|
|
27
30
|
"type": "object",
|
|
28
31
|
"propertyNames": { "$ref": "../common.json#/$defs/interface" },
|
|
29
|
-
"additionalProperties": {
|
|
30
|
-
"type": "object",
|
|
31
|
-
"additionalProperties": true,
|
|
32
|
-
"required": ["fragment", "type"],
|
|
33
|
-
"properties": {
|
|
34
|
-
"fragment": { "type": "string" },
|
|
35
|
-
"type": { "$ref": "../common.json#/$defs/interfacetype" },
|
|
36
|
-
"href": { "$ref": "../common.json#/$defs/url" }
|
|
37
|
-
}
|
|
38
|
-
}
|
|
32
|
+
"additionalProperties": { "$ref": "../common.json#/$defs/idlFragment" }
|
|
39
33
|
},
|
|
40
34
|
"idlExtendedNames": {
|
|
35
|
+
"description": "List of partial IDL definitions, indexed by name",
|
|
41
36
|
"type": "object",
|
|
42
37
|
"propertyNames": { "$ref": "../common.json#/$defs/interface" },
|
|
43
38
|
"additionalProperties": {
|
|
44
39
|
"type": "array",
|
|
45
|
-
"items": {
|
|
46
|
-
"type": "object",
|
|
47
|
-
"additionalProperties": true,
|
|
48
|
-
"required": ["fragment", "type"],
|
|
49
|
-
"properties": {
|
|
50
|
-
"fragment": { "type": "string" },
|
|
51
|
-
"type": { "$ref": "../common.json#/$defs/extensiontype" },
|
|
52
|
-
"href": { "$ref": "../common.json#/$defs/url" }
|
|
53
|
-
}
|
|
54
|
-
}
|
|
40
|
+
"items": { "$ref": "../common.json#/$defs/idlFragment" }
|
|
55
41
|
}
|
|
56
42
|
},
|
|
57
|
-
"globals": {
|
|
58
|
-
|
|
43
|
+
"globals": {
|
|
44
|
+
"description": "List of globals defined by the IDL content indexed by global name, along with the list of underlying interface names",
|
|
45
|
+
"$ref": "../common.json#/$defs/interfacesByGlobal" },
|
|
46
|
+
"exposed": {
|
|
47
|
+
"description": "List of globals on which interfaces are defined indexed by global name, along with the names of the interfaces exposed on it. If present, the specific \"*\" entry lists interfaces exposed on all globals.",
|
|
48
|
+
"$ref": "../common.json#/$defs/interfacesByGlobal"
|
|
49
|
+
},
|
|
59
50
|
"dependencies": {
|
|
51
|
+
"description": "List of dependencies (both internal to the specification and defined in other specifications) for each interface, indexed by interface name",
|
|
60
52
|
"type": "object",
|
|
61
53
|
"propertyNames": { "$ref": "../common.json#/$defs/interface" },
|
|
62
54
|
"additionalProperties": { "$ref": "../common.json#/$defs/interfaces" }
|
|
63
55
|
},
|
|
64
|
-
"externalDependencies": {
|
|
65
|
-
|
|
56
|
+
"externalDependencies": {
|
|
57
|
+
"description": "List of IDL names used by the specification but defined in other specifications",
|
|
58
|
+
"$ref": "../common.json#/$defs/interfaces"
|
|
59
|
+
},
|
|
60
|
+
"hasObsoleteIdl": {
|
|
61
|
+
"description": "Whether the definitions contain obsolete Web IDL constructs",
|
|
62
|
+
"type": "boolean"
|
|
63
|
+
}
|
|
66
64
|
}
|
|
67
65
|
}
|
|
68
66
|
}
|
|
@@ -165,6 +165,38 @@ function extractReferencesWithoutRules() {
|
|
|
165
165
|
const anchors = [...document.querySelectorAll("h1, h2, h3")];
|
|
166
166
|
console.log('[reffy]', 'extract refs without rules');
|
|
167
167
|
|
|
168
|
+
// Custom logic for Source map format specification (ECMA-426)
|
|
169
|
+
// Looks for <emu-clause id="sec-references"> and its child clauses
|
|
170
|
+
for (const refType of ['normative', 'informative']) {
|
|
171
|
+
const clause = document.querySelector([
|
|
172
|
+
`emu-clause#sec-references-${refType}`,
|
|
173
|
+
`emu-clause#sec-${refType}-references`
|
|
174
|
+
].join(','));
|
|
175
|
+
if (clause) {
|
|
176
|
+
const refs = [];
|
|
177
|
+
clause.querySelectorAll('p').forEach(p => {
|
|
178
|
+
const ref = {};
|
|
179
|
+
const match = p.innerText.match(/(.+?), /m);
|
|
180
|
+
if (match) {
|
|
181
|
+
ref.name = match[1].trim();
|
|
182
|
+
}
|
|
183
|
+
if (!match) {
|
|
184
|
+
ref.name = p.querySelector('i')?.innerText.trim();
|
|
185
|
+
}
|
|
186
|
+
if (!ref.name) {
|
|
187
|
+
return;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
const anchor = p.querySelector('a[href]');
|
|
191
|
+
if (anchor) {
|
|
192
|
+
ref.url = anchor.getAttribute('href');
|
|
193
|
+
}
|
|
194
|
+
refs.push(ref);
|
|
195
|
+
});
|
|
196
|
+
references[refType] = refs;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
168
200
|
// Look for a "Normative references" heading
|
|
169
201
|
const normative = anchors.findLast(
|
|
170
202
|
textMatch(/^\s*((\w|\d+)(\.\d+)*\.?)?\s*normative\s+references\s*$/i));
|