@percy/client 1.32.9 → 1.32.10-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 +17 -0
- package/package.json +6 -6
package/dist/client.js
CHANGED
|
@@ -930,6 +930,23 @@ export class PercyClient {
|
|
|
930
930
|
...meta
|
|
931
931
|
});
|
|
932
932
|
}
|
|
933
|
+
async sendSnapshotLog(buildId, snapshotId, content, meta = {}) {
|
|
934
|
+
validateId('build', buildId);
|
|
935
|
+
validateId('snapshot', snapshotId);
|
|
936
|
+
this.log.debug('Sending Snapshot Log', meta);
|
|
937
|
+
return this.post('logs', {
|
|
938
|
+
data: {
|
|
939
|
+
content,
|
|
940
|
+
build_id: buildId,
|
|
941
|
+
reference_id: snapshotId,
|
|
942
|
+
service_name: 'snapshot',
|
|
943
|
+
base64encoded: true
|
|
944
|
+
}
|
|
945
|
+
}, {
|
|
946
|
+
identifier: 'snapshot.send_log',
|
|
947
|
+
...meta
|
|
948
|
+
});
|
|
949
|
+
}
|
|
933
950
|
async getErrorAnalysis(errors, meta = {}) {
|
|
934
951
|
const errorLogs = formatLogErrors(errors);
|
|
935
952
|
this.log.debug('Sending error logs for analysis', meta);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@percy/client",
|
|
3
|
-
"version": "1.32.
|
|
3
|
+
"version": "1.32.10-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"
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"test:coverage": "yarn test --coverage"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@percy/config": "1.32.
|
|
37
|
-
"@percy/env": "1.32.
|
|
38
|
-
"@percy/logger": "1.32.
|
|
36
|
+
"@percy/config": "1.32.10-beta.1",
|
|
37
|
+
"@percy/env": "1.32.10-beta.1",
|
|
38
|
+
"@percy/logger": "1.32.10-beta.1",
|
|
39
39
|
"pac-proxy-agent": "^7.0.2",
|
|
40
40
|
"pako": "^2.1.0"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "b90cd9fe29b14fdb7a1e383609654b227adacf17"
|
|
43
43
|
}
|