@percy/core 1.28.3-beta.1 → 1.28.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/discovery.js CHANGED
@@ -1,6 +1,8 @@
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';
4
6
 
5
7
  // Logs verbose debug logs detailing various snapshot options.
6
8
  function debugSnapshotOptions(snapshot) {
@@ -143,6 +145,12 @@ function processSnapshotResources({
143
145
  var _log$meta$snapshot, _log$meta$snapshot2;
144
146
  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
147
  })));
148
+ if (process.env.PERCY_GZIP) {
149
+ for (let index = 0; index < resources.length; index++) {
150
+ resources[index].content = Pako.gzip(resources[index].content);
151
+ resources[index].sha = sha256hash(resources[index].content);
152
+ }
153
+ }
146
154
  return {
147
155
  ...snapshot,
148
156
  resources
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/core",
3
- "version": "1.28.3-beta.1",
3
+ "version": "1.28.3",
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": "beta"
12
+ "tag": "latest"
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.3-beta.1",
47
- "@percy/config": "1.28.3-beta.1",
48
- "@percy/dom": "1.28.3-beta.1",
49
- "@percy/logger": "1.28.3-beta.1",
50
- "@percy/webdriver-utils": "1.28.3-beta.1",
46
+ "@percy/client": "1.28.3",
47
+ "@percy/config": "1.28.3",
48
+ "@percy/dom": "1.28.3",
49
+ "@percy/logger": "1.28.3",
50
+ "@percy/webdriver-utils": "1.28.3",
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": "3a838eedd0f07f57c6c61cd0cba1c7e20cc95af3"
62
+ "gitHead": "5d41045921c7ac06329c4b72caaf291d34e3f699"
62
63
  }