renovate 44.42.0 → 44.42.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.
|
@@ -50,7 +50,7 @@ function workItemTrackingApi() {
|
|
|
50
50
|
async function isHosted() {
|
|
51
51
|
try {
|
|
52
52
|
const { deploymentType } = await azureObj().connect();
|
|
53
|
-
return deploymentType === DeploymentFlags.Hosted;
|
|
53
|
+
return deploymentType === DeploymentFlags.Hosted || String(deploymentType).toLowerCase() === "hosted";
|
|
54
54
|
} catch (err) {
|
|
55
55
|
logger.debug({ err }, "Azure: could not determine deployment type, assuming on-premises");
|
|
56
56
|
return false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"azure-got-wrapper.js","names":["hostRules.find"],"sources":["../../../../lib/modules/platform/azure/azure-got-wrapper.ts"],"sourcesContent":["import * as azure from 'azure-devops-node-api';\nimport {\n getBasicHandler,\n getBearerHandler,\n getPersonalAccessTokenHandler,\n} from 'azure-devops-node-api';\nimport type { ICoreApi } from 'azure-devops-node-api/CoreApi.js';\nimport type { IGitApi } from 'azure-devops-node-api/GitApi.js';\nimport { DeploymentFlags } from 'azure-devops-node-api/interfaces/common/VSSInterfaces.js';\nimport type { IRequestHandler } from 'azure-devops-node-api/interfaces/common/VsoBaseInterfaces.js';\nimport type { IPolicyApi } from 'azure-devops-node-api/PolicyApi.js';\nimport type { IWorkItemTrackingApi } from 'azure-devops-node-api/WorkItemTrackingApi.js';\nimport { logger } from '../../../logger/index.ts';\nimport type { HostRule } from '../../../types/index.ts';\nimport * as hostRules from '../../../util/host-rules.ts';\nimport { isProbablyJwt } from '../../../util/http/jwt.ts';\n\nconst hostType = 'azure';\nlet endpoint: string;\n\nfunction getAuthenticationHandler(config: HostRule): IRequestHandler {\n if (!config.token && config.username && config.password) {\n return getBasicHandler(config.username, config.password, true);\n }\n if (config.token && isProbablyJwt(config.token)) {\n logger.debug('Using Bearer authentication (JWT detected)');\n return getBearerHandler(config.token, true);\n }\n logger.debug('Using PAT authentication');\n // TODO: token can be undefined here (#22198)\n return getPersonalAccessTokenHandler(config.token!, true);\n}\n\nexport function azureObj(): azure.WebApi {\n const config = hostRules.find({ hostType, url: endpoint });\n if (!config.token && !(config.username && config.password)) {\n throw new Error(`No config found for azure`);\n }\n const authHandler = getAuthenticationHandler(config);\n return new azure.WebApi(endpoint, authHandler, {\n allowRetries: true,\n maxRetries: 2,\n });\n}\n\nexport function gitApi(): Promise<IGitApi> {\n return azureObj().getGitApi();\n}\n\nexport function coreApi(): Promise<ICoreApi> {\n return azureObj().getCoreApi();\n}\n\nexport function policyApi(): Promise<IPolicyApi> {\n return azureObj().getPolicyApi();\n}\n\nexport function workItemTrackingApi(): Promise<IWorkItemTrackingApi> {\n return azureObj().getWorkItemTrackingApi();\n}\n\n/**\n * Whether the endpoint is Azure DevOps Services (cloud) rather than Azure\n * DevOps Server (on-premises). Read from the location service's\n * `_apis/connectionData`, which reports the deployment type authoritatively.\n * Defaults to `false` (on-premises) when the type cannot be determined, so\n * callers stay on the behaviour that both products support.\n */\nexport async function isHosted(): Promise<boolean> {\n try {\n const { deploymentType } = await azureObj().connect();\n return deploymentType === DeploymentFlags.Hosted;\n } catch (err) {\n logger.debug(\n { err },\n 'Azure: could not determine deployment type, assuming on-premises',\n );\n return false;\n }\n}\n\nexport function setEndpoint(e: string): void {\n endpoint = e;\n}\n"],"mappings":";;;;;;;AAiBA,MAAM,WAAW;AACjB,IAAI;AAEJ,SAAS,yBAAyB,QAAmC;CACnE,IAAI,CAAC,OAAO,SAAS,OAAO,YAAY,OAAO,UAC7C,OAAO,gBAAgB,OAAO,UAAU,OAAO,UAAU,IAAI;CAE/D,IAAI,OAAO,SAAS,cAAc,OAAO,KAAK,GAAG;EAC/C,OAAO,MAAM,4CAA4C;EACzD,OAAO,iBAAiB,OAAO,OAAO,IAAI;CAC5C;CACA,OAAO,MAAM,0BAA0B;CAEvC,OAAO,8BAA8B,OAAO,OAAQ,IAAI;AAC1D;AAEA,SAAgB,WAAyB;CACvC,MAAM,SAASA,KAAe;EAAE;EAAU,KAAK;CAAS,CAAC;CACzD,IAAI,CAAC,OAAO,SAAS,EAAE,OAAO,YAAY,OAAO,WAC/C,MAAM,IAAI,MAAM,2BAA2B;CAE7C,MAAM,cAAc,yBAAyB,MAAM;CACnD,OAAO,IAAI,MAAM,OAAO,UAAU,aAAa;EAC7C,cAAc;EACd,YAAY;CACd,CAAC;AACH;AAEA,SAAgB,SAA2B;CACzC,OAAO,SAAS,CAAC,CAAC,UAAU;AAC9B;AAEA,SAAgB,UAA6B;CAC3C,OAAO,SAAS,CAAC,CAAC,WAAW;AAC/B;AAEA,SAAgB,YAAiC;CAC/C,OAAO,SAAS,CAAC,CAAC,aAAa;AACjC;AAEA,SAAgB,sBAAqD;CACnE,OAAO,SAAS,CAAC,CAAC,uBAAuB;AAC3C;;;;;;;;AASA,eAAsB,WAA6B;CACjD,IAAI;EACF,MAAM,EAAE,mBAAmB,MAAM,SAAS,CAAC,CAAC,QAAQ;
|
|
1
|
+
{"version":3,"file":"azure-got-wrapper.js","names":["hostRules.find"],"sources":["../../../../lib/modules/platform/azure/azure-got-wrapper.ts"],"sourcesContent":["import * as azure from 'azure-devops-node-api';\nimport {\n getBasicHandler,\n getBearerHandler,\n getPersonalAccessTokenHandler,\n} from 'azure-devops-node-api';\nimport type { ICoreApi } from 'azure-devops-node-api/CoreApi.js';\nimport type { IGitApi } from 'azure-devops-node-api/GitApi.js';\nimport { DeploymentFlags } from 'azure-devops-node-api/interfaces/common/VSSInterfaces.js';\nimport type { IRequestHandler } from 'azure-devops-node-api/interfaces/common/VsoBaseInterfaces.js';\nimport type { IPolicyApi } from 'azure-devops-node-api/PolicyApi.js';\nimport type { IWorkItemTrackingApi } from 'azure-devops-node-api/WorkItemTrackingApi.js';\nimport { logger } from '../../../logger/index.ts';\nimport type { HostRule } from '../../../types/index.ts';\nimport * as hostRules from '../../../util/host-rules.ts';\nimport { isProbablyJwt } from '../../../util/http/jwt.ts';\n\nconst hostType = 'azure';\nlet endpoint: string;\n\nfunction getAuthenticationHandler(config: HostRule): IRequestHandler {\n if (!config.token && config.username && config.password) {\n return getBasicHandler(config.username, config.password, true);\n }\n if (config.token && isProbablyJwt(config.token)) {\n logger.debug('Using Bearer authentication (JWT detected)');\n return getBearerHandler(config.token, true);\n }\n logger.debug('Using PAT authentication');\n // TODO: token can be undefined here (#22198)\n return getPersonalAccessTokenHandler(config.token!, true);\n}\n\nexport function azureObj(): azure.WebApi {\n const config = hostRules.find({ hostType, url: endpoint });\n if (!config.token && !(config.username && config.password)) {\n throw new Error(`No config found for azure`);\n }\n const authHandler = getAuthenticationHandler(config);\n return new azure.WebApi(endpoint, authHandler, {\n allowRetries: true,\n maxRetries: 2,\n });\n}\n\nexport function gitApi(): Promise<IGitApi> {\n return azureObj().getGitApi();\n}\n\nexport function coreApi(): Promise<ICoreApi> {\n return azureObj().getCoreApi();\n}\n\nexport function policyApi(): Promise<IPolicyApi> {\n return azureObj().getPolicyApi();\n}\n\nexport function workItemTrackingApi(): Promise<IWorkItemTrackingApi> {\n return azureObj().getWorkItemTrackingApi();\n}\n\n/**\n * Whether the endpoint is Azure DevOps Services (cloud) rather than Azure\n * DevOps Server (on-premises). Read from the location service's\n * `_apis/connectionData`, which reports the deployment type authoritatively.\n * Defaults to `false` (on-premises) when the type cannot be determined, so\n * callers stay on the behaviour that both products support.\n */\nexport async function isHosted(): Promise<boolean> {\n try {\n const { deploymentType } = await azureObj().connect();\n // `connect()` returns the response body as-is, without running the SDK\n // deserializer, so enums arrive as their name (`hosted`) instead of their\n // numeric value. Accept both forms.\n return (\n deploymentType === DeploymentFlags.Hosted ||\n String(deploymentType).toLowerCase() === 'hosted'\n );\n } catch (err) {\n logger.debug(\n { err },\n 'Azure: could not determine deployment type, assuming on-premises',\n );\n return false;\n }\n}\n\nexport function setEndpoint(e: string): void {\n endpoint = e;\n}\n"],"mappings":";;;;;;;AAiBA,MAAM,WAAW;AACjB,IAA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ovate",
|
|
3
3
|
"description": "Automated dependency updates. Flexible so you don't need to be.",
|
|
4
|
-
"version": "44.42.
|
|
4
|
+
"version": "44.42.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"renovate": "dist/renovate.js",
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
"re2": "1.26.1"
|
|
213
213
|
},
|
|
214
214
|
"devDependencies": {
|
|
215
|
-
"@biomejs/biome": "2.5.
|
|
215
|
+
"@biomejs/biome": "2.5.9",
|
|
216
216
|
"@commander-js/extra-typings": "14.0.0",
|
|
217
217
|
"@containerbase/istanbul-reports-html": "2.0.17",
|
|
218
218
|
"@containerbase/semantic-release-pnpm": "1.4.3",
|
|
@@ -241,7 +241,7 @@
|
|
|
241
241
|
"@types/linkify-markdown": "1.0.3",
|
|
242
242
|
"@types/lodash": "4.17.25",
|
|
243
243
|
"@types/luxon": "3.7.3",
|
|
244
|
-
"@types/markdown-it": "14.
|
|
244
|
+
"@types/markdown-it": "14.2.0",
|
|
245
245
|
"@types/marshal": "0.5.3",
|
|
246
246
|
"@types/mdast": "4.0.4",
|
|
247
247
|
"@types/moo": "0.5.10",
|
package/renovate-schema.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$id": "https://docs.renovatebot.com/renovate-schema.json",
|
|
3
|
-
"title": "JSON schema for Renovate 44.42.
|
|
3
|
+
"title": "JSON schema for Renovate 44.42.1 config files (https://renovatebot.com/)",
|
|
4
4
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
-
"x-renovate-version": "44.42.
|
|
5
|
+
"x-renovate-version": "44.42.1",
|
|
6
6
|
"allowComments": true,
|
|
7
7
|
"type": "object",
|
|
8
8
|
"definitions": {
|