@percy/core 1.32.5 → 1.32.6-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/snapshot.js +7 -1
  2. package/package.json +10 -10
package/dist/snapshot.js CHANGED
@@ -449,13 +449,19 @@ export function createSnapshotsQueue(percy) {
449
449
  });
450
450
  let url = data.attributes['web-url'];
451
451
  let number = data.attributes['build-number'];
452
+ // Server-decided build source, exposed via /percy/healthcheck so SDKs can key on it.
453
+ // Only assigned when the API returned one — a `source: undefined` key would drop out
454
+ // of JSON responses, breaking shape equality for clients.
455
+ let source = data.attributes.source;
452
456
  let usageWarning = data.attributes['usage-warning'];
453
457
  percy.client.buildType = (_data$attributes = data.attributes) === null || _data$attributes === void 0 ? void 0 : _data$attributes.type;
454
458
  Object.assign(build, {
455
459
  id: data.id,
456
460
  url,
457
461
  number
458
- });
462
+ }, source ? {
463
+ source
464
+ } : {});
459
465
 
460
466
  // Display usage warning if present
461
467
  if (usageWarning) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/core",
3
- "version": "1.32.5",
3
+ "version": "1.32.6-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"
@@ -46,12 +46,12 @@
46
46
  "dependencies": {
47
47
  "@grpc/grpc-js": "^1.14.3",
48
48
  "@grpc/proto-loader": "^0.8.0",
49
- "@percy/client": "1.32.5",
50
- "@percy/config": "1.32.5",
51
- "@percy/dom": "1.32.5",
52
- "@percy/logger": "1.32.5",
53
- "@percy/monitoring": "1.32.5",
54
- "@percy/webdriver-utils": "1.32.5",
49
+ "@percy/client": "1.32.6-beta.0",
50
+ "@percy/config": "1.32.6-beta.0",
51
+ "@percy/dom": "1.32.6-beta.0",
52
+ "@percy/logger": "1.32.6-beta.0",
53
+ "@percy/monitoring": "1.32.6-beta.0",
54
+ "@percy/webdriver-utils": "1.32.6-beta.0",
55
55
  "adm-zip": "^0.6.0",
56
56
  "busboy": "^1.6.0",
57
57
  "content-disposition": "^0.5.4",
@@ -67,7 +67,7 @@
67
67
  "yaml": "^2.4.1"
68
68
  },
69
69
  "optionalDependencies": {
70
- "@percy/cli-doctor": "1.32.5"
70
+ "@percy/cli-doctor": "1.32.6-beta.0"
71
71
  },
72
- "gitHead": "1c83908c5913e3fab1cdd7207db49a2e0c27a3e9"
72
+ "gitHead": "735e1589b696e9b74f52d9cb0944c6bc0af889b2"
73
73
  }