@percy/core 1.28.3-alpha.1 → 1.28.3-beta.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 +0 -11
- package/package.json +8 -9
package/dist/discovery.js
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
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;
|
|
9
4
|
|
|
10
5
|
// Logs verbose debug logs detailing various snapshot options.
|
|
11
6
|
function debugSnapshotOptions(snapshot) {
|
|
@@ -148,12 +143,6 @@ function processSnapshotResources({
|
|
|
148
143
|
var _log$meta$snapshot, _log$meta$snapshot2;
|
|
149
144
|
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;
|
|
150
145
|
})));
|
|
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
|
-
}
|
|
157
146
|
return {
|
|
158
147
|
...snapshot,
|
|
159
148
|
resources
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@percy/core",
|
|
3
|
-
"version": "1.28.3-
|
|
3
|
+
"version": "1.28.3-beta.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": "
|
|
12
|
+
"tag": "beta"
|
|
13
13
|
},
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": ">=14"
|
|
@@ -43,21 +43,20 @@
|
|
|
43
43
|
"test:types": "tsd"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
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-
|
|
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",
|
|
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",
|
|
58
57
|
"path-to-regexp": "^6.2.0",
|
|
59
58
|
"rimraf": "^3.0.2",
|
|
60
59
|
"ws": "^8.0.0"
|
|
61
60
|
},
|
|
62
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "3a838eedd0f07f57c6c61cd0cba1c7e20cc95af3"
|
|
63
62
|
}
|