@percy/client 1.27.4-beta.1 → 1.27.4-beta.3
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 +10 -1
- package/package.json +4 -4
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.4-beta.
|
|
3
|
+
"version": "1.27.4-beta.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"test:coverage": "yarn test --coverage"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@percy/env": "1.27.4-beta.
|
|
36
|
-
"@percy/logger": "1.27.4-beta.
|
|
35
|
+
"@percy/env": "1.27.4-beta.3",
|
|
36
|
+
"@percy/logger": "1.27.4-beta.3"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "e560f5df1637d30722f8d1d7e6eae9cf99ede2dd"
|
|
39
39
|
}
|