From fa2d15c3aa7939127e46445a6be1913b7aa2d443 Mon Sep 17 00:00:00 2001 From: zFernand0 <37381190+zFernand0@users.noreply.github.com> Date: Wed, 31 Jul 2024 21:49:33 -0400 Subject: [PATCH] fix lint warnings :yum: Signed-off-by: zFernand0 <37381190+zFernand0@users.noreply.github.com> --- .eslintrc.yaml | 4 + package-lock.json | 620 +++++++++--------- package.json | 10 +- packages/sdk/src/methods/enable/Enable.ts | 6 +- .../src/commands/closeLocalFileCommand.ts | 10 +- .../disableLocalFileCommand.ts | 6 +- .../disableCommands/disableProgramCommand.ts | 8 +- .../disableTransactionCommand.ts | 10 +- .../enableCommands/enableLocalFileCommand.ts | 6 +- .../enableCommands/enableProgramCommand.ts | 6 +- .../enableTransactionCommand.ts | 6 +- packages/vsce/src/commands/inquireProgram.ts | 4 +- .../vsce/src/commands/inquireTransaction.ts | 4 +- packages/vsce/src/commands/newCopyCommand.ts | 10 +- .../vsce/src/commands/openLocalFileCommand.ts | 10 +- packages/vsce/src/commands/phaseInCommand.ts | 10 +- .../vsce/src/commands/purgeTaskCommand.ts | 10 +- .../CICSCombinedLibraryTree.ts | 4 +- .../CICSCombinedLocalFileTree.ts | 4 +- .../CICSCombinedPipelineTree.ts | 4 +- .../CICSCombinedProgramTree.ts | 4 +- .../CICSCombinedTCPIPServiceTree.ts | 4 +- .../CICSCombinedTrees/CICSCombinedTaskTree.ts | 4 +- .../CICSCombinedTransactionTree.ts | 4 +- .../CICSCombinedURIMapTree.ts | 4 +- .../CICSCombinedWebServiceTree.ts | 4 +- packages/vsce/src/trees/CICSLocalFileTree.ts | 4 +- .../vsce/src/trees/CICSTransactionTree.ts | 4 +- packages/vsce/src/trees/CICSTree.ts | 20 +- packages/vsce/src/utils/expansionHandler.ts | 2 +- 30 files changed, 397 insertions(+), 409 deletions(-) diff --git a/.eslintrc.yaml b/.eslintrc.yaml index 18d05390..22a12bc7 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -16,6 +16,7 @@ overrides: "@typescript-eslint/no-misused-promises": warn "@typescript-eslint/no-unsafe-return": warn "@typescript-eslint/restrict-plus-operands": off + "@typescript-eslint/no-explicit-any": off "@typescript-eslint/restrict-template-expressions": off "@typescript-eslint/explicit-function-return-type": off "@typescript-eslint/unbound-method": warn @@ -46,6 +47,9 @@ rules: "@typescript-eslint/no-unsafe-call": off "@typescript-eslint/no-unsafe-member-access": off "@typescript-eslint/no-unsafe-return": off + "@typescript-eslint/no-explicit-any": off + "@typescript-eslint/no-base-to-string": off + "@typescript-eslint/ban-ts-comment": off "@typescript-eslint/no-shadow": error "@typescript-eslint/no-unused-expressions": error diff --git a/package-lock.json b/package-lock.json index 6466d7b2..b9dca519 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,19 +17,19 @@ "@types/uuid": "^9.0.1", "@types/xml2js": "^0.4.4", "@types/yargs": "^17.0.24", - "@typescript-eslint/eslint-plugin": "^5.57.1", - "@typescript-eslint/parser": "^5.57.1", + "@typescript-eslint/eslint-plugin": "^7.0.0", + "@typescript-eslint/parser": "^7.0.0", "@zowe/cli-test-utils": "^8.0.0-next.202402021649", "@zowe/imperative": "^8.0.0-next.202407311544", "@zowe/zowe-explorer-api": "^3.0.0-next", "chalk": "^4.1.2", - "eslint": "^8.37.0", + "eslint": "^8.0.0", "eslint-config-prettier": "^8.6.0", "eslint-plugin-deprecation": "^2.0.0", - "eslint-plugin-jest": "^27.2.1", + "eslint-plugin-jest": "^28.0.0", "eslint-plugin-license-header": "^0.6.0", "eslint-plugin-prettier": "^4.2.1", - "eslint-plugin-unused-imports": "^2.0.0", + "eslint-plugin-unused-imports": "^3.0.0", "glob": "^10.2.2", "husky": "^8.0.3", "jest": "^29.5.0", @@ -398,6 +398,16 @@ "node": ">=6.9.0" } }, + "node_modules/@babel/helper-compilation-targets/node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "license": "ISC", + "dependencies": { + "yallist": "^3.0.2" + } + }, "node_modules/@babel/helper-compilation-targets/node_modules/semver": { "version": "6.3.1", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", @@ -408,6 +418,13 @@ "semver": "bin/semver.js" } }, + "node_modules/@babel/helper-compilation-targets/node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true, + "license": "ISC" + }, "node_modules/@babel/helper-module-imports": { "version": "7.24.7", "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.24.7.tgz", @@ -2220,6 +2237,19 @@ "node": "^16.14.0 || >=18.0.0" } }, + "node_modules/@npmcli/arborist/node_modules/hosted-git-info": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-7.0.2.tgz", + "integrity": "sha512-puUZAUKT5m8Zzvs72XWy3HtvVbTWljRE66cP60bxJzAqf2DgICo7lYTY2IHUmLnNpjYvw5bvmoHvPc0QO2a62w==", + "dev": true, + "license": "ISC", + "dependencies": { + "lru-cache": "^10.0.1" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, "node_modules/@npmcli/arborist/node_modules/lru-cache": { "version": "10.4.3", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", @@ -2351,6 +2381,24 @@ "node": "^16.14.0 || >=18.0.0" } }, + "node_modules/@npmcli/package-json/node_modules/hosted-git-info": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-7.0.2.tgz", + "integrity": "sha512-puUZAUKT5m8Zzvs72XWy3HtvVbTWljRE66cP60bxJzAqf2DgICo7lYTY2IHUmLnNpjYvw5bvmoHvPc0QO2a62w==", + "license": "ISC", + "dependencies": { + "lru-cache": "^10.0.1" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/@npmcli/package-json/node_modules/lru-cache": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", + "license": "ISC" + }, "node_modules/@npmcli/promise-spawn": { "version": "7.0.2", "resolved": "https://registry.npmjs.org/@npmcli/promise-spawn/-/promise-spawn-7.0.2.tgz", @@ -2986,33 +3034,32 @@ "license": "MIT" }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.62.0.tgz", - "integrity": "sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag==", + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.18.0.tgz", + "integrity": "sha512-94EQTWZ40mzBc42ATNIBimBEDltSJ9RQHCC8vc/PDbxi4k8dVwUAv4o98dk50M1zB+JGFxp43FP7f8+FP8R6Sw==", "dev": true, "license": "MIT", "dependencies": { - "@eslint-community/regexpp": "^4.4.0", - "@typescript-eslint/scope-manager": "5.62.0", - "@typescript-eslint/type-utils": "5.62.0", - "@typescript-eslint/utils": "5.62.0", - "debug": "^4.3.4", + "@eslint-community/regexpp": "^4.10.0", + "@typescript-eslint/scope-manager": "7.18.0", + "@typescript-eslint/type-utils": "7.18.0", + "@typescript-eslint/utils": "7.18.0", + "@typescript-eslint/visitor-keys": "7.18.0", "graphemer": "^1.4.0", - "ignore": "^5.2.0", - "natural-compare-lite": "^1.4.0", - "semver": "^7.3.7", - "tsutils": "^3.21.0" + "ignore": "^5.3.1", + "natural-compare": "^1.4.0", + "ts-api-utils": "^1.3.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || >=20.0.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^5.0.0", - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + "@typescript-eslint/parser": "^7.0.0", + "eslint": "^8.56.0" }, "peerDependenciesMeta": { "typescript": { @@ -3021,26 +3068,27 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.62.0.tgz", - "integrity": "sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==", + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.18.0.tgz", + "integrity": "sha512-4Z+L8I2OqhZV8qA132M4wNL30ypZGYOQVBfMgxDH/K5UX0PNqTu1c6za9ST5r9+tavvHiTWmBnKzpCJ/GlVFtg==", "dev": true, "license": "BSD-2-Clause", "dependencies": { - "@typescript-eslint/scope-manager": "5.62.0", - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/typescript-estree": "5.62.0", + "@typescript-eslint/scope-manager": "7.18.0", + "@typescript-eslint/types": "7.18.0", + "@typescript-eslint/typescript-estree": "7.18.0", + "@typescript-eslint/visitor-keys": "7.18.0", "debug": "^4.3.4" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || >=20.0.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + "eslint": "^8.56.0" }, "peerDependenciesMeta": { "typescript": { @@ -3049,17 +3097,17 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.62.0.tgz", - "integrity": "sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==", + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.18.0.tgz", + "integrity": "sha512-jjhdIE/FPF2B7Z1uzc6i3oWKbGcHb87Qw7AWj6jmEqNOfDFbJWtjt/XfwCpvNkpGWlcJaog5vTR+VV8+w9JflA==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/visitor-keys": "5.62.0" + "@typescript-eslint/types": "7.18.0", + "@typescript-eslint/visitor-keys": "7.18.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || >=20.0.0" }, "funding": { "type": "opencollective", @@ -3067,26 +3115,26 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.62.0.tgz", - "integrity": "sha512-xsSQreu+VnfbqQpW5vnCJdq1Z3Q0U31qiWmRhr98ONQmcp/yhiPJFPq8MXiJVLiksmOKSjIldZzkebzHuCGzew==", + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-7.18.0.tgz", + "integrity": "sha512-XL0FJXuCLaDuX2sYqZUUSOJ2sG5/i1AAze+axqmLnSkNEVMVYLF+cbwlB2w8D1tinFuSikHmFta+P+HOofrLeA==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/typescript-estree": "5.62.0", - "@typescript-eslint/utils": "5.62.0", + "@typescript-eslint/typescript-estree": "7.18.0", + "@typescript-eslint/utils": "7.18.0", "debug": "^4.3.4", - "tsutils": "^3.21.0" + "ts-api-utils": "^1.3.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || >=20.0.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "*" + "eslint": "^8.56.0" }, "peerDependenciesMeta": { "typescript": { @@ -3095,13 +3143,13 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.62.0.tgz", - "integrity": "sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==", + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.18.0.tgz", + "integrity": "sha512-iZqi+Ds1y4EDYUtlOOC+aUmxnE9xS/yCigkjA7XpTKV6nCBd3Hp/PRGGmdwnfkV2ThMyYldP1wRpm/id99spTQ==", "dev": true, "license": "MIT", "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || >=20.0.0" }, "funding": { "type": "opencollective", @@ -3109,22 +3157,23 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.62.0.tgz", - "integrity": "sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==", + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.18.0.tgz", + "integrity": "sha512-aP1v/BSPnnyhMHts8cf1qQ6Q1IFwwRvAQGRvBFkWlo3/lH29OXA3Pts+c10nxRxIBrDnoMqzhgdwVe5f2D6OzA==", "dev": true, "license": "BSD-2-Clause", "dependencies": { - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/visitor-keys": "5.62.0", + "@typescript-eslint/types": "7.18.0", + "@typescript-eslint/visitor-keys": "7.18.0", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", - "semver": "^7.3.7", - "tsutils": "^3.21.0" + "minimatch": "^9.0.4", + "semver": "^7.6.0", + "ts-api-utils": "^1.3.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || >=20.0.0" }, "funding": { "type": "opencollective", @@ -3137,44 +3186,40 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.62.0.tgz", - "integrity": "sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==", + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.18.0.tgz", + "integrity": "sha512-kK0/rNa2j74XuHVcoCZxdFBMF+aq/vH83CXAOHieC+2Gis4mF8jJXT5eAfyD3K0sAxtPuwxaIOIOvhwzVDt/kw==", "dev": true, "license": "MIT", "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@types/json-schema": "^7.0.9", - "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.62.0", - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/typescript-estree": "5.62.0", - "eslint-scope": "^5.1.1", - "semver": "^7.3.7" + "@eslint-community/eslint-utils": "^4.4.0", + "@typescript-eslint/scope-manager": "7.18.0", + "@typescript-eslint/types": "7.18.0", + "@typescript-eslint/typescript-estree": "7.18.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || >=20.0.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + "eslint": "^8.56.0" } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.62.0.tgz", - "integrity": "sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==", + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.18.0.tgz", + "integrity": "sha512-cDF0/Gf81QpY3xYyJKDV14Zwdmid5+uuENhjH2EqFaF0ni+yAyq/LzMaIJdhNJXZI7uLzwIlA+V7oWoyn6Curg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "5.62.0", - "eslint-visitor-keys": "^3.3.0" + "@typescript-eslint/types": "7.18.0", + "eslint-visitor-keys": "^3.4.3" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || >=20.0.0" }, "funding": { "type": "opencollective", @@ -3388,17 +3433,6 @@ "node": ">=4" } }, - "node_modules/@vscode/vsce/node_modules/azure-devops-node-api": { - "version": "12.5.0", - "resolved": "https://registry.npmjs.org/azure-devops-node-api/-/azure-devops-node-api-12.5.0.tgz", - "integrity": "sha512-R5eFskGvOm3U/GzeAuxRkUsAl0hrAwGgWn6zAd2KrZmrEhWZVqLew4OOupbQlXUuojUzpGtq62SmdhJ06N88og==", - "dev": true, - "license": "MIT", - "dependencies": { - "tunnel": "0.0.6", - "typed-rest-client": "^1.8.4" - } - }, "node_modules/@vscode/vsce/node_modules/chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", @@ -3431,16 +3465,6 @@ "dev": true, "license": "MIT" }, - "node_modules/@vscode/vsce/node_modules/commander": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz", - "integrity": "sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 6" - } - }, "node_modules/@vscode/vsce/node_modules/entities": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/entities/-/entities-2.1.0.tgz", @@ -3511,19 +3535,6 @@ "node": ">=4" } }, - "node_modules/@vscode/vsce/node_modules/hosted-git-info": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz", - "integrity": "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==", - "dev": true, - "license": "ISC", - "dependencies": { - "lru-cache": "^6.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/@vscode/vsce/node_modules/jackspeak": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-4.0.1.tgz", @@ -3554,16 +3565,13 @@ } }, "node_modules/@vscode/vsce/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.0.0.tgz", + "integrity": "sha512-Qv32eSV1RSCfhY3fpPE2GNZ8jgM9X7rdAfemLWqTUxwiyIC4jJ6Sy0fZ8H+oLWevO6i4/bizg7c8d8i6bxrzbA==", "dev": true, "license": "ISC", - "dependencies": { - "yallist": "^4.0.0" - }, "engines": { - "node": ">=10" + "node": "20 || >=22" } }, "node_modules/@vscode/vsce/node_modules/markdown-it": { @@ -3638,16 +3646,6 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/@vscode/vsce/node_modules/path-scurry/node_modules/lru-cache": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.0.0.tgz", - "integrity": "sha512-Qv32eSV1RSCfhY3fpPE2GNZ8jgM9X7rdAfemLWqTUxwiyIC4jJ6Sy0fZ8H+oLWevO6i4/bizg7c8d8i6bxrzbA==", - "dev": true, - "license": "ISC", - "engines": { - "node": "20 || >=22" - } - }, "node_modules/@vscode/vsce/node_modules/read": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/read/-/read-1.0.7.tgz", @@ -3681,37 +3679,6 @@ "dev": true, "license": "MIT" }, - "node_modules/@vscode/vsce/node_modules/xml2js": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.5.0.tgz", - "integrity": "sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==", - "dev": true, - "license": "MIT", - "dependencies": { - "sax": ">=0.6.0", - "xmlbuilder": "~11.0.0" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/@vscode/vsce/node_modules/xmlbuilder": { - "version": "11.0.1", - "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz", - "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/@vscode/vsce/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true, - "license": "ISC" - }, "node_modules/@zowe/cics-for-zowe-cli": { "resolved": "packages/cli", "link": true @@ -4324,6 +4291,17 @@ "proxy-from-env": "^1.1.0" } }, + "node_modules/azure-devops-node-api": { + "version": "12.5.0", + "resolved": "https://registry.npmjs.org/azure-devops-node-api/-/azure-devops-node-api-12.5.0.tgz", + "integrity": "sha512-R5eFskGvOm3U/GzeAuxRkUsAl0hrAwGgWn6zAd2KrZmrEhWZVqLew4OOupbQlXUuojUzpGtq62SmdhJ06N88og==", + "dev": true, + "license": "MIT", + "dependencies": { + "tunnel": "0.0.6", + "typed-rest-client": "^1.8.4" + } + }, "node_modules/babel-jest": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz", @@ -5121,13 +5099,13 @@ } }, "node_modules/commander": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", - "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz", + "integrity": "sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==", "dev": true, "license": "MIT", "engines": { - "node": ">= 10" + "node": ">= 6" } }, "node_modules/comment-json": { @@ -5628,6 +5606,66 @@ "node": "^14.14.0 || >=16.0.0" } }, + "node_modules/detective-typescript/node_modules/@typescript-eslint/types": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.62.0.tgz", + "integrity": "sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/detective-typescript/node_modules/@typescript-eslint/typescript-estree": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.62.0.tgz", + "integrity": "sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/visitor-keys": "5.62.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/detective-typescript/node_modules/@typescript-eslint/visitor-keys": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.62.0.tgz", + "integrity": "sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "5.62.0", + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, "node_modules/diff": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/diff/-/diff-5.2.0.tgz", @@ -5993,16 +6031,6 @@ "source-map": "~0.6.1" } }, - "node_modules/escodegen/node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=4.0" - } - }, "node_modules/eslint": { "version": "8.57.0", "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz", @@ -6210,20 +6238,20 @@ } }, "node_modules/eslint-plugin-jest": { - "version": "27.9.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-27.9.0.tgz", - "integrity": "sha512-QIT7FH7fNmd9n4se7FFKHbsLKGQiw885Ds6Y/sxKgCZ6natwCsXdgPOADnYVxN2QrRweF0FZWbJ6S7Rsn7llug==", + "version": "28.6.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-28.6.0.tgz", + "integrity": "sha512-YG28E1/MIKwnz+e2H7VwYPzHUYU4aMa19w0yGcwXnnmJH6EfgHahTJ2un3IyraUxNfnz/KUhJAFXNNwWPo12tg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/utils": "^5.10.0" + "@typescript-eslint/utils": "^6.0.0 || ^7.0.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^16.10.0 || ^18.12.0 || >=20.0.0" }, "peerDependencies": { - "@typescript-eslint/eslint-plugin": "^5.0.0 || ^6.0.0 || ^7.0.0", - "eslint": "^7.0.0 || ^8.0.0", + "@typescript-eslint/eslint-plugin": "^6.0.0 || ^7.0.0", + "eslint": "^7.0.0 || ^8.0.0 || ^9.0.0", "jest": "*" }, "peerDependenciesMeta": { @@ -6268,9 +6296,9 @@ } }, "node_modules/eslint-plugin-unused-imports": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-unused-imports/-/eslint-plugin-unused-imports-2.0.0.tgz", - "integrity": "sha512-3APeS/tQlTrFa167ThtP0Zm0vctjr4M44HMpeg1P4bK6wItarumq0Ma82xorMKdFsWpphQBlRPzw/pxiVELX1A==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-unused-imports/-/eslint-plugin-unused-imports-3.2.0.tgz", + "integrity": "sha512-6uXyn6xdINEpxE1MtDjxQsyXB37lfyO2yKGVVgtD7WEWQGORSOZjgrD6hBhvGv4/SO+TOlS+UnC6JppRqbuwGQ==", "dev": true, "license": "MIT", "dependencies": { @@ -6280,8 +6308,8 @@ "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, "peerDependencies": { - "@typescript-eslint/eslint-plugin": "^5.0.0", - "eslint": "^8.0.0" + "@typescript-eslint/eslint-plugin": "6 - 7", + "eslint": "8" }, "peerDependenciesMeta": { "@typescript-eslint/eslint-plugin": { @@ -6300,17 +6328,20 @@ } }, "node_modules/eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", "dev": true, "license": "BSD-2-Clause", "dependencies": { "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" + "estraverse": "^5.2.0" }, "engines": { - "node": ">=8.0.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, "node_modules/eslint-visitor-keys": { @@ -6337,33 +6368,6 @@ "concat-map": "0.0.1" } }, - "node_modules/eslint/node_modules/eslint-scope": { - "version": "7.2.2", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", - "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint/node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=4.0" - } - }, "node_modules/eslint/node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -6421,16 +6425,6 @@ "node": ">=0.10" } }, - "node_modules/esquery/node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=4.0" - } - }, "node_modules/esrecurse": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", @@ -6444,7 +6438,7 @@ "node": ">=4.0" } }, - "node_modules/esrecurse/node_modules/estraverse": { + "node_modules/estraverse": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", @@ -6454,16 +6448,6 @@ "node": ">=4.0" } }, - "node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=4.0" - } - }, "node_modules/esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", @@ -7318,23 +7302,18 @@ "license": "MIT" }, "node_modules/hosted-git-info": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-7.0.2.tgz", - "integrity": "sha512-puUZAUKT5m8Zzvs72XWy3HtvVbTWljRE66cP60bxJzAqf2DgICo7lYTY2IHUmLnNpjYvw5bvmoHvPc0QO2a62w==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz", + "integrity": "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==", + "dev": true, "license": "ISC", "dependencies": { - "lru-cache": "^10.0.1" + "lru-cache": "^6.0.0" }, "engines": { - "node": "^16.14.0 || >=18.0.0" + "node": ">=10" } }, - "node_modules/hosted-git-info/node_modules/lru-cache": { - "version": "10.4.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", - "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", - "license": "ISC" - }, "node_modules/html-escaper": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", @@ -9179,13 +9158,16 @@ } }, "node_modules/lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", "dev": true, "license": "ISC", "dependencies": { - "yallist": "^3.0.2" + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" } }, "node_modules/lunr": { @@ -9235,6 +9217,16 @@ } } }, + "node_modules/madge/node_modules/commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 10" + } + }, "node_modules/make-dir": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", @@ -9500,12 +9492,6 @@ "node": ">=8" } }, - "node_modules/minipass-flush/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "license": "ISC" - }, "node_modules/minipass-json-stream": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/minipass-json-stream/-/minipass-json-stream-1.0.2.tgz", @@ -9528,12 +9514,6 @@ "node": ">=8" } }, - "node_modules/minipass-json-stream/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "license": "ISC" - }, "node_modules/minipass-pipeline": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/minipass-pipeline/-/minipass-pipeline-1.2.4.tgz", @@ -9558,12 +9538,6 @@ "node": ">=8" } }, - "node_modules/minipass-pipeline/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "license": "ISC" - }, "node_modules/minipass-sized": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/minipass-sized/-/minipass-sized-1.0.3.tgz", @@ -9588,12 +9562,6 @@ "node": ">=8" } }, - "node_modules/minipass-sized/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "license": "ISC" - }, "node_modules/minizlib": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", @@ -9619,12 +9587,6 @@ "node": ">=8" } }, - "node_modules/minizlib/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "license": "ISC" - }, "node_modules/mkdirp": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", @@ -9824,13 +9786,6 @@ "dev": true, "license": "MIT" }, - "node_modules/natural-compare-lite": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", - "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", - "dev": true, - "license": "MIT" - }, "node_modules/negotiator": { "version": "0.6.3", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", @@ -9948,6 +9903,24 @@ "node": "^16.14.0 || >=18.0.0" } }, + "node_modules/normalize-package-data/node_modules/hosted-git-info": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-7.0.2.tgz", + "integrity": "sha512-puUZAUKT5m8Zzvs72XWy3HtvVbTWljRE66cP60bxJzAqf2DgICo7lYTY2IHUmLnNpjYvw5bvmoHvPc0QO2a62w==", + "license": "ISC", + "dependencies": { + "lru-cache": "^10.0.1" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/normalize-package-data/node_modules/lru-cache": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", + "license": "ISC" + }, "node_modules/normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", @@ -10029,6 +10002,24 @@ "node": "^16.14.0 || >=18.0.0" } }, + "node_modules/npm-package-arg/node_modules/hosted-git-info": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-7.0.2.tgz", + "integrity": "sha512-puUZAUKT5m8Zzvs72XWy3HtvVbTWljRE66cP60bxJzAqf2DgICo7lYTY2IHUmLnNpjYvw5bvmoHvPc0QO2a62w==", + "license": "ISC", + "dependencies": { + "lru-cache": "^10.0.1" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm-package-arg/node_modules/lru-cache": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", + "license": "ISC" + }, "node_modules/npm-packlist": { "version": "8.0.2", "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-8.0.2.tgz", @@ -12329,12 +12320,6 @@ "node": ">=8" } }, - "node_modules/tar/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "license": "ISC" - }, "node_modules/terser": { "version": "5.31.3", "resolved": "https://registry.npmjs.org/terser/-/terser-5.31.3.tgz", @@ -13395,6 +13380,28 @@ "xml-js": "bin/cli.js" } }, + "node_modules/xml2js": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.5.0.tgz", + "integrity": "sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==", + "license": "MIT", + "dependencies": { + "sax": ">=0.6.0", + "xmlbuilder": "~11.0.0" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/xml2js/node_modules/xmlbuilder": { + "version": "11.0.1", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz", + "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==", + "license": "MIT", + "engines": { + "node": ">=4.0" + } + }, "node_modules/xmlbuilder": { "version": "15.0.0", "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-15.0.0.tgz", @@ -13415,10 +13422,9 @@ } }, "node_modules/yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", - "dev": true, + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", "license": "ISC" }, "node_modules/yamljs": { @@ -13594,28 +13600,6 @@ "@zowe/imperative": "^8.0.0-next" } }, - "packages/sdk/node_modules/xml2js": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.5.0.tgz", - "integrity": "sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==", - "license": "MIT", - "dependencies": { - "sax": ">=0.6.0", - "xmlbuilder": "~11.0.0" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "packages/sdk/node_modules/xmlbuilder": { - "version": "11.0.1", - "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz", - "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==", - "license": "MIT", - "engines": { - "node": ">=4.0" - } - }, "packages/vsce": { "name": "cics-extension-for-zowe", "version": "3.0.0-next.202403011419", diff --git a/package.json b/package.json index 6fbdee49..288439bf 100644 --- a/package.json +++ b/package.json @@ -28,19 +28,19 @@ "@types/uuid": "^9.0.1", "@types/xml2js": "^0.4.4", "@types/yargs": "^17.0.24", - "@typescript-eslint/eslint-plugin": "^5.57.1", - "@typescript-eslint/parser": "^5.57.1", + "@typescript-eslint/eslint-plugin": "^7.0.0", + "@typescript-eslint/parser": "^7.0.0", "@zowe/cli-test-utils": "^8.0.0-next.202402021649", "@zowe/imperative": "^8.0.0-next.202407311544", "@zowe/zowe-explorer-api": "^3.0.0-next", "chalk": "^4.1.2", - "eslint": "^8.37.0", + "eslint": "^8.0.0", "eslint-config-prettier": "^8.6.0", "eslint-plugin-deprecation": "^2.0.0", - "eslint-plugin-jest": "^27.2.1", + "eslint-plugin-jest": "^28.0.0", "eslint-plugin-license-header": "^0.6.0", "eslint-plugin-prettier": "^4.2.1", - "eslint-plugin-unused-imports": "^2.0.0", + "eslint-plugin-unused-imports": "^3.0.0", "glob": "^10.2.2", "husky": "^8.0.3", "jest": "^29.5.0", diff --git a/packages/sdk/src/methods/enable/Enable.ts b/packages/sdk/src/methods/enable/Enable.ts index 1369316b..bd9710ed 100644 --- a/packages/sdk/src/methods/enable/Enable.ts +++ b/packages/sdk/src/methods/enable/Enable.ts @@ -89,7 +89,7 @@ export async function enableTransaction(session: AbstractSession, parms: IBasePa parms.name + ")"; - return await CicsCmciRestClient.putExpectParsedXml(session, cmciResource, [], requestBody); + return CicsCmciRestClient.putExpectParsedXml(session, cmciResource, [], requestBody); } /** @@ -128,7 +128,7 @@ export async function enableProgram(session: AbstractSession, parms: IProgramPar parms.name + ")"; - return await CicsCmciRestClient.putExpectParsedXml(session, cmciResource, [], requestBody); + return CicsCmciRestClient.putExpectParsedXml(session, cmciResource, [], requestBody); } /** @@ -167,5 +167,5 @@ export async function enableLocalFile(session: AbstractSession, parms: IBaseParm parms.name + ")"; - return await CicsCmciRestClient.putExpectParsedXml(session, cmciResource, [], requestBody); + return CicsCmciRestClient.putExpectParsedXml(session, cmciResource, [], requestBody); } diff --git a/packages/vsce/src/commands/closeLocalFileCommand.ts b/packages/vsce/src/commands/closeLocalFileCommand.ts index 1e613013..3265af02 100644 --- a/packages/vsce/src/commands/closeLocalFileCommand.ts +++ b/packages/vsce/src/commands/closeLocalFileCommand.ts @@ -11,7 +11,7 @@ import { CicsCmciConstants, CicsCmciRestClient, ICMCIApiResponse } from "@zowe/cics-for-zowe-sdk"; import { imperative } from "@zowe/zowe-explorer-api"; -import { commands, ProgressLocation, TreeView, window } from "vscode"; +import { commands, ProgressLocation, TreeItemCollapsibleState, TreeView, window } from "vscode"; import { CICSRegionTree } from "../trees/CICSRegionTree"; import { CICSTree } from "../trees/CICSTree"; import * as https from "https"; @@ -70,9 +70,9 @@ export function getCloseLocalFileCommand(tree: CICSTree, treeview: TreeView } } catch (error) { https.globalAgent.options.rejectUnauthorized = undefined; - // @ts-ignore + // @ts-expect-error if (error.mMessage) { - // @ts-ignore + // @ts-expect-error const [_, resp2, respAlt, eibfnAlt] = splitCmciErrorMessage(error.mMessage); window.showErrorMessage( @@ -94,7 +94,7 @@ export function getCloseLocalFileCommand(tree: CICSTree, treeview: TreeView try { const localFileTree = parentRegion.children.filter((child: any) => child.contextValue.includes("cicstreelocalfile."))[0]; // Only load contents if the tree is expanded - if (localFileTree.collapsibleState === 2) { + if (localFileTree.collapsibleState === TreeItemCollapsibleState.Expanded) { await localFileTree.loadContents(); } // if node is in a plex and the plex contains the region container tree @@ -102,7 +102,7 @@ export function getCloseLocalFileCommand(tree: CICSTree, treeview: TreeView const allLocalFileTreeTree = parentRegion.parentPlex.children.filter((child: any) => child.contextValue.includes("cicscombinedlocalfiletree.") )[0] as CICSCombinedLocalFileTree; - if (allLocalFileTreeTree.collapsibleState === 2 && allLocalFileTreeTree.getActiveFilter()) { + if (allLocalFileTreeTree.collapsibleState === TreeItemCollapsibleState.Expanded && allLocalFileTreeTree.getActiveFilter()) { await allLocalFileTreeTree.loadContents(tree); } } diff --git a/packages/vsce/src/commands/disableCommands/disableLocalFileCommand.ts b/packages/vsce/src/commands/disableCommands/disableLocalFileCommand.ts index 21ce7aa6..dbd44e92 100644 --- a/packages/vsce/src/commands/disableCommands/disableLocalFileCommand.ts +++ b/packages/vsce/src/commands/disableCommands/disableLocalFileCommand.ts @@ -11,7 +11,7 @@ import { CicsCmciConstants, CicsCmciRestClient, ICMCIApiResponse } from "@zowe/cics-for-zowe-sdk"; import { imperative } from "@zowe/zowe-explorer-api"; -import { commands, ProgressLocation, TreeView, window } from "vscode"; +import { commands, ProgressLocation, TreeItemCollapsibleState, TreeView, window } from "vscode"; import { CICSRegionTree } from "../../trees/CICSRegionTree"; import { CICSTree } from "../../trees/CICSTree"; import * as https from "https"; @@ -82,7 +82,7 @@ export function getDisableLocalFileCommand(tree: CICSTree, treeview: TreeView child.contextValue.includes("cicstreelocalfile."))[0]; // Only load contents if the tree is expanded - if (localFileTree.collapsibleState === 2) { + if (localFileTree.collapsibleState === TreeItemCollapsibleState.Expanded) { await localFileTree.loadContents(); } // if node is in a plex and the plex contains the region container tree @@ -90,7 +90,7 @@ export function getDisableLocalFileCommand(tree: CICSTree, treeview: TreeView child.contextValue.includes("cicscombinedlocalfiletree.") )[0] as CICSCombinedLocalFileTree; - if (allLocalFileTreeTree.collapsibleState === 2 && allLocalFileTreeTree.getActiveFilter()) { + if (allLocalFileTreeTree.collapsibleState === TreeItemCollapsibleState.Expanded && allLocalFileTreeTree.getActiveFilter()) { await allLocalFileTreeTree.loadContents(tree); } } diff --git a/packages/vsce/src/commands/disableCommands/disableProgramCommand.ts b/packages/vsce/src/commands/disableCommands/disableProgramCommand.ts index 6f961e9a..f35a6f75 100644 --- a/packages/vsce/src/commands/disableCommands/disableProgramCommand.ts +++ b/packages/vsce/src/commands/disableCommands/disableProgramCommand.ts @@ -11,7 +11,7 @@ import { CicsCmciConstants, CicsCmciRestClient, ICMCIApiResponse } from "@zowe/cics-for-zowe-sdk"; import { imperative } from "@zowe/zowe-explorer-api"; -import { commands, ProgressLocation, TreeView, window } from "vscode"; +import { commands, ProgressLocation, TreeItemCollapsibleState, TreeView, window } from "vscode"; import { CICSRegionTree } from "../../trees/CICSRegionTree"; import { CICSTree } from "../../trees/CICSTree"; import * as https from "https"; @@ -64,7 +64,7 @@ export function getDisableProgramCommand(tree: CICSTree, treeview: TreeView } } catch (error) { https.globalAgent.options.rejectUnauthorized = undefined; - // @ts-ignore + // @ts-expect-error window.showErrorMessage( `Something went wrong when performing a disable - ${JSON.stringify(error, Object.getOwnPropertyNames(error)).replace( /(\\n\t|\\n|\\t)/gm, @@ -78,7 +78,7 @@ export function getDisableProgramCommand(tree: CICSTree, treeview: TreeView try { const programTree = parentRegion.children.filter((child: any) => child.contextValue.includes("cicstreeprogram."))[0]; // Only load contents if the tree is expanded - if (programTree.collapsibleState === 2) { + if (programTree.collapsibleState === TreeItemCollapsibleState.Expanded) { await programTree.loadContents(); } // if node is in a plex and the plex contains the region container tree @@ -86,7 +86,7 @@ export function getDisableProgramCommand(tree: CICSTree, treeview: TreeView const allProgramsTree = parentRegion.parentPlex.children.filter((child: any) => child.contextValue.includes("cicscombinedprogramtree.") )[0] as CICSCombinedProgramTree; - if (allProgramsTree.collapsibleState === 2 && allProgramsTree.getActiveFilter()) { + if (allProgramsTree.collapsibleState === TreeItemCollapsibleState.Expanded && allProgramsTree.getActiveFilter()) { await allProgramsTree.loadContents(tree); } } diff --git a/packages/vsce/src/commands/disableCommands/disableTransactionCommand.ts b/packages/vsce/src/commands/disableCommands/disableTransactionCommand.ts index 3a1ffa1f..a65be7b3 100644 --- a/packages/vsce/src/commands/disableCommands/disableTransactionCommand.ts +++ b/packages/vsce/src/commands/disableCommands/disableTransactionCommand.ts @@ -11,7 +11,7 @@ import { CicsCmciConstants, CicsCmciRestClient, ICMCIApiResponse } from "@zowe/cics-for-zowe-sdk"; import { imperative } from "@zowe/zowe-explorer-api"; -import { commands, ProgressLocation, TreeView, window } from "vscode"; +import { commands, ProgressLocation, TreeItemCollapsibleState, TreeView, window } from "vscode"; import { CICSRegionTree } from "../../trees/CICSRegionTree"; import { CICSTree } from "../../trees/CICSTree"; import * as https from "https"; @@ -59,9 +59,9 @@ export function getDisableTransactionCommand(tree: CICSTree, treeview: TreeView< } } catch (error) { https.globalAgent.options.rejectUnauthorized = undefined; - // @ts-ignore + // @ts-expect-error if (error.mMessage) { - // @ts-ignore + // @ts-expect-error const [_, resp2, respAlt, eibfnAlt] = splitCmciErrorMessage(error.mMessage); window.showErrorMessage( `Perform DISABLE on Transaction "${ @@ -83,7 +83,7 @@ export function getDisableTransactionCommand(tree: CICSTree, treeview: TreeView< try { const transactionTree = parentRegion.children.filter((child: any) => child.contextValue.includes("cicstreetransaction."))[0]; // Only load contents if the tree is expanded - if (transactionTree.collapsibleState === 2) { + if (transactionTree.collapsibleState === TreeItemCollapsibleState.Expanded) { await transactionTree.loadContents(); } // if node is in a plex and the plex contains the region container tree @@ -91,7 +91,7 @@ export function getDisableTransactionCommand(tree: CICSTree, treeview: TreeView< const allTransactionTree = parentRegion.parentPlex.children.filter((child: any) => child.contextValue.includes("cicscombinedtransactiontree.") )[0] as CICSCombinedTransactionsTree; - if (allTransactionTree.collapsibleState === 2 && allTransactionTree.getActiveFilter()) { + if (allTransactionTree.collapsibleState === TreeItemCollapsibleState.Expanded && allTransactionTree.getActiveFilter()) { await allTransactionTree.loadContents(tree); } } diff --git a/packages/vsce/src/commands/enableCommands/enableLocalFileCommand.ts b/packages/vsce/src/commands/enableCommands/enableLocalFileCommand.ts index 6ed62ff0..2906cd40 100644 --- a/packages/vsce/src/commands/enableCommands/enableLocalFileCommand.ts +++ b/packages/vsce/src/commands/enableCommands/enableLocalFileCommand.ts @@ -9,7 +9,7 @@ * */ -import { commands, ProgressLocation, TreeView, window } from "vscode"; +import { commands, ProgressLocation, TreeItemCollapsibleState, TreeView, window } from "vscode"; import { CICSRegionTree } from "../../trees/CICSRegionTree"; import { CICSTree } from "../../trees/CICSTree"; import * as https from "https"; @@ -71,7 +71,7 @@ export function getEnableLocalFileCommand(tree: CICSTree, treeview: TreeView child.contextValue.includes("cicstreelocalfile."))[0]; // Only load contents if the tree is expanded - if (localFileTree.collapsibleState === 2) { + if (localFileTree.collapsibleState === TreeItemCollapsibleState.Expanded) { await localFileTree.loadContents(); } // if node is in a plex and the plex contains the region container tree @@ -79,7 +79,7 @@ export function getEnableLocalFileCommand(tree: CICSTree, treeview: TreeView child.contextValue.includes("cicscombinedlocalfiletree.") )[0] as CICSCombinedLocalFileTree; - if (allLocalFileTreeTree.collapsibleState === 2 && allLocalFileTreeTree.getActiveFilter()) { + if (allLocalFileTreeTree.collapsibleState === TreeItemCollapsibleState.Expanded && allLocalFileTreeTree.getActiveFilter()) { await allLocalFileTreeTree.loadContents(tree); } } diff --git a/packages/vsce/src/commands/enableCommands/enableProgramCommand.ts b/packages/vsce/src/commands/enableCommands/enableProgramCommand.ts index 8b9a3b3d..53239637 100644 --- a/packages/vsce/src/commands/enableCommands/enableProgramCommand.ts +++ b/packages/vsce/src/commands/enableCommands/enableProgramCommand.ts @@ -9,7 +9,7 @@ * */ -import { commands, ProgressLocation, TreeView, window } from "vscode"; +import { commands, ProgressLocation, TreeItemCollapsibleState, TreeView, window } from "vscode"; import { CICSRegionTree } from "../../trees/CICSRegionTree"; import { CICSTree } from "../../trees/CICSTree"; import * as https from "https"; @@ -76,7 +76,7 @@ export function getEnableProgramCommand(tree: CICSTree, treeview: TreeView) try { const programTree = parentRegion.children.filter((child: any) => child.contextValue.includes("cicstreeprogram."))[0]; // Only load contents if the tree is expanded - if (programTree.collapsibleState === 2) { + if (programTree.collapsibleState === TreeItemCollapsibleState.Expanded) { await programTree.loadContents(); } // if node is in a plex and the plex contains the region container tree @@ -84,7 +84,7 @@ export function getEnableProgramCommand(tree: CICSTree, treeview: TreeView) const allProgramsTree = parentRegion.parentPlex.children.filter((child: any) => child.contextValue.includes("cicscombinedprogramtree.") )[0] as CICSCombinedProgramTree; - if (allProgramsTree.collapsibleState === 2 && allProgramsTree.getActiveFilter()) { + if (allProgramsTree.collapsibleState === TreeItemCollapsibleState.Expanded && allProgramsTree.getActiveFilter()) { await allProgramsTree.loadContents(tree); } } diff --git a/packages/vsce/src/commands/enableCommands/enableTransactionCommand.ts b/packages/vsce/src/commands/enableCommands/enableTransactionCommand.ts index 5bcfc6b9..a38270eb 100644 --- a/packages/vsce/src/commands/enableCommands/enableTransactionCommand.ts +++ b/packages/vsce/src/commands/enableCommands/enableTransactionCommand.ts @@ -9,7 +9,7 @@ * */ -import { commands, ProgressLocation, TreeView, window } from "vscode"; +import { commands, ProgressLocation, TreeItemCollapsibleState, TreeView, window } from "vscode"; import { CICSRegionTree } from "../../trees/CICSRegionTree"; import { CICSTree } from "../../trees/CICSTree"; import * as https from "https"; @@ -71,7 +71,7 @@ export function getEnableTransactionCommand(tree: CICSTree, treeview: TreeView child.contextValue.includes("cicstreetransaction."))[0]; // Only load contents if the tree is expanded - if (transactionTree.collapsibleState === 2) { + if (transactionTree.collapsibleState === TreeItemCollapsibleState.Expanded) { await transactionTree.loadContents(); } // if node is in a plex and the plex contains the region container tree @@ -79,7 +79,7 @@ export function getEnableTransactionCommand(tree: CICSTree, treeview: TreeView child.contextValue.includes("cicscombinedtransactiontree.") )[0] as CICSCombinedTransactionsTree; - if (allTransactionTree.collapsibleState === 2 && allTransactionTree.getActiveFilter()) { + if (allTransactionTree.collapsibleState === TreeItemCollapsibleState.Expanded && allTransactionTree.getActiveFilter()) { await allTransactionTree.loadContents(tree); } } diff --git a/packages/vsce/src/commands/inquireProgram.ts b/packages/vsce/src/commands/inquireProgram.ts index 680972ee..1b6b34f3 100644 --- a/packages/vsce/src/commands/inquireProgram.ts +++ b/packages/vsce/src/commands/inquireProgram.ts @@ -33,9 +33,9 @@ export function getInquireProgramCommand(tree: CICSTree, treeview: TreeView if (allSelectedNodes[0].getParent() instanceof CICSCombinedTransactionsTree) { const cicsPlex: CICSPlexTree = allSelectedNodes[0].getParent().getParent(); const regionsContainer = cicsPlex.getChildren().filter((child) => child instanceof CICSRegionsContainer)[0]; - //@ts-ignore + //@ts-expect-error const regionTree: CICSRegionTree = regionsContainer - .getChildren()! + .getChildren() .filter((region: CICSRegionTree) => region.getRegionName() === allSelectedNodes[0].parentRegion.getRegionName())[0]; resourceFolders = regionTree.getChildren()!; } else { diff --git a/packages/vsce/src/commands/inquireTransaction.ts b/packages/vsce/src/commands/inquireTransaction.ts index 7bf0fc6a..d19afb7d 100644 --- a/packages/vsce/src/commands/inquireTransaction.ts +++ b/packages/vsce/src/commands/inquireTransaction.ts @@ -33,9 +33,9 @@ export function getInquireTransactionCommand(tree: CICSTree, treeview: TreeView< if (allSelectedNodes[0].getParent() instanceof CICSCombinedTaskTree) { const cicsPlex: CICSPlexTree = allSelectedNodes[0].getParent().getParent(); const regionsContainer = cicsPlex.getChildren().filter((child) => child instanceof CICSRegionsContainer)[0]; - //@ts-ignore + //@ts-expect-error const regionTree: CICSRegionTree = regionsContainer - .getChildren()! + .getChildren() .filter((region: CICSRegionTree) => region.getRegionName() === allSelectedNodes[0].parentRegion.getRegionName())[0]; resourceFolders = regionTree.getChildren()!; } else { diff --git a/packages/vsce/src/commands/newCopyCommand.ts b/packages/vsce/src/commands/newCopyCommand.ts index e0482650..affb717d 100644 --- a/packages/vsce/src/commands/newCopyCommand.ts +++ b/packages/vsce/src/commands/newCopyCommand.ts @@ -10,7 +10,7 @@ */ import { programNewcopy } from "@zowe/cics-for-zowe-sdk"; -import { commands, ProgressLocation, TreeView, window } from "vscode"; +import { commands, ProgressLocation, TreeItemCollapsibleState, TreeView, window } from "vscode"; import { CICSRegionTree } from "../trees/CICSRegionTree"; import { CICSTree } from "../trees/CICSTree"; import * as https from "https"; @@ -64,9 +64,9 @@ export function getNewCopyCommand(tree: CICSTree, treeview: TreeView) { } catch (error) { // CMCI new copy error https.globalAgent.options.rejectUnauthorized = undefined; - // @ts-ignore + // @ts-expect-error if (error.mMessage) { - // @ts-ignore + // @ts-expect-error const [_, resp2, respAlt, eibfnAlt] = splitCmciErrorMessage(error.mMessage); window.showErrorMessage( `Perform NEWCOPY on Program "${ @@ -88,7 +88,7 @@ export function getNewCopyCommand(tree: CICSTree, treeview: TreeView) { try { const programTree = parentRegion.children.filter((child: any) => child.contextValue.includes("cicstreeprogram."))[0]; // Only load contents if the tree is expanded - if (programTree.collapsibleState === 2) { + if (programTree.collapsibleState === TreeItemCollapsibleState.Expanded) { await programTree.loadContents(); } // if node is in a plex and the plex contains the region container tree @@ -96,7 +96,7 @@ export function getNewCopyCommand(tree: CICSTree, treeview: TreeView) { const allProgramsTree = parentRegion.parentPlex.children.filter((child: any) => child.contextValue.includes("cicscombinedprogramtree.") )[0] as CICSCombinedProgramTree; - if (allProgramsTree.collapsibleState === 2 && allProgramsTree.getActiveFilter()) { + if (allProgramsTree.collapsibleState === TreeItemCollapsibleState.Expanded && allProgramsTree.getActiveFilter()) { await allProgramsTree.loadContents(tree); } } diff --git a/packages/vsce/src/commands/openLocalFileCommand.ts b/packages/vsce/src/commands/openLocalFileCommand.ts index 6abdbabe..01c3e55c 100644 --- a/packages/vsce/src/commands/openLocalFileCommand.ts +++ b/packages/vsce/src/commands/openLocalFileCommand.ts @@ -11,7 +11,7 @@ import { CicsCmciConstants, CicsCmciRestClient, ICMCIApiResponse } from "@zowe/cics-for-zowe-sdk"; import { imperative } from "@zowe/zowe-explorer-api"; -import { commands, ProgressLocation, TreeView, window } from "vscode"; +import { commands, ProgressLocation, TreeItemCollapsibleState, TreeView, window } from "vscode"; import { CICSRegionTree } from "../trees/CICSRegionTree"; import { CICSTree } from "../trees/CICSTree"; import * as https from "https"; @@ -59,9 +59,9 @@ export function getOpenLocalFileCommand(tree: CICSTree, treeview: TreeView) } } catch (error) { https.globalAgent.options.rejectUnauthorized = undefined; - // @ts-ignore + // @ts-expect-error if (error.mMessage) { - // @ts-ignore + // @ts-expect-error const [_, resp2, respAlt, eibfnAlt] = splitCmciErrorMessage(error.mMessage); window.showErrorMessage( `Perform OPEN on local file "${ @@ -82,7 +82,7 @@ export function getOpenLocalFileCommand(tree: CICSTree, treeview: TreeView) try { const localFileTree = parentRegion.children.filter((child: any) => child.contextValue.includes("cicstreelocalfile."))[0]; // Only load contents if the tree is expanded - if (localFileTree.collapsibleState === 2) { + if (localFileTree.collapsibleState === TreeItemCollapsibleState.Expanded) { await localFileTree.loadContents(); } // if node is in a plex and the plex contains the region container tree @@ -90,7 +90,7 @@ export function getOpenLocalFileCommand(tree: CICSTree, treeview: TreeView) const allLocalFileTreeTree = parentRegion.parentPlex.children.filter((child: any) => child.contextValue.includes("cicscombinedlocalfiletree.") )[0] as CICSCombinedLocalFileTree; - if (allLocalFileTreeTree.collapsibleState === 2 && allLocalFileTreeTree.getActiveFilter()) { + if (allLocalFileTreeTree.collapsibleState === TreeItemCollapsibleState.Expanded && allLocalFileTreeTree.getActiveFilter()) { await allLocalFileTreeTree.loadContents(tree); } } diff --git a/packages/vsce/src/commands/phaseInCommand.ts b/packages/vsce/src/commands/phaseInCommand.ts index b77d1073..49cbe806 100644 --- a/packages/vsce/src/commands/phaseInCommand.ts +++ b/packages/vsce/src/commands/phaseInCommand.ts @@ -11,7 +11,7 @@ import { CicsCmciConstants, CicsCmciRestClient } from "@zowe/cics-for-zowe-sdk"; import { imperative } from "@zowe/zowe-explorer-api"; -import { commands, ProgressLocation, TreeView, window } from "vscode"; +import { commands, ProgressLocation, TreeItemCollapsibleState, TreeView, window } from "vscode"; import { CICSRegionTree } from "../trees/CICSRegionTree"; import { CICSTree } from "../trees/CICSTree"; import * as https from "https"; @@ -65,9 +65,9 @@ export function getPhaseInCommand(tree: CICSTree, treeview: TreeView) { } } catch (error) { https.globalAgent.options.rejectUnauthorized = undefined; - // @ts-ignore + // @ts-expect-error if (error.mMessage) { - // @ts-ignore + // @ts-expect-error const [_, resp2, respAlt, eibfnAlt] = splitCmciErrorMessage(error.mMessage); window.showErrorMessage( `Perform PHASEIN on Program "${ @@ -89,7 +89,7 @@ export function getPhaseInCommand(tree: CICSTree, treeview: TreeView) { try { const programTree = parentRegion.children.filter((child: any) => child.contextValue.includes("cicstreeprogram."))[0]; // Only load contents if the tree is expanded - if (programTree.collapsibleState === 2) { + if (programTree.collapsibleState === TreeItemCollapsibleState.Expanded) { await programTree.loadContents(); } // if node is in a plex and the plex contains the region container tree @@ -97,7 +97,7 @@ export function getPhaseInCommand(tree: CICSTree, treeview: TreeView) { const allProgramsTree = parentRegion.parentPlex.children.filter((child: any) => child.contextValue.includes("cicscombinedprogramtree.") )[0] as CICSCombinedProgramTree; - if (allProgramsTree.collapsibleState === 2 && allProgramsTree.getActiveFilter()) { + if (allProgramsTree.collapsibleState === TreeItemCollapsibleState.Expanded && allProgramsTree.getActiveFilter()) { await allProgramsTree.loadContents(tree); } } diff --git a/packages/vsce/src/commands/purgeTaskCommand.ts b/packages/vsce/src/commands/purgeTaskCommand.ts index 128782c1..6154e058 100644 --- a/packages/vsce/src/commands/purgeTaskCommand.ts +++ b/packages/vsce/src/commands/purgeTaskCommand.ts @@ -11,7 +11,7 @@ import { CicsCmciConstants, CicsCmciRestClient, ICMCIApiResponse } from "@zowe/cics-for-zowe-sdk"; import { imperative } from "@zowe/zowe-explorer-api"; -import { commands, ProgressLocation, TreeView, window } from "vscode"; +import { commands, ProgressLocation, TreeItemCollapsibleState, TreeView, window } from "vscode"; import { CICSRegionTree } from "../trees/CICSRegionTree"; import { CICSTree } from "../trees/CICSTree"; import * as https from "https"; @@ -73,9 +73,9 @@ export function getPurgeTaskCommand(tree: CICSTree, treeview: TreeView) { } } catch (error) { https.globalAgent.options.rejectUnauthorized = undefined; - // @ts-ignore + // @ts-expect-error if (error.mMessage) { - // @ts-ignore + // @ts-expect-error const [_, resp2, respAlt, eibfnAlt] = splitCmciErrorMessage(error.mMessage); window.showErrorMessage( `Perform ${purgeType?.toUpperCase()} on CICSTask "${ @@ -96,7 +96,7 @@ export function getPurgeTaskCommand(tree: CICSTree, treeview: TreeView) { try { const taskTree = parentRegion.children.filter((child: any) => child.contextValue.includes("cicstreetask."))[0]; // Only load contents if the tree is expanded - if (taskTree.collapsibleState === 2) { + if (taskTree.collapsibleState === TreeItemCollapsibleState.Expanded) { await taskTree.loadContents(); } // if node is in a plex and the plex contains the region container tree @@ -107,7 +107,7 @@ export function getPurgeTaskCommand(tree: CICSTree, treeview: TreeView) { child.contextValue.includes("cicscombinedlocalfiletree.") )[0] as CICSCombinedTaskTree; // If allTasksTree is open - if (allTaskTreeTree.collapsibleState === 2 && allTaskTreeTree.getActiveFilter()) { + if (allTaskTreeTree.collapsibleState === TreeItemCollapsibleState.Expanded && allTaskTreeTree.getActiveFilter()) { await allTaskTreeTree.loadContents(tree); } } diff --git a/packages/vsce/src/trees/CICSCombinedTrees/CICSCombinedLibraryTree.ts b/packages/vsce/src/trees/CICSCombinedTrees/CICSCombinedLibraryTree.ts index 0db67145..38b20485 100644 --- a/packages/vsce/src/trees/CICSCombinedTrees/CICSCombinedLibraryTree.ts +++ b/packages/vsce/src/trees/CICSCombinedTrees/CICSCombinedLibraryTree.ts @@ -119,7 +119,7 @@ export class CICSCombinedLibraryTree extends TreeItem { continue; } const parentRegion = regionsContainer - .getChildren()! + .getChildren() .filter((child) => child instanceof CICSRegionTree && child.getRegionName() === library.eyu_cicsname)?.[0] as CICSRegionTree; const libraryTree = new CICSLibraryTreeItem(library, parentRegion, this); libraryTree.setLabel(libraryTree.label.toString().replace(library.name, `${library.name} (${library.eyu_cicsname})`)); @@ -167,7 +167,7 @@ export class CICSCombinedLibraryTree extends TreeItem { this.incrementCount ); if (allLibraries) { - // @ts-ignore + // @ts-expect-error this.addLibrariesUtil( (this.getChildren()?.filter((child) => child instanceof CICSLibraryTreeItem) ?? []) as CICSLibraryTreeItem[], allLibraries, diff --git a/packages/vsce/src/trees/CICSCombinedTrees/CICSCombinedLocalFileTree.ts b/packages/vsce/src/trees/CICSCombinedTrees/CICSCombinedLocalFileTree.ts index aec577ab..16c6735b 100644 --- a/packages/vsce/src/trees/CICSCombinedTrees/CICSCombinedLocalFileTree.ts +++ b/packages/vsce/src/trees/CICSCombinedTrees/CICSCombinedLocalFileTree.ts @@ -119,7 +119,7 @@ export class CICSCombinedLocalFileTree extends TreeItem { continue; } const parentRegion = regionsContainer - .getChildren()! + .getChildren() .filter((child) => child instanceof CICSRegionTree && child.getRegionName() === localfile.eyu_cicsname)?.[0] as CICSRegionTree; const localFileTree = new CICSLocalFileTreeItem(localfile, parentRegion, this); localFileTree.setLabel(localFileTree.label.toString().replace(localfile.file, `${localfile.file} (${localfile.eyu_cicsname})`)); @@ -162,7 +162,7 @@ export class CICSCombinedLocalFileTree extends TreeItem { this.incrementCount ); if (allLocalFiles) { - // @ts-ignore + // @ts-expect-error this.addLocalFilesUtil( (this.getChildren()?.filter((child) => child instanceof CICSLocalFileTreeItem) ?? []) as CICSLocalFileTreeItem[], allLocalFiles, diff --git a/packages/vsce/src/trees/CICSCombinedTrees/CICSCombinedPipelineTree.ts b/packages/vsce/src/trees/CICSCombinedTrees/CICSCombinedPipelineTree.ts index 33a7ed14..cc115635 100644 --- a/packages/vsce/src/trees/CICSCombinedTrees/CICSCombinedPipelineTree.ts +++ b/packages/vsce/src/trees/CICSCombinedTrees/CICSCombinedPipelineTree.ts @@ -119,7 +119,7 @@ export class CICSCombinedPipelineTree extends TreeItem { continue; } const parentRegion = regionsContainer - .getChildren()! + .getChildren() .filter((child) => child instanceof CICSRegionTree && child.getRegionName() === pipeline.eyu_cicsname)?.[0] as CICSRegionTree; const pipelineTree = new CICSPipelineTreeItem(pipeline, parentRegion, this); pipelineTree.setLabel(pipelineTree.label.toString().replace(pipeline.name, `${pipeline.name} (${pipeline.eyu_cicsname})`)); @@ -167,7 +167,7 @@ export class CICSCombinedPipelineTree extends TreeItem { this.incrementCount ); if (allPipelines) { - // @ts-ignore + // @ts-expect-error this.addPipelinesUtil( (this.getChildren()?.filter((child) => child instanceof CICSPipelineTreeItem) ?? []) as CICSPipelineTreeItem[], allPipelines, diff --git a/packages/vsce/src/trees/CICSCombinedTrees/CICSCombinedProgramTree.ts b/packages/vsce/src/trees/CICSCombinedTrees/CICSCombinedProgramTree.ts index 5c46a64f..2cfab57a 100644 --- a/packages/vsce/src/trees/CICSCombinedTrees/CICSCombinedProgramTree.ts +++ b/packages/vsce/src/trees/CICSCombinedTrees/CICSCombinedProgramTree.ts @@ -121,7 +121,7 @@ export class CICSCombinedProgramTree extends TreeItem { continue; } const parentRegion = regionsContainer - .getChildren()! + .getChildren() .filter((child) => child instanceof CICSRegionTree && child.getRegionName() === program.eyu_cicsname)?.[0] as CICSRegionTree; const progamTree = new CICSProgramTreeItem(program, parentRegion, this); progamTree.setLabel(progamTree.label.toString().replace(program.program, `${program.program} (${program.eyu_cicsname})`)); @@ -169,7 +169,7 @@ export class CICSCombinedProgramTree extends TreeItem { this.incrementCount ); if (allPrograms) { - // @ts-ignore + // @ts-expect-error this.addProgramsUtil( (this.getChildren()?.filter((child) => child instanceof CICSProgramTreeItem) ?? []) as CICSProgramTreeItem[], allPrograms, diff --git a/packages/vsce/src/trees/CICSCombinedTrees/CICSCombinedTCPIPServiceTree.ts b/packages/vsce/src/trees/CICSCombinedTrees/CICSCombinedTCPIPServiceTree.ts index 39c9be4e..f408fc3b 100644 --- a/packages/vsce/src/trees/CICSCombinedTrees/CICSCombinedTCPIPServiceTree.ts +++ b/packages/vsce/src/trees/CICSCombinedTrees/CICSCombinedTCPIPServiceTree.ts @@ -120,7 +120,7 @@ export class CICSCombinedTCPIPServiceTree extends TreeItem { continue; } const parentRegion = regionsContainer - .getChildren()! + .getChildren() .filter((child) => child instanceof CICSRegionTree && child.getRegionName() === tcpips.eyu_cicsname)?.[0] as CICSRegionTree; const tcpipsTree = new CICSTCPIPServiceTreeItem(tcpips, parentRegion, this); tcpipsTree.setLabel( @@ -170,7 +170,7 @@ export class CICSCombinedTCPIPServiceTree extends TreeItem { this.incrementCount ); if (allTCPIPS) { - // @ts-ignore + // @ts-expect-error this.addTCPIPSUtil( (this.getChildren()?.filter((child) => child instanceof CICSTCPIPServiceTreeItem) ?? []) as CICSTCPIPServiceTreeItem[], allTCPIPS, diff --git a/packages/vsce/src/trees/CICSCombinedTrees/CICSCombinedTaskTree.ts b/packages/vsce/src/trees/CICSCombinedTrees/CICSCombinedTaskTree.ts index 27fe3979..279be9be 100644 --- a/packages/vsce/src/trees/CICSCombinedTrees/CICSCombinedTaskTree.ts +++ b/packages/vsce/src/trees/CICSCombinedTrees/CICSCombinedTaskTree.ts @@ -119,7 +119,7 @@ export class CICSCombinedTaskTree extends TreeItem { continue; } const parentRegion = regionsContainer - .getChildren()! + .getChildren() .filter((child) => child instanceof CICSRegionTree && child.getRegionName() === task.eyu_cicsname)?.[0] as CICSRegionTree; const taskTree = new CICSTaskTreeItem(task, parentRegion, this); // Show run status if run status isn't SUSPENDED (assuming SUSPENDED is default runstatus) @@ -167,7 +167,7 @@ export class CICSCombinedTaskTree extends TreeItem { this.incrementCount ); if (allTasks) { - // @ts-ignore + // @ts-expect-error this.addTasksUtil(this.getChildren() ? this.getChildren().filter((child) => child instanceof CICSTaskTreeItem) : [], allTasks, count); tree._onDidChangeTreeData.fire(undefined); } diff --git a/packages/vsce/src/trees/CICSCombinedTrees/CICSCombinedTransactionTree.ts b/packages/vsce/src/trees/CICSCombinedTrees/CICSCombinedTransactionTree.ts index 798350df..a5b7acd0 100644 --- a/packages/vsce/src/trees/CICSCombinedTrees/CICSCombinedTransactionTree.ts +++ b/packages/vsce/src/trees/CICSCombinedTrees/CICSCombinedTransactionTree.ts @@ -120,7 +120,7 @@ export class CICSCombinedTransactionsTree extends TreeItem { continue; } const parentRegion = regionsContainer - .getChildren()! + .getChildren() .filter((child) => child instanceof CICSRegionTree && child.getRegionName() === transaction.eyu_cicsname)?.[0] as CICSRegionTree; const transactionTree = new CICSTransactionTreeItem(transaction, parentRegion, this); transactionTree.setLabel(transactionTree.label.toString().replace(transaction.tranid, `${transaction.tranid} (${transaction.eyu_cicsname})`)); @@ -163,7 +163,7 @@ export class CICSCombinedTransactionsTree extends TreeItem { this.incrementCount ); if (allLocalTransactions) { - // @ts-ignore + // @ts-expect-error this.addLocalTransactionsUtil( (this.getChildren()?.filter((child) => child instanceof CICSTransactionTreeItem) ?? []) as CICSTransactionTreeItem[], allLocalTransactions, diff --git a/packages/vsce/src/trees/CICSCombinedTrees/CICSCombinedURIMapTree.ts b/packages/vsce/src/trees/CICSCombinedTrees/CICSCombinedURIMapTree.ts index e14a122d..180c44ad 100644 --- a/packages/vsce/src/trees/CICSCombinedTrees/CICSCombinedURIMapTree.ts +++ b/packages/vsce/src/trees/CICSCombinedTrees/CICSCombinedURIMapTree.ts @@ -120,7 +120,7 @@ export class CICSCombinedURIMapTree extends TreeItem { continue; } const parentRegion = regionsContainer - .getChildren()! + .getChildren() .filter((child) => child instanceof CICSRegionTree && child.getRegionName() === urimaps.eyu_cicsname)?.[0] as CICSRegionTree; const urimapsTree = new CICSURIMapTreeItem(urimaps, parentRegion, this); urimapsTree.setLabel( @@ -172,7 +172,7 @@ export class CICSCombinedURIMapTree extends TreeItem { this.incrementCount ); if (allURIMaps) { - // @ts-ignore + // @ts-expect-error this.addURIMapsUtil( (this.getChildren()?.filter((child) => child instanceof CICSURIMapTreeItem) ?? []) as CICSURIMapTreeItem[], allURIMaps, diff --git a/packages/vsce/src/trees/CICSCombinedTrees/CICSCombinedWebServiceTree.ts b/packages/vsce/src/trees/CICSCombinedTrees/CICSCombinedWebServiceTree.ts index 43b77a52..1ff4593e 100644 --- a/packages/vsce/src/trees/CICSCombinedTrees/CICSCombinedWebServiceTree.ts +++ b/packages/vsce/src/trees/CICSCombinedTrees/CICSCombinedWebServiceTree.ts @@ -120,7 +120,7 @@ export class CICSCombinedWebServiceTree extends TreeItem { continue; } const parentRegion = regionsContainer - .getChildren()! + .getChildren() .filter((child) => child instanceof CICSRegionTree && child.getRegionName() === webservice.eyu_cicsname)?.[0] as CICSRegionTree; const webserviceTree = new CICSWebServiceTreeItem(webservice, parentRegion, this); webserviceTree.setLabel(webserviceTree.label.toString().replace(webservice.name, `${webservice.name} (${webservice.eyu_cicsname})`)); @@ -168,7 +168,7 @@ export class CICSCombinedWebServiceTree extends TreeItem { this.incrementCount ); if (allWebServices) { - // @ts-ignore + // @ts-expect-error this.addWebServicesUtil( (this.getChildren()?.filter((child) => child instanceof CICSWebServiceTreeItem) ?? []) as CICSWebServiceTreeItem[], allWebServices, diff --git a/packages/vsce/src/trees/CICSLocalFileTree.ts b/packages/vsce/src/trees/CICSLocalFileTree.ts index 7f537da2..8d3c6b45 100644 --- a/packages/vsce/src/trees/CICSLocalFileTree.ts +++ b/packages/vsce/src/trees/CICSLocalFileTree.ts @@ -70,10 +70,10 @@ export class CICSLocalFileTree extends TreeItem { this.iconPath = getIconPathInResources("folder-open-dark.svg", "folder-open-light.svg"); } catch (error) { https.globalAgent.options.rejectUnauthorized = undefined; - // @ts-ignore + // @ts-expect-error if (error.mMessage!.includes("exceeded a resource limit")) { window.showErrorMessage(`Resource Limit Exceeded - Set a local file filter to narrow search`); - // @ts-ignore + // @ts-expect-error } else if (this.children.length === 0) { window.showInformationMessage(`No local files found`); this.label = `Local Files${this.activeFilter ? ` (${this.activeFilter}) ` : " "}[0]`; diff --git a/packages/vsce/src/trees/CICSTransactionTree.ts b/packages/vsce/src/trees/CICSTransactionTree.ts index ff57c006..616464f2 100644 --- a/packages/vsce/src/trees/CICSTransactionTree.ts +++ b/packages/vsce/src/trees/CICSTransactionTree.ts @@ -66,10 +66,10 @@ export class CICSTransactionTree extends TreeItem { this.iconPath = getIconPathInResources("folder-open-dark.svg", "folder-open-light.svg"); } catch (error) { https.globalAgent.options.rejectUnauthorized = undefined; - // @ts-ignore + // @ts-expect-error if (error.mMessage!.includes("exceeded a resource limit")) { window.showErrorMessage(`Resource Limit Exceeded - Set a transaction filter to narrow search`); - // @ts-ignore + // @ts-expect-error } else if (this.children.length === 0) { window.showInformationMessage(`No transactions found`); this.label = `Transactions${this.activeFilter ? ` (${this.activeFilter}) ` : " "}[0]`; diff --git a/packages/vsce/src/trees/CICSTree.ts b/packages/vsce/src/trees/CICSTree.ts index 24a52a89..8e382ba5 100644 --- a/packages/vsce/src/trees/CICSTree.ts +++ b/packages/vsce/src/trees/CICSTree.ts @@ -477,7 +477,7 @@ export class CICSTree implements TreeDataProvider { await ProfileManagement.profilesCacheRefresh(); await this.loadProfile(ProfileManagement.getProfilesCache().loadNamedProfile(message.name, "cics")); } catch (error) { - // @ts-ignore + // @ts-expect-error window.showErrorMessage(error); } } else { @@ -499,7 +499,7 @@ export class CICSTree implements TreeDataProvider { await this.loadProfile(ProfileManagement.getProfilesCache().loadNamedProfile(message.name, "cics")); } catch (error) { console.log(error); - // @ts-ignore + // @ts-expect-error window.showErrorMessage(error); } }); @@ -524,13 +524,13 @@ export class CICSTree implements TreeDataProvider { let answer; if (sessions.length === 1) { answer = await window.showInformationMessage( - `Are you sure you want to delete the profile "${sessions[0].label?.toString()!}"`, + `Are you sure you want to delete the profile "${sessions[0].label?.toString()}"`, ...["Yes", "No"] ); } else if (sessions.length > 1) { answer = await window.showInformationMessage( `Are you sure you want to delete the profiles "${sessions.map((sessionTree) => { - return sessionTree.label?.toString()!; + return sessionTree.label?.toString(); })}"`, ...["Yes", "No"] ); @@ -553,7 +553,7 @@ export class CICSTree implements TreeDataProvider { }); try { await ProfileManagement.deleteProfile({ - name: sessions[parseInt(index)].label?.toString()!, + name: sessions[parseInt(index)].label?.toString(), rejectIfDependency: true, }); const persistentStorage = new PersistentStorage("zowe.cics.persistent"); @@ -562,7 +562,7 @@ export class CICSTree implements TreeDataProvider { this.loadedProfiles = this.loadedProfiles.filter((profile) => profile !== sessions[parseInt(index)]); this._onDidChangeTreeData.fire(undefined); } catch (error) { - // @ts-ignore + // @ts-expect-error window.showErrorMessage(error); } } @@ -573,7 +573,7 @@ export class CICSTree implements TreeDataProvider { async updateSession(session: CICSSessionTree) { await ProfileManagement.profilesCacheRefresh(); - const profileToUpdate = await ProfileManagement.getProfilesCache().loadNamedProfile(session.label?.toString()!, "cics"); + const profileToUpdate = await ProfileManagement.getProfilesCache().loadNamedProfile(session.label?.toString(), "cics"); const message = { name: profileToUpdate.name, @@ -598,7 +598,7 @@ export class CICSTree implements TreeDataProvider { const updatedProfile = await ProfileManagement.getProfilesCache().loadNamedProfile(profile.profile.name, "cics"); await this.removeSession(session, updatedProfile, position); } catch (error) { - // @ts-ignore + // @ts-expect-error window.showErrorMessage(error); } }); @@ -615,6 +615,6 @@ export class CICSTree implements TreeDataProvider { element.getParent(); } - public _onDidChangeTreeData: EventEmitter = new EventEmitter(); - readonly onDidChangeTreeData: Event = this._onDidChangeTreeData.event; + public _onDidChangeTreeData: EventEmitter = new EventEmitter(); + readonly onDidChangeTreeData: Event = this._onDidChangeTreeData.event; } diff --git a/packages/vsce/src/utils/expansionHandler.ts b/packages/vsce/src/utils/expansionHandler.ts index b9a71bde..8aa9ec84 100644 --- a/packages/vsce/src/utils/expansionHandler.ts +++ b/packages/vsce/src/utils/expansionHandler.ts @@ -17,7 +17,7 @@ import { CICSTree } from "../trees/CICSTree"; import { ProfileManagement } from "./profileManagement"; export async function sessionExpansionHandler(session: CICSSessionTree, tree: CICSTree) { - const profile = await ProfileManagement.getProfilesCache().getLoadedProfConfig(session.label?.toString()!); + const profile = await ProfileManagement.getProfilesCache().getLoadedProfConfig(session.label?.toString()); if (profile == null) { throw new Error("sessionExpansionHandler: Profile is not defined"); }