@roxybrowser/openapi 1.0.13-beta.3 → 1.0.13-beta.5

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 CHANGED
@@ -2130,16 +2130,16 @@ var ListBrowsers = class {
2130
2130
  const pageSize = params.pageSize ?? 15;
2131
2131
  const totalPages = Math.max(1, Math.ceil((data.total || 0) / pageSize));
2132
2132
  const hasNextPage = currentPage < totalPages;
2133
- const serialNo = `${data.workspaceName?.slice(0, 3).toLocaleUpperCase()}-${data.windowSortNum}`;
2134
2133
  text = `Found ${data.total} browsers in workspace ${params.workspaceId}:
2135
2134
 
2136
- ${data.rows.map(
2137
- (browser) => `**${browser.windowName || "Unnamed"}** (Serial No: ${serialNo})
2135
+ ${data.rows.map((browser) => {
2136
+ const serialNo = `${browser.workspaceName?.slice(0, 3).toLocaleUpperCase()}-${browser.windowSortNum}`;
2137
+ return `**${browser.windowName || "Unnamed"}** (Serial No: ${serialNo})
2138
2138
  - CoreVersion: ${browser.coreVersion} - DirId: ${browser.dirId}
2139
2139
  - OSVersion: ${browser.osVersion}
2140
2140
  - OS: ${browser.os}
2141
- - Remark: ${browser.windowRemark}`
2142
- ).join("\n\n")}
2141
+ - Remark: ${browser.windowRemark}`;
2142
+ }).join("\n\n")}
2143
2143
 
2144
2144
  Pagination:
2145
2145
  - currentPage: ${currentPage}