@percy/core 1.27.6 → 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.
Files changed (2) hide show
  1. package/dist/install.js +1 -11
  2. package/package.json +8 -8
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/core",
3
- "version": "1.27.6",
3
+ "version": "1.27.7-beta.0",
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": "latest"
12
+ "tag": "beta"
13
13
  },
14
14
  "engines": {
15
15
  "node": ">=14"
@@ -43,11 +43,11 @@
43
43
  "test:types": "tsd"
44
44
  },
45
45
  "dependencies": {
46
- "@percy/client": "1.27.6",
47
- "@percy/config": "1.27.6",
48
- "@percy/dom": "1.27.6",
49
- "@percy/logger": "1.27.6",
50
- "@percy/webdriver-utils": "1.27.6",
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": "4f0f287ba8beec5a7bad9adc3dd91eef98fa0a75"
61
+ "gitHead": "80549bd9b92b9868c4576ee100f48bcf58320e84"
62
62
  }