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: 2 additions & 2 deletions cd-tekton-pipeline/v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* IBM OpenAPI SDK Code Generator Version: 3.112.0-f88e9264-20260220-115155
*/

import * as extend from 'extend';
import extend = require('extend');
import { IncomingHttpHeaders, OutgoingHttpHeaders } from 'http';
import {
AbortSignal,
Expand Down Expand Up @@ -67,7 +67,7 @@ class CdTektonPipelineV2 extends BaseService {
* if no mapping for the region exists
*/
public static getServiceUrlForRegion(region: string): string {
return this._regionalEndpoints.get(region)
return this._regionalEndpoints.get(region) ?? '';
}

/*************************
Expand Down
6 changes: 3 additions & 3 deletions cd-toolchain/v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* IBM OpenAPI SDK Code Generator Version: 3.96.0-d6dec9d7-20241008-212902
*/

import * as extend from 'extend';
import extend = require('extend');
import { IncomingHttpHeaders, OutgoingHttpHeaders } from 'http';
import {
Authenticator,
Expand Down Expand Up @@ -56,7 +56,7 @@ class CdToolchainV2 extends BaseService {
* if no mapping for the region exists
*/
public static getServiceUrlForRegion(region: string): string {
return this._regionalEndpoints.get(region);
return this._regionalEndpoints.get(region) ?? '';
}

/*************************
Expand Down Expand Up @@ -1445,7 +1445,7 @@ namespace CdToolchainV2 {
if (!this.pageContext.next) {
this._hasNext = false;
}
return result.toolchains;
return result.toolchains ?? [];
}

/**
Expand Down
28 changes: 21 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"@eslint/js": "^9.39.3",
"@ibm-cloud/sdk-test-utilities": "^1.0.0",
"@masterodin/publisher": "^0.10.0",
"@types/extend": "^3.0.4",
"dotenv": "^17.0.0",
"eslint": "^9.39.3",
"eslint-config-prettier": "^10.1.8",
Expand All @@ -53,7 +54,7 @@
"installed-check": "^10.0.0",
"jest": "^29.7.0",
"nock": "^14.0.1",
"typescript": "^5.9.3",
"typescript": "^6.0.3",
"typescript-eslint": "^8.58.1"
},
"overrides": {
Expand Down
12 changes: 5 additions & 7 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
{
"compilerOptions": {
/* Basic Options */
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'. */
"module": "commonjs", /* Specify module code generation: 'none', commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
"target": "ES2022", /* Specify ECMAScript target version */
"module": "node16", /* Specify module code generation */
"resolveJsonModule": true,
"lib": [
"es5",
"es2015",
"dom",
"scripthost"
"es2022",
"dom"
],
/* Build source files into a folder called `dist` to maintain clean directories, free of ts-generated files */
"outDir": "./dist",
Expand All @@ -18,7 +16,7 @@
/* Strict Type-Checking Options */
"alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
/* Module Resolution Options */
"moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
"moduleResolution": "node16", /* Specify module resolution strategy */
"types": [
"node"
] /* Type declaration files to be included in compilation. */
Expand Down