Skip to content

Commit f53688c

Browse files
committed
handle ts6 bump
1 parent efa42a6 commit f53688c

109 files changed

Lines changed: 502 additions & 319 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/actions/check-public-api/index.js

Lines changed: 20 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build-packages/changesets-fixed-version-bump/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"declaration": false,
99
"esModuleInterop": true,
1010
"target": "ESNext",
11-
"module": "NodeNext"
11+
"module": "NodeNext",
12+
"types": ["node", "jest"]
1213
},
1314
"include": ["*.ts"],
1415
"exclude": []

build-packages/check-pr/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"skipLibCheck": true,
99
"isolatedModules": true,
1010
"outDir": "./lib",
11-
"tsBuildInfoFile": "./lib/.tsbuildinfo"
11+
"tsBuildInfoFile": "./lib/.tsbuildinfo",
12+
"types": ["node", "jest"]
1213
},
1314
"include": ["*.ts"],
1415
"exclude": []

build-packages/check-public-api/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"skipLibCheck": true,
99
"isolatedModules": true,
1010
"outDir": "./lib",
11-
"tsBuildInfoFile": "./lib/.tsbuildinfo"
11+
"tsBuildInfoFile": "./lib/.tsbuildinfo",
12+
"types": ["node", "jest"]
1213
},
1314
"include": ["*.ts"],
1415
"exclude": []

build-packages/get-changelog/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ async function getChangelog(v?: string): Promise<string> {
2020
try {
2121
setOutput('changelog', await getChangelog());
2222
} catch (error) {
23-
setFailed(error.message);
23+
setFailed((error as Error).message);
2424
}
2525
})();

build-packages/get-changelog/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"incremental": true,
88
"declaration": false,
99
"esModuleInterop": true,
10-
"module": "NodeNext"
10+
"module": "NodeNext",
11+
"types": ["node"]
1112
},
1213
"files": [
1314
"index.ts"

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@
9595
"@types/jsonwebtoken": "^9.0.10",
9696
"@types/mock-fs": "^4.13.4",
9797
"@types/node": "^22.19.15",
98+
"@types/sap__xsenv": "^3.3.2",
99+
"@types/semver": "^7.7.1",
98100
"@types/voca": "^1.4.6",
99101
"axios": "^1.13.6",
100102
"cross-env": "10.1.0",

packages/connectivity/src/http-agent/http-agent.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,9 @@ function isSupportedFormat(format: string | undefined): boolean {
256256
return !!format && supportedCertificateFormats.includes(format);
257257
}
258258

259-
function selectCertificate(destination): DestinationCertificate {
260-
const certificate = destination.certificates.find(
261-
c => c.name === destination.keyStoreName
259+
function selectCertificate(destination: Destination): DestinationCertificate {
260+
const certificate = destination.certificates?.find(
261+
(c: DestinationCertificate) => c.name === destination.keyStoreName
262262
);
263263

264264
if (!certificate) {

packages/connectivity/src/scp-cf/connectivity-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ async function proxyAuthorizationHeader(
127127
} catch (error) {
128128
throw new ErrorWithCause(
129129
'Failed to add proxy authorization header - client credentials grant failed!',
130-
error
130+
error as Error
131131
);
132132
}
133133
}

packages/connectivity/src/scp-cf/destination/destination-from-env.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
import { isHttpDestination } from './destination-service-types';
1212
import { setForwardedAuthTokenIfNeeded } from './forward-auth-token';
1313
import type { Destination } from './destination-service-types';
14+
import type { DestinationConfiguration } from './destination';
1415
import type { DestinationFetchOptions } from './destination-accessor-types';
1516

1617
const logger = createLogger({
@@ -37,14 +38,15 @@ export function getDestinationsFromEnv(): Destination[] {
3738
} catch (err) {
3839
throw new ErrorWithCause(
3940
'Error in parsing the destinations from the environment variable.',
40-
err
41+
err as Error
4142
);
4243
}
4344
validateDestinations(destinations);
44-
return destinations.map(destination =>
45-
isDestinationConfiguration(destination)
46-
? parseDestination(destination)
47-
: sanitizeDestination(destination)
45+
return destinations.map(
46+
(destination: DestinationConfiguration | Destination) =>
47+
isDestinationConfiguration(destination)
48+
? parseDestination(destination)
49+
: sanitizeDestination(destination)
4850
);
4951
}
5052
return [];
@@ -118,7 +120,7 @@ export function searchEnvVariablesForDestination(
118120
}
119121
} catch (error) {
120122
logger.error(
121-
`Error in reading the given destinations from the environment variable ${error.message}.`
123+
`Error in reading the given destinations from the environment variable ${(error as Error).message}.`
122124
);
123125
}
124126
}

0 commit comments

Comments
 (0)