@percy/core 1.27.6-beta.1 → 1.27.7-beta.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/config.js +4 -0
- package/dist/install.js +1 -11
- package/dist/utils.js +1 -0
- package/package.json +7 -7
package/dist/config.js
CHANGED
package/dist/install.js
CHANGED
|
@@ -4,17 +4,7 @@ import path from 'path';
|
|
|
4
4
|
import https from 'https';
|
|
5
5
|
import logger from '@percy/logger';
|
|
6
6
|
import cp from 'child_process';
|
|
7
|
-
import { ProxyHttpsAgent } from '@percy/client/utils';
|
|
8
|
-
|
|
9
|
-
// Formats a raw byte integer as a string
|
|
10
|
-
function formatBytes(int) {
|
|
11
|
-
let units = ['kB', 'MB', 'GB'];
|
|
12
|
-
let base = 1024;
|
|
13
|
-
let u = -1;
|
|
14
|
-
if (Math.abs(int) < base) return `${int}B`;
|
|
15
|
-
while (Math.abs(int) >= base && u++ < 2) int /= base;
|
|
16
|
-
return `${int.toFixed(1)}${units[u]}`;
|
|
17
|
-
}
|
|
7
|
+
import { ProxyHttpsAgent, formatBytes } from '@percy/client/utils';
|
|
18
8
|
|
|
19
9
|
// Formats milleseconds as "MM:SS"
|
|
20
10
|
function formatTime(ms) {
|
package/dist/utils.js
CHANGED
|
@@ -37,6 +37,7 @@ export function percyAutomateRequestHandler(req, percy) {
|
|
|
37
37
|
camelCasedOptions[camelcase(key)] = value;
|
|
38
38
|
});
|
|
39
39
|
req.body.options = merge([{
|
|
40
|
+
fullPage: percy.config.snapshot.fullPage,
|
|
40
41
|
percyCSS: percy.config.snapshot.percyCSS,
|
|
41
42
|
freezeAnimatedImage: percy.config.snapshot.freezeAnimatedImage || percy.config.snapshot.freezeAnimation,
|
|
42
43
|
freezeImageBySelectors: (_percy$config$snapsho = percy.config.snapshot.freezeAnimatedImageOptions) === null || _percy$config$snapsho === void 0 ? void 0 : _percy$config$snapsho.freezeImageBySelectors,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@percy/core",
|
|
3
|
-
"version": "1.27.
|
|
3
|
+
"version": "1.27.7-beta.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"test:types": "tsd"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@percy/client": "1.27.
|
|
47
|
-
"@percy/config": "1.27.
|
|
48
|
-
"@percy/dom": "1.27.
|
|
49
|
-
"@percy/logger": "1.27.
|
|
50
|
-
"@percy/webdriver-utils": "1.27.
|
|
46
|
+
"@percy/client": "1.27.7-beta.0",
|
|
47
|
+
"@percy/config": "1.27.7-beta.0",
|
|
48
|
+
"@percy/dom": "1.27.7-beta.0",
|
|
49
|
+
"@percy/logger": "1.27.7-beta.0",
|
|
50
|
+
"@percy/webdriver-utils": "1.27.7-beta.0",
|
|
51
51
|
"content-disposition": "^0.5.4",
|
|
52
52
|
"cross-spawn": "^7.0.3",
|
|
53
53
|
"extract-zip": "^2.0.1",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"rimraf": "^3.0.2",
|
|
59
59
|
"ws": "^8.0.0"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "80549bd9b92b9868c4576ee100f48bcf58320e84"
|
|
62
62
|
}
|