@percy/core 1.20.2 → 1.21.0
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 +1 -1
- package/package.json +6 -6
package/dist/discovery.js
CHANGED
|
@@ -82,7 +82,7 @@ function parseDomResources({
|
|
|
82
82
|
mimetype
|
|
83
83
|
}) => {
|
|
84
84
|
// serialized resource contents are base64 encoded
|
|
85
|
-
content = Buffer.from(content, 'base64');
|
|
85
|
+
content = Buffer.from(content, mimetype.includes('text') ? 'utf8' : 'base64');
|
|
86
86
|
// specify the resource as provided to prevent overwriting during asset discovery
|
|
87
87
|
let resource = createResource(url, content, mimetype, {
|
|
88
88
|
provided: true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@percy/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.21.0",
|
|
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.21.0",
|
|
43
|
+
"@percy/config": "1.21.0",
|
|
44
|
+
"@percy/dom": "1.21.0",
|
|
45
|
+
"@percy/logger": "1.21.0",
|
|
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": "44c63a3214f1fbfb0b1adcb6fcfe284a9f54d0cb"
|
|
57
57
|
}
|