@percy/core 1.23.0 → 1.24.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 +6 -0
- package/dist/page.js +4 -2
- package/package.json +6 -6
package/dist/config.js
CHANGED
|
@@ -39,6 +39,9 @@ export const configSchema = {
|
|
|
39
39
|
type: 'boolean',
|
|
40
40
|
default: false
|
|
41
41
|
},
|
|
42
|
+
domTransformation: {
|
|
43
|
+
type: 'string'
|
|
44
|
+
},
|
|
42
45
|
scope: {
|
|
43
46
|
type: 'string'
|
|
44
47
|
}
|
|
@@ -197,6 +200,9 @@ export const snapshotSchema = {
|
|
|
197
200
|
disableShadowDOM: {
|
|
198
201
|
$ref: '/config/snapshot#/properties/disableShadowDOM'
|
|
199
202
|
},
|
|
203
|
+
domTransformation: {
|
|
204
|
+
$ref: '/config/snapshot#/properties/domTransformation'
|
|
205
|
+
},
|
|
200
206
|
discovery: {
|
|
201
207
|
type: 'object',
|
|
202
208
|
additionalProperties: false,
|
package/dist/page.js
CHANGED
|
@@ -144,7 +144,8 @@ export class Page {
|
|
|
144
144
|
name,
|
|
145
145
|
width,
|
|
146
146
|
enableJavaScript,
|
|
147
|
-
disableShadowDOM
|
|
147
|
+
disableShadowDOM,
|
|
148
|
+
domTransformation
|
|
148
149
|
} = snapshot;
|
|
149
150
|
this.log.debug(`Taking snapshot: ${name}${width ? ` @${width}px` : ''}`, this.meta);
|
|
150
151
|
|
|
@@ -188,7 +189,8 @@ export class Page {
|
|
|
188
189
|
url: document.URL
|
|
189
190
|
}), {
|
|
190
191
|
enableJavaScript,
|
|
191
|
-
disableShadowDOM
|
|
192
|
+
disableShadowDOM,
|
|
193
|
+
domTransformation
|
|
192
194
|
});
|
|
193
195
|
return {
|
|
194
196
|
...snapshot,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@percy/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.24.1",
|
|
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.
|
|
43
|
-
"@percy/config": "1.
|
|
44
|
-
"@percy/dom": "1.
|
|
45
|
-
"@percy/logger": "1.
|
|
42
|
+
"@percy/client": "1.24.1",
|
|
43
|
+
"@percy/config": "1.24.1",
|
|
44
|
+
"@percy/dom": "1.24.1",
|
|
45
|
+
"@percy/logger": "1.24.1",
|
|
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": "
|
|
56
|
+
"gitHead": "289eb8467fd317b6c17decc5d4f1b6586aa7b75e"
|
|
57
57
|
}
|