@percy/client 1.27.0-alpha.0 → 1.27.0-beta.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/client.js +3 -1
- package/dist/proxy.js +5 -1
- package/package.json +5 -5
package/dist/client.js
CHANGED
|
@@ -365,7 +365,8 @@ export class PercyClient {
|
|
|
365
365
|
tiles = [],
|
|
366
366
|
externalDebugUrl,
|
|
367
367
|
ignoredElementsData,
|
|
368
|
-
domInfoSha
|
|
368
|
+
domInfoSha,
|
|
369
|
+
consideredElementsData
|
|
369
370
|
} = {}) {
|
|
370
371
|
validateId('snapshot', snapshotId);
|
|
371
372
|
// Remove post percy api deploy
|
|
@@ -385,6 +386,7 @@ export class PercyClient {
|
|
|
385
386
|
attributes: {
|
|
386
387
|
'external-debug-url': externalDebugUrl || null,
|
|
387
388
|
'ignore-elements-data': ignoredElementsData || null,
|
|
389
|
+
'consider-elements-data': consideredElementsData || null,
|
|
388
390
|
'dom-info-sha': domInfoSha || null
|
|
389
391
|
},
|
|
390
392
|
relationships: {
|
package/dist/proxy.js
CHANGED
|
@@ -3,6 +3,7 @@ import tls from 'tls';
|
|
|
3
3
|
import http from 'http';
|
|
4
4
|
import https from 'https';
|
|
5
5
|
import logger from '@percy/logger';
|
|
6
|
+
import { stripQuotesAndSpaces } from '@percy/env/utils';
|
|
6
7
|
const CRLF = '\r\n';
|
|
7
8
|
const STATUS_REG = /^HTTP\/1.[01] (\d*)/;
|
|
8
9
|
|
|
@@ -62,7 +63,10 @@ export function href(options) {
|
|
|
62
63
|
// Returns the proxy URL for a set of request options
|
|
63
64
|
export function getProxy(options) {
|
|
64
65
|
let proxyUrl = options.protocol === 'https:' && (process.env.https_proxy || process.env.HTTPS_PROXY) || process.env.http_proxy || process.env.HTTP_PROXY;
|
|
65
|
-
let shouldProxy = !!proxyUrl && !hostnameMatches(process.env.no_proxy || process.env.NO_PROXY, href(options));
|
|
66
|
+
let shouldProxy = !!proxyUrl && !hostnameMatches(stripQuotesAndSpaces(process.env.no_proxy || process.env.NO_PROXY), href(options));
|
|
67
|
+
if (proxyUrl && typeof proxyUrl === 'string') {
|
|
68
|
+
proxyUrl = stripQuotesAndSpaces(proxyUrl);
|
|
69
|
+
}
|
|
66
70
|
if (shouldProxy) {
|
|
67
71
|
proxyUrl = new URL(proxyUrl);
|
|
68
72
|
let isHttps = proxyUrl.protocol === 'https:';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@percy/client",
|
|
3
|
-
"version": "1.27.0-
|
|
3
|
+
"version": "1.27.0-beta.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": "beta"
|
|
13
13
|
},
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": ">=14"
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"test:coverage": "yarn test --coverage"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@percy/env": "1.27.0-
|
|
36
|
-
"@percy/logger": "1.27.0-
|
|
35
|
+
"@percy/env": "1.27.0-beta.1",
|
|
36
|
+
"@percy/logger": "1.27.0-beta.1"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "40cdf9c38613ccaf5e3707cd2cd2d2778ffbd5dd"
|
|
39
39
|
}
|