Skip to content

Commit 8c34c96

Browse files
authored
Merge pull request #33 from seqeralabs/claude/resolve-recent-issue-7jbDH
Add User-Agent header to API calls
2 parents cb347f6 + f455618 commit 8c34c96

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [1.5.1] - 2025-12-20
4+
5+
- Add User-Agent header to all API calls for traffic analytics [#32](https://github.com/seqeralabs/node-red-seqera/issues/32)
6+
37
## [1.5.0] - 2025-12-18
48

59
- 💥 Breaking change: Poll files node updates [#27](https://github.com/seqeralabs/node-red-seqera/pull/27)

nodes/_utils.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*/
44

55
const axios = require("axios");
6+
const { name: packageName, version: packageVersion } = require("../package.json");
67

78
/**
89
* Build HTTP headers for Seqera Platform API calls.
@@ -22,6 +23,7 @@ function buildHeaders(node, extraHeaders = {}) {
2223
const headers = { ...extraHeaders };
2324
const token = node.seqeraConfig.credentials.token;
2425
headers["Authorization"] = `Bearer ${token}`;
26+
headers["User-Agent"] = `${packageName}/${packageVersion}`;
2527
return headers;
2628
}
2729

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@seqera/node-red-seqera",
3-
"version": "1.5.0",
3+
"version": "1.5.1",
44
"description": "Node-RED nodes for interacting with the Seqera Platform API",
55
"author": "Phil Ewels <phil.ewels@seqera.io>",
66
"license": "Apache-2.0",

0 commit comments

Comments
 (0)