reffy 7.0.6 → 7.0.7

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": "7.0.6",
3
+ "version": "7.0.7",
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",
@@ -34,16 +34,16 @@
34
34
  "abortcontroller-polyfill": "1.7.3",
35
35
  "commander": "9.2.0",
36
36
  "fetch-filecache-for-crawling": "4.1.0",
37
- "puppeteer": "13.6.0",
37
+ "puppeteer": "13.7.0",
38
38
  "semver": "^7.3.5",
39
- "web-specs": "2.8.0",
39
+ "web-specs": "2.9.0",
40
40
  "webidl2": "24.2.1"
41
41
  },
42
42
  "devDependencies": {
43
43
  "chai": "4.3.6",
44
44
  "mocha": "9.2.2",
45
45
  "nock": "13.2.4",
46
- "respec": "32.1.3",
46
+ "respec": "32.1.4",
47
47
  "respec-hljs": "2.1.1",
48
48
  "rollup": "2.70.2"
49
49
  },
@@ -184,6 +184,7 @@ const extractValueSpaces = doc => {
184
184
 
185
185
  const parseProductionRules = rules =>
186
186
  rules
187
+ .map(val => val.replace(/\/\*[^]*?\*\//gm, '')) // Drop comments
187
188
  .map(val => val.split(/\n(?=[^\n]*\s?=\s)/m))
188
189
  .reduce((acc, val) => acc.concat(val), [])
189
190
  .map(line => line.split(/\s?=\s/).map(s => s.trim().replace(/\s+/g, ' ')))
@@ -294,9 +294,7 @@ function parseInterfaceOrDictionary(def, idlReport) {
294
294
  } else if (def.members.find(member => member.type === 'constructor')) {
295
295
  addToJSContext(def.extAttrs, jsNames, def.name, "constructors");
296
296
  } else if (def.type === "interface") {
297
- if (!def.extAttrs.some(ea => ea.name === "NoInterfaceObject")) {
298
- addToJSContext(def.extAttrs, jsNames, def.name, "functions");
299
- }
297
+ addToJSContext(def.extAttrs, jsNames, def.name, "functions");
300
298
  }
301
299
  def.members.forEach(parseIdlAstTree(idlReport, def.name));
302
300
  }
@@ -357,8 +355,16 @@ function parseType(idltype, idlReport, contextName) {
357
355
  parseType(idltype.idlType, idlReport, contextName);
358
356
  return;
359
357
  }
360
- var wellKnownTypes = ["undefined", "any", "boolean", "byte", "octet", "short", "unsigned short", "long", "unsigned long", "long long", "unsigned long long", "float", "unrestricted float", "double", "unrestricted double", "DOMString", "ByteString", "USVString", "object",
361
- "RegExp", "Error", "DOMException"];
358
+ var wellKnownTypes = [
359
+ "undefined", "any",
360
+ "boolean",
361
+ "byte", "octet",
362
+ "short", "unsigned short",
363
+ "long", "unsigned long", "long long", "unsigned long long",
364
+ "float", "unrestricted float", "double", "unrestricted double",
365
+ "DOMString", "ByteString", "USVString",
366
+ "object"
367
+ ];
362
368
  if (wellKnownTypes.indexOf(idltype.idlType) === -1) {
363
369
  addDependency(idltype.idlType, idlReport.idlNames, idlReport.externalDependencies);
364
370
  if (contextName) {