@metrevals/inspect-scout-viewer 0.2.3-beta.1763120092 → 0.2.3-beta.1763385028
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/lib/index.js +12 -10
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -113934,10 +113934,11 @@ const apiScoutServer = (options = {}) => {
|
|
|
113934
113934
|
const requestApi = serverRequestApi(apiBaseUrl || "/api", headerProvider);
|
|
113935
113935
|
return {
|
|
113936
113936
|
getScan: async (scanLocation) => {
|
|
113937
|
-
|
|
113938
|
-
|
|
113939
|
-
|
|
113940
|
-
|
|
113937
|
+
let query2 = `/scan/${encodeURIComponent(scanLocation)}`;
|
|
113938
|
+
if (resultsDir) {
|
|
113939
|
+
query2 += `?results_dir=${encodeURIComponent(resultsDir)}`;
|
|
113940
|
+
}
|
|
113941
|
+
return (await requestApi.fetchType("GET", query2)).parsed;
|
|
113941
113942
|
},
|
|
113942
113943
|
getScans: async () => {
|
|
113943
113944
|
let query2 = "/scans?status_only=true";
|
|
@@ -113947,12 +113948,13 @@ const apiScoutServer = (options = {}) => {
|
|
|
113947
113948
|
return (await requestApi.fetchType("GET", query2)).parsed;
|
|
113948
113949
|
},
|
|
113949
113950
|
getScannerDataframe: async (scanLocation, scanner) => {
|
|
113950
|
-
|
|
113951
|
-
|
|
113952
|
-
|
|
113953
|
-
|
|
113954
|
-
|
|
113955
|
-
|
|
113951
|
+
let query2 = `/scanner_df/${encodeURIComponent(
|
|
113952
|
+
scanLocation
|
|
113953
|
+
)}?scanner=${encodeURIComponent(scanner)}`;
|
|
113954
|
+
if (resultsDir) {
|
|
113955
|
+
query2 += `&results_dir=${encodeURIComponent(resultsDir)}`;
|
|
113956
|
+
}
|
|
113957
|
+
return await requestApi.fetchBytes("GET", query2);
|
|
113956
113958
|
},
|
|
113957
113959
|
storage: NoPersistence
|
|
113958
113960
|
};
|