@percy/core 1.28.2 → 1.28.3-alpha.1

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/discovery.js CHANGED
@@ -1,6 +1,11 @@
1
1
  import logger from '@percy/logger';
2
2
  import Queue from './queue.js';
3
3
  import { normalizeURL, hostnameMatches, createResource, createRootResource, createPercyCSSResource, createLogResource, yieldAll, snapshotLogName, withRetries } from './utils.js';
4
+ import { sha256hash } from '@percy/client/utils';
5
+ import Pako from 'pako';
6
+ const {
7
+ PERCY_GZIP = false
8
+ } = process.env;
4
9
 
5
10
  // Logs verbose debug logs detailing various snapshot options.
6
11
  function debugSnapshotOptions(snapshot) {
@@ -143,6 +148,12 @@ function processSnapshotResources({
143
148
  var _log$meta$snapshot, _log$meta$snapshot2;
144
149
  return ((_log$meta$snapshot = log.meta.snapshot) === null || _log$meta$snapshot === void 0 ? void 0 : _log$meta$snapshot.testCase) === snapshot.meta.snapshot.testCase && ((_log$meta$snapshot2 = log.meta.snapshot) === null || _log$meta$snapshot2 === void 0 ? void 0 : _log$meta$snapshot2.name) === snapshot.meta.snapshot.name;
145
150
  })));
151
+ if (PERCY_GZIP) {
152
+ for (let index = 0; index < resources.length; index++) {
153
+ resources[index].content = Pako.gzip(resources[index].content);
154
+ resources[index].sha = sha256hash(resources[index].content);
155
+ }
156
+ }
146
157
  return {
147
158
  ...snapshot,
148
159
  resources
package/dist/install.js CHANGED
@@ -162,13 +162,13 @@ export function chromium({
162
162
  });
163
163
  }
164
164
 
165
- // default chromium revisions corresponds to v96.0.4664.0
165
+ // default chromium revisions corresponds to v123.0.6312.58
166
166
  chromium.revisions = {
167
- linux: '929511',
168
- win64: '929483',
169
- win32: '929483',
170
- darwin: '929475',
171
- darwinArm: '929475'
167
+ linux: '1262506',
168
+ win64: '1262500',
169
+ win32: '1262500',
170
+ darwin: '1262506',
171
+ darwinArm: '1262509'
172
172
  };
173
173
 
174
174
  // export the namespace by default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/core",
3
- "version": "1.28.2",
3
+ "version": "1.28.3-alpha.1",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "publishConfig": {
11
11
  "access": "public",
12
- "tag": "latest"
12
+ "tag": "alpha"
13
13
  },
14
14
  "engines": {
15
15
  "node": ">=14"
@@ -43,20 +43,21 @@
43
43
  "test:types": "tsd"
44
44
  },
45
45
  "dependencies": {
46
- "@percy/client": "1.28.2",
47
- "@percy/config": "1.28.2",
48
- "@percy/dom": "1.28.2",
49
- "@percy/logger": "1.28.2",
50
- "@percy/webdriver-utils": "1.28.2",
46
+ "@percy/client": "1.28.3-alpha.1",
47
+ "@percy/config": "1.28.3-alpha.1",
48
+ "@percy/dom": "1.28.3-alpha.1",
49
+ "@percy/logger": "1.28.3-alpha.1",
50
+ "@percy/webdriver-utils": "1.28.3-alpha.1",
51
51
  "content-disposition": "^0.5.4",
52
52
  "cross-spawn": "^7.0.3",
53
53
  "extract-zip": "^2.0.1",
54
54
  "fast-glob": "^3.2.11",
55
55
  "micromatch": "^4.0.4",
56
56
  "mime-types": "^2.1.34",
57
+ "pako": "^2.1.0",
57
58
  "path-to-regexp": "^6.2.0",
58
59
  "rimraf": "^3.0.2",
59
60
  "ws": "^8.0.0"
60
61
  },
61
- "gitHead": "88105fef569632b816955fcd1320bcc4b218bf67"
62
+ "gitHead": "af2067cad8ac8f67dacf2cf7e28ab257e0bac12f"
62
63
  }