@iobroker/repochecker 5.20.0 → 5.20.1

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/README.md CHANGED
@@ -31,7 +31,7 @@ Example:
31
31
  Placeholder for the next version (at the beginning of the line):
32
32
  ### **WORK IN PROGRESS**
33
33
  -->
34
- ### 5.20.0 (2026-07-17)
34
+ ### 5.20.1 (2026-07-17)
35
35
 
36
36
  * (Copilot) Add a workflow check that rejects `always()` on standard test-and-release jobs and flags it for review on custom jobs.
37
37
  * (Copilot) Warn when tracked files or directories are still covered by `.gitignore` and error if a tracked `/build` directory is ignored.
@@ -24,17 +24,18 @@ const issuesToWatchAsWarning = [
24
24
  ];
25
25
 
26
26
  // disable axios caching
27
- axios.defaults.headers.common = {
28
- 'Cache-Control': 'no-cache',
29
- Pragma: 'no-cache',
30
- Expires: '0',
31
- };
27
+ // axios.defaults.headers.common = {
28
+ // 'Cache-Control': 'no-cache',
29
+ // Pragma: 'no-cache',
30
+ // Expires: '0',
31
+ // };
32
32
 
33
33
  const common = require('./common.js');
34
34
  const M8900__Dependabot = require('./M8900__Dependabot.js');
35
35
 
36
36
  async function getAllIssues(context) {
37
- //console.log('\ngetAllIssues');
37
+ // console.log('\ngetAllIssues');
38
+ // console.log(`${context.githubUrlApi}/issues`);
38
39
  const response = await axios(`${context.githubUrlApi}/issues`, {});
39
40
  return response.data;
40
41
  }
package/lib/common.js CHANGED
@@ -46,24 +46,31 @@ axios.defaults.headers.common = {
46
46
 
47
47
  if (githubToken) {
48
48
  info('using authorization defined by OWN_GITHUB_TOKEN for github URLs');
49
- const githubAuthorization = 'Bearer ' + githubToken;
50
- axios.interceptors.request.use(request => {
51
- let parsedUrl;
52
- try {
53
- if (request?.url) {
54
- parsedUrl = new URL(request.url, request.baseURL || undefined);
49
+ const githubAuthorization = `Bearer ${githubToken}`;
50
+ axios.interceptors.request.use(
51
+ request => {
52
+ let parsedUrl;
53
+ try {
54
+ if (request?.url) {
55
+ parsedUrl = new URL(request.url, request.baseURL || undefined);
56
+ }
57
+ } catch {
58
+ parsedUrl = undefined;
55
59
  }
56
- } catch {
57
- parsedUrl = undefined;
58
- }
59
- const hostname = parsedUrl?.hostname?.toLowerCase();
60
- const isGitHubUrl = !!hostname && githubHostnames.has(hostname);
61
- if (isGitHubUrl) {
62
- request.headers = request.headers || {};
63
- request.headers.Authorization = githubAuthorization;
64
- }
65
- return request;
66
- }, error => Promise.reject(error));
60
+ const hostname = parsedUrl?.hostname?.toLowerCase();
61
+ const isGitHubUrl = !!hostname && githubHostnames.has(hostname);
62
+ // console.log('axios access:');
63
+ // console.log(` request-url: ${request.url}`);
64
+ // console.log(` parsed-url : ${parsedUrl}`);
65
+ // console.log(` isGitHubUrl: ${isGitHubUrl}`);
66
+ if (isGitHubUrl) {
67
+ request.headers = request.headers || {};
68
+ request.headers.Authorization = githubAuthorization;
69
+ }
70
+ return request;
71
+ },
72
+ error => Promise.reject(error),
73
+ );
67
74
  }
68
75
 
69
76
  axios.interceptors.response.use(
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.20.0",
2
+ "version": "5.20.1",
3
3
  "name": "@iobroker/repochecker",
4
4
  "dependencies": {
5
5
  "ajv": "^8.20.0",