@azuro-org/images-generator 2.0.1 → 2.0.3

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/index.es.js CHANGED
@@ -167,8 +167,8 @@ function __generator(thisArg, body) {
167
167
  page.on('request', function (req) {
168
168
  var resourceType = req.resourceType();
169
169
  // Block only truly unnecessary resources that don't affect rendering
170
- // Allow images, stylesheets, scripts, and data URLs
171
- if (['font', 'media', 'websocket', 'manifest', 'texttrack'].includes(resourceType)) {
170
+ // Allow images, stylesheets, scripts, fonts, and data URLs
171
+ if (['media', 'websocket', 'manifest', 'texttrack'].includes(resourceType)) {
172
172
  req.abort();
173
173
  }
174
174
  else {
package/lib/index.js CHANGED
@@ -167,8 +167,8 @@ function __generator(thisArg, body) {
167
167
  page.on('request', function (req) {
168
168
  var resourceType = req.resourceType();
169
169
  // Block only truly unnecessary resources that don't affect rendering
170
- // Allow images, stylesheets, scripts, and data URLs
171
- if (['font', 'media', 'websocket', 'manifest', 'texttrack'].includes(resourceType)) {
170
+ // Allow images, stylesheets, scripts, fonts, and data URLs
171
+ if (['media', 'websocket', 'manifest', 'texttrack'].includes(resourceType)) {
172
172
  req.abort();
173
173
  }
174
174
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azuro-org/images-generator",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "license": "ISC",
5
5
  "engines": {
6
6
  "node": ">=16.15.1",