phantomas 2.8.0 → 2.9.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.
@@ -97,6 +97,7 @@ function addContentType(headerValue, entry) {
97
97
  case "image/gif":
98
98
  case "image/svg+xml":
99
99
  case "image/webp":
100
+ case "image/avif":
100
101
  entry.type = "image";
101
102
  entry.isImage = true;
102
103
 
@@ -58,7 +58,7 @@
58
58
  var context = phantomas.getDOMPath(this);
59
59
 
60
60
  // querying by BODY and body is the same (issue #419)
61
- tagName = tagName.toLowerCase();
61
+ if (tagName) tagName = tagName.toLowerCase();
62
62
 
63
63
  phantomas.incrMetric("DOMqueriesByTagName");
64
64
  phantomas.addOffender("DOMqueriesByTagName", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phantomas",
3
- "version": "2.8.0",
3
+ "version": "2.9.0",
4
4
  "author": "macbre <maciej.brencz@gmail.com> (http://macbre.net)",
5
5
  "description": "Headless Chromium-based web performance metrics collector and monitoring tool",
6
6
  "main": "./lib/index.js",
@@ -33,7 +33,7 @@
33
33
  "decamelize": "^5.0.0",
34
34
  "fast-stats": "0.0.6",
35
35
  "js-yaml": "^4.0.0",
36
- "puppeteer": "^20.8.0"
36
+ "puppeteer": "^20.9.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@jest/globals": "^28.0.0",