@percy/client 1.27.5-alpha.0 → 1.27.5-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.
Files changed (2) hide show
  1. package/dist/client.js +10 -1
  2. package/package.json +5 -5
package/dist/client.js CHANGED
@@ -300,6 +300,7 @@ export class PercyClient {
300
300
  scope,
301
301
  minHeight,
302
302
  enableJavaScript,
303
+ enableLayout,
303
304
  clientInfo,
304
305
  environmentInfo,
305
306
  resources = []
@@ -323,7 +324,8 @@ export class PercyClient {
323
324
  widths: widths || null,
324
325
  scope: scope || null,
325
326
  'minimum-height': minHeight || null,
326
- 'enable-javascript': enableJavaScript || null
327
+ 'enable-javascript': enableJavaScript || null,
328
+ 'enable-layout': enableLayout || false
327
329
  },
328
330
  relationships: {
329
331
  resources: {
@@ -515,6 +517,13 @@ export class PercyClient {
515
517
  await this.finalizeComparison(comparison.data.id);
516
518
  return comparison;
517
519
  }
520
+ async sendBuildEvents(buildId, body) {
521
+ validateId('build', buildId);
522
+ this.log.debug('Sending Build Events');
523
+ return this.post(`builds/${buildId}/send-events`, {
524
+ data: body
525
+ });
526
+ }
518
527
 
519
528
  // decides project type
520
529
  tokenType() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/client",
3
- "version": "1.27.5-alpha.0",
3
+ "version": "1.27.5-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": "alpha"
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.5-alpha.0",
36
- "@percy/logger": "1.27.5-alpha.0"
35
+ "@percy/env": "1.27.5-beta.1",
36
+ "@percy/logger": "1.27.5-beta.1"
37
37
  },
38
- "gitHead": "8ecc32db25f708a01192b8454d0fdf9c051f48a0"
38
+ "gitHead": "f5924b050d0c04f8ac63d610af291b32f51565f8"
39
39
  }