@metrevals/inspect-scout-viewer 0.2.3-beta.1763120092 → 0.2.3-beta.1763384043

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.
@@ -1 +1 @@
1
- {"version":3,"file":"api-scout-server.d.ts","sourceRoot":"","sources":["../../src/api/api-scout-server.ts"],"names":[],"mappings":"AAEA,OAAO,EAAiB,OAAO,EAAE,MAAM,OAAO,CAAC;AAG/C,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAEnE,eAAO,MAAM,cAAc,GACzB,UAAS;IACP,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;CAChB,KACL,OAgCF,CAAC"}
1
+ {"version":3,"file":"api-scout-server.d.ts","sourceRoot":"","sources":["../../src/api/api-scout-server.ts"],"names":[],"mappings":"AAEA,OAAO,EAAiB,OAAO,EAAE,MAAM,OAAO,CAAC;AAG/C,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAEnE,eAAO,MAAM,cAAc,GACzB,UAAS;IACP,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;CAChB,KACL,OAkCF,CAAC"}
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
- return (await requestApi.fetchType(
113938
- "GET",
113939
- `/scan/${encodeURIComponent(scanLocation)}`
113940
- )).parsed;
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
- return await requestApi.fetchBytes(
113951
- "GET",
113952
- `/scanner_df/${encodeURIComponent(
113953
- scanLocation
113954
- )}?scanner=${encodeURIComponent(scanner)}`
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
  };