@percy/core 1.19.0-alpha.0 → 1.19.1-alpha.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.
Files changed (2) hide show
  1. package/dist/network.js +2 -2
  2. package/package.json +6 -6
package/dist/network.js CHANGED
@@ -2,7 +2,7 @@ import mime from 'mime-types';
2
2
  import logger from '@percy/logger';
3
3
  import { request as makeRequest } from '@percy/client/utils';
4
4
  import { normalizeURL, hostnameMatches, createResource, waitFor } from './utils.js';
5
- const MAX_RESOURCE_SIZE = 15 * 1024 ** 2; // 15MB
5
+ const MAX_RESOURCE_SIZE = 25 * 1024 ** 2; // 25MB
6
6
  const ALLOWED_STATUSES = [200, 201, 301, 302, 304, 307, 308];
7
7
  const ALLOWED_RESOURCES = ['Document', 'Stylesheet', 'Image', 'Media', 'Font', 'Other'];
8
8
 
@@ -370,7 +370,7 @@ async function saveResponseResource(network, request) {
370
370
  } else if (!body.length) {
371
371
  return log.debug('- Skipping empty response', meta);
372
372
  } else if (body.length > MAX_RESOURCE_SIZE) {
373
- return log.debug('- Skipping resource larger than 15MB', meta);
373
+ return log.debug('- Skipping resource larger than 25MB', meta);
374
374
  } else if (!ALLOWED_STATUSES.includes(response.status)) {
375
375
  return log.debug(`- Skipping disallowed status [${response.status}]`, meta);
376
376
  } else if (!enableJavaScript && !ALLOWED_RESOURCES.includes(request.type)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/core",
3
- "version": "1.19.0-alpha.0",
3
+ "version": "1.19.1-alpha.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -39,10 +39,10 @@
39
39
  "test:types": "tsd"
40
40
  },
41
41
  "dependencies": {
42
- "@percy/client": "1.19.0-alpha.0",
43
- "@percy/config": "1.19.0-alpha.0",
44
- "@percy/dom": "1.19.0-alpha.0",
45
- "@percy/logger": "1.19.0-alpha.0",
42
+ "@percy/client": "1.19.1-alpha.0",
43
+ "@percy/config": "1.19.1-alpha.0",
44
+ "@percy/dom": "1.19.1-alpha.0",
45
+ "@percy/logger": "1.19.1-alpha.0",
46
46
  "content-disposition": "^0.5.4",
47
47
  "cross-spawn": "^7.0.3",
48
48
  "extract-zip": "^2.0.1",
@@ -53,5 +53,5 @@
53
53
  "rimraf": "^3.0.2",
54
54
  "ws": "^8.0.0"
55
55
  },
56
- "gitHead": "84a27b8600c45ca67f8dd9b3403a0a8913e7c6f3"
56
+ "gitHead": "1a95e827ef2fb7e6f2c7a7a5a90d265185f31fc2"
57
57
  }