Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.6.9 (2025-12-29)

- fix: app.urls throw error "TypeError: app.urls is not iterable"

## 2.6.8 (2025-12-1)

- fix: some runtime anomalies
Expand Down
3 changes: 3 additions & 0 deletions core/pm2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,9 @@ const detectActiveApps = () => {
)
.then((apps: Array<{ appName: string; urls: Array<string>; appPid: string }>) => {
for (const app of apps) {
if (!app.urls || !Array.isArray(app.urls)) {
continue;
}
for (const url of app.urls) {
metricAppDomainList?.set(
{ appName: app.appName, domain: url, appPid: app.appPid },
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@arcblock/pm2-prom-module",
"version": "2.6.8",
"version": "2.6.9",
"publishConfig": {
"access": "public"
},
Expand Down
2 changes: 1 addition & 1 deletion utils/domain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export async function getAppDomainList(url: string): Promise<string[]> {
if (!isUrl(url)) {
return [url];
}
if (await appDomainListCache.has(url)) {
if (await appDomainListCache.get(url)) {
return (await appDomainListCache.get(url)) as string[];
}

Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.6.8
2.6.9
Loading