@percy/client
Advanced tools
Comparing version 1.28.2-beta.0 to 1.28.2-beta.1
@@ -215,2 +215,16 @@ import fs from 'fs'; | ||
// Returns device details enabled on project associated with given token | ||
async getDeviceDetails(buildId) { | ||
try { | ||
let url = 'discovery/device-details'; | ||
if (buildId) url += `?build_id=${buildId}`; | ||
const { | ||
data | ||
} = await this.get(url); | ||
return data; | ||
} catch (e) { | ||
return []; | ||
} | ||
} | ||
// Retrieves project builds optionally filtered. Requires a read access token. | ||
@@ -217,0 +231,0 @@ async getBuilds(project, filters = {}) { |
{ | ||
"name": "@percy/client", | ||
"version": "1.28.2-beta.0", | ||
"version": "1.28.2-beta.1", | ||
"license": "MIT", | ||
@@ -35,6 +35,6 @@ "repository": { | ||
"dependencies": { | ||
"@percy/env": "1.28.2-beta.0", | ||
"@percy/logger": "1.28.2-beta.0" | ||
"@percy/env": "1.28.2-beta.1", | ||
"@percy/logger": "1.28.2-beta.1" | ||
}, | ||
"gitHead": "0519aa061bd36acd0852b961e24c05b9ad67274f" | ||
"gitHead": "c4d0637366dbc28eeda234f93d44424d9c565f49" | ||
} |
@@ -142,2 +142,8 @@ import EventEmitter from 'events'; | ||
diff_ratio: 0 | ||
}], | ||
'/discovery/device-details?build_id=123': () => [201, { | ||
data: [] | ||
}], | ||
'/discovery/device-details': () => [201, { | ||
data: [] | ||
}] | ||
@@ -144,0 +150,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47988
1125
+ Added@percy/env@1.28.2-beta.1(transitive)
+ Added@percy/logger@1.28.2-beta.1(transitive)
- Removed@percy/env@1.28.2-beta.0(transitive)
- Removed@percy/logger@1.28.2-beta.0(transitive)
Updated@percy/env@1.28.2-beta.1
Updated@percy/logger@1.28.2-beta.1