@percy/core 1.28.2-beta.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/config.js +12 -0
- package/dist/discovery.js +11 -0
- package/dist/install.js +6 -6
- package/package.json +9 -8
package/dist/config.js
CHANGED
|
@@ -74,6 +74,9 @@ export const configSchema = {
|
|
|
74
74
|
testCase: {
|
|
75
75
|
type: 'string'
|
|
76
76
|
},
|
|
77
|
+
thTestCaseExecutionId: {
|
|
78
|
+
type: 'string'
|
|
79
|
+
},
|
|
77
80
|
fullPage: {
|
|
78
81
|
type: 'boolean',
|
|
79
82
|
onlyAutomate: true
|
|
@@ -325,6 +328,9 @@ export const snapshotSchema = {
|
|
|
325
328
|
testCase: {
|
|
326
329
|
$ref: '/config/snapshot#/properties/testCase'
|
|
327
330
|
},
|
|
331
|
+
thTestCaseExecutionId: {
|
|
332
|
+
$ref: '/config/snapshot#/properties/thTestCaseExecutionId'
|
|
333
|
+
},
|
|
328
334
|
reshuffleInvalidTags: {
|
|
329
335
|
$ref: '/config/snapshot#/properties/reshuffleInvalidTags'
|
|
330
336
|
},
|
|
@@ -732,6 +738,12 @@ export const comparisonSchema = {
|
|
|
732
738
|
sync: {
|
|
733
739
|
type: 'boolean'
|
|
734
740
|
},
|
|
741
|
+
testCase: {
|
|
742
|
+
type: 'string'
|
|
743
|
+
},
|
|
744
|
+
thTestCaseExecutionId: {
|
|
745
|
+
type: 'string'
|
|
746
|
+
},
|
|
735
747
|
metadata: {
|
|
736
748
|
type: 'object',
|
|
737
749
|
additionalProperties: false,
|
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
|
|
165
|
+
// default chromium revisions corresponds to v123.0.6312.58
|
|
166
166
|
chromium.revisions = {
|
|
167
|
-
linux: '
|
|
168
|
-
win64: '
|
|
169
|
-
win32: '
|
|
170
|
-
darwin: '
|
|
171
|
-
darwinArm: '
|
|
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.
|
|
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": "
|
|
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.
|
|
47
|
-
"@percy/config": "1.28.
|
|
48
|
-
"@percy/dom": "1.28.
|
|
49
|
-
"@percy/logger": "1.28.
|
|
50
|
-
"@percy/webdriver-utils": "1.28.
|
|
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": "
|
|
62
|
+
"gitHead": "af2067cad8ac8f67dacf2cf7e28ab257e0bac12f"
|
|
62
63
|
}
|