@percy/client 1.32.4 → 1.32.5-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/client.js +9 -0
  2. package/package.json +6 -6
package/dist/client.js CHANGED
@@ -273,6 +273,12 @@ export class PercyClient {
273
273
  source = 'auto_enabled_group';
274
274
  }
275
275
  let tagsArr = tagsList(this.labels);
276
+
277
+ // PER-9724: internal-only priority request. Set by internal product
278
+ // orchestration (e.g. Scanner / LCA) via PERCY_PRIORITY; mirrors the
279
+ // PERCY_ORIGINATED_SOURCE internal signal above. percy-api only honors this
280
+ // for eligible internal build types, so it is a no-op for customer builds.
281
+ let priority = process.env.PERCY_PRIORITY === 'true';
276
282
  return this.post('builds', {
277
283
  data: {
278
284
  type: 'builds',
@@ -300,6 +306,9 @@ export class PercyClient {
300
306
  'testhub-build-run-id': this.env.testhubBuildRunId,
301
307
  ...(visualConfig ? {
302
308
  'visual-config': visualConfig
309
+ } : {}),
310
+ ...(priority ? {
311
+ priority: true
303
312
  } : {})
304
313
  },
305
314
  relationships: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/client",
3
- "version": "1.32.4",
3
+ "version": "1.32.5-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"
@@ -33,11 +33,11 @@
33
33
  "test:coverage": "yarn test --coverage"
34
34
  },
35
35
  "dependencies": {
36
- "@percy/config": "1.32.4",
37
- "@percy/env": "1.32.4",
38
- "@percy/logger": "1.32.4",
36
+ "@percy/config": "1.32.5-beta.0",
37
+ "@percy/env": "1.32.5-beta.0",
38
+ "@percy/logger": "1.32.5-beta.0",
39
39
  "pac-proxy-agent": "^7.0.2",
40
40
  "pako": "^2.1.0"
41
41
  },
42
- "gitHead": "3cc47184f972f991e35b5cc58d3035ecca6cf221"
42
+ "gitHead": "768c93a69060d3abe8dd4db57768c0970d2a9b79"
43
43
  }