From 0c917088683630bc9fc8239aafddddadb2d4ecd2 Mon Sep 17 00:00:00 2001 From: Abhi Markan Date: Mon, 9 Dec 2024 08:52:05 +0000 Subject: [PATCH 1/6] chore(deps): dependencies updates --- package-lock.json | 328 +++++++++++++++++++++------------------------- package.json | 10 +- 2 files changed, 158 insertions(+), 180 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9ae2f005..975502bc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -55,8 +55,8 @@ "@types/lodash": "^4.17.13", "@types/node": "^22.10.1", "@types/supertest": "^6.0.2", - "@typescript-eslint/eslint-plugin": "^6.21.0", - "@typescript-eslint/parser": "^6.21.0", + "@typescript-eslint/eslint-plugin": "^8.17.0", + "@typescript-eslint/parser": "^8.17.0", "chance": "^1.1.12", "cspell": "^8.16.1", "eslint": "^8.57.1", @@ -76,7 +76,7 @@ "eslint-plugin-security": "^3.0.1", "eslint-plugin-simple-import-sort": "^12.1.1", "eslint-plugin-switch-case": "^1.1.2", - "eslint-plugin-unused-imports": "^3.2.0", + "eslint-plugin-unused-imports": "^4.1.4", "husky": "^9.1.7", "jest": "29.7.0", "jest-when": "^3.7.0", @@ -1752,9 +1752,9 @@ "license": "MIT" }, "node_modules/@cspell/dict-npm": { - "version": "5.1.14", - "resolved": "https://registry.npmjs.org/@cspell/dict-npm/-/dict-npm-5.1.14.tgz", - "integrity": "sha512-7VV/rrRlxOwy5j0bpw6/Uci+nx/rwSgx45FJdeKq++nHsBx/nEXMFNODknm4Mi6i7t7uOVHExpifrR6w6xTWww==", + "version": "5.1.15", + "resolved": "https://registry.npmjs.org/@cspell/dict-npm/-/dict-npm-5.1.15.tgz", + "integrity": "sha512-95D3A8rs9SYlUQUkK48J0F1W3jOsc63dY/vlzuNHE4nuGU2OM4jtoWvLk0ovhBMHwZikaNNTHaHoJyr+VKu+Yg==", "dev": true, "license": "MIT" }, @@ -1780,9 +1780,9 @@ "license": "MIT" }, "node_modules/@cspell/dict-python": { - "version": "4.2.12", - "resolved": "https://registry.npmjs.org/@cspell/dict-python/-/dict-python-4.2.12.tgz", - "integrity": "sha512-U25eOFu+RE0aEcF2AsxZmq3Lic7y9zspJ9SzjrC0mfJz+yr3YmSCw4E0blMD3mZoNcf7H/vMshuKIY5AY36U+Q==", + "version": "4.2.13", + "resolved": "https://registry.npmjs.org/@cspell/dict-python/-/dict-python-4.2.13.tgz", + "integrity": "sha512-mZIcmo9qif8LkJ6N/lqTZawcOk2kVTcuWIUOSbMcjyomO0XZ7iWz15TfONyr03Ea/l7o5ULV+MZ4vx76bAUb7w==", "dev": true, "license": "MIT", "dependencies": { @@ -1818,9 +1818,9 @@ "license": "MIT" }, "node_modules/@cspell/dict-software-terms": { - "version": "4.1.17", - "resolved": "https://registry.npmjs.org/@cspell/dict-software-terms/-/dict-software-terms-4.1.17.tgz", - "integrity": "sha512-QORIk1R5DV8oOQ+oAlUWE7UomaJwUucqu2srrc2+PmkoI6R1fJwwg2uHCPBWlIb4PGDNEdXLv9BAD13H+0wytQ==", + "version": "4.1.18", + "resolved": "https://registry.npmjs.org/@cspell/dict-software-terms/-/dict-software-terms-4.1.18.tgz", + "integrity": "sha512-QhOQ3qVFr2Y+uDw2SH15klVNU2S07ecFhG+2gpTO/K4Kuaui3INbVrzHOKW41ofP3ghv9y2TkUUtOP5KfddP8A==", "dev": true, "license": "MIT" }, @@ -3934,34 +3934,32 @@ "license": "MIT" }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.21.0.tgz", - "integrity": "sha512-oy9+hTPCUFpngkEZUSzbf9MxI65wbKFoQYsgPdILTfbUldp5ovUuphZVe4i30emU9M/kP+T64Di0mxl7dSw3MA==", + "version": "8.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.17.0.tgz", + "integrity": "sha512-HU1KAdW3Tt8zQkdvNoIijfWDMvdSweFYm4hWh+KwhPstv+sCmWb89hCIP8msFm9N1R/ooh9honpSuvqKWlYy3w==", "dev": true, "license": "MIT", "dependencies": { - "@eslint-community/regexpp": "^4.5.1", - "@typescript-eslint/scope-manager": "6.21.0", - "@typescript-eslint/type-utils": "6.21.0", - "@typescript-eslint/utils": "6.21.0", - "@typescript-eslint/visitor-keys": "6.21.0", - "debug": "^4.3.4", + "@eslint-community/regexpp": "^4.10.0", + "@typescript-eslint/scope-manager": "8.17.0", + "@typescript-eslint/type-utils": "8.17.0", + "@typescript-eslint/utils": "8.17.0", + "@typescript-eslint/visitor-keys": "8.17.0", "graphemer": "^1.4.0", - "ignore": "^5.2.4", + "ignore": "^5.3.1", "natural-compare": "^1.4.0", - "semver": "^7.5.4", - "ts-api-utils": "^1.0.1" + "ts-api-utils": "^1.3.0" }, "engines": { - "node": "^16.0.0 || >=18.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^6.0.0 || ^6.0.0-alpha", - "eslint": "^7.0.0 || ^8.0.0" + "@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0", + "eslint": "^8.57.0 || ^9.0.0" }, "peerDependenciesMeta": { "typescript": { @@ -3970,27 +3968,27 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.21.0.tgz", - "integrity": "sha512-tbsV1jPne5CkFQCgPBcDOt30ItF7aJoZL997JSF7MhGQqOeT3svWRYxiqlfA5RUdlHN6Fi+EI9bxqbdyAUZjYQ==", + "version": "8.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.17.0.tgz", + "integrity": "sha512-Drp39TXuUlD49F7ilHHCG7TTg8IkA+hxCuULdmzWYICxGXvDXmDmWEjJYZQYgf6l/TFfYNE167m7isnc3xlIEg==", "dev": true, "license": "BSD-2-Clause", "dependencies": { - "@typescript-eslint/scope-manager": "6.21.0", - "@typescript-eslint/types": "6.21.0", - "@typescript-eslint/typescript-estree": "6.21.0", - "@typescript-eslint/visitor-keys": "6.21.0", + "@typescript-eslint/scope-manager": "8.17.0", + "@typescript-eslint/types": "8.17.0", + "@typescript-eslint/typescript-estree": "8.17.0", + "@typescript-eslint/visitor-keys": "8.17.0", "debug": "^4.3.4" }, "engines": { - "node": "^16.0.0 || >=18.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^7.0.0 || ^8.0.0" + "eslint": "^8.57.0 || ^9.0.0" }, "peerDependenciesMeta": { "typescript": { @@ -3999,17 +3997,17 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.21.0.tgz", - "integrity": "sha512-OwLUIWZJry80O99zvqXVEioyniJMa+d2GrqpUTqi5/v5D5rOrppJVBPa0yKCblcigC0/aYAzxxqQ1B+DS2RYsg==", + "version": "8.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.17.0.tgz", + "integrity": "sha512-/ewp4XjvnxaREtqsZjF4Mfn078RD/9GmiEAtTeLQ7yFdKnqwTOgRMSvFz4et9U5RiJQ15WTGXPLj89zGusvxBg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "6.21.0", - "@typescript-eslint/visitor-keys": "6.21.0" + "@typescript-eslint/types": "8.17.0", + "@typescript-eslint/visitor-keys": "8.17.0" }, "engines": { - "node": "^16.0.0 || >=18.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", @@ -4017,26 +4015,26 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.21.0.tgz", - "integrity": "sha512-rZQI7wHfao8qMX3Rd3xqeYSMCL3SoiSQLBATSiVKARdFGCYSRvmViieZjqc58jKgs8Y8i9YvVVhRbHSTA4VBag==", + "version": "8.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.17.0.tgz", + "integrity": "sha512-q38llWJYPd63rRnJ6wY/ZQqIzPrBCkPdpIsaCfkR3Q4t3p6sb422zougfad4TFW9+ElIFLVDzWGiGAfbb/v2qw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/typescript-estree": "6.21.0", - "@typescript-eslint/utils": "6.21.0", + "@typescript-eslint/typescript-estree": "8.17.0", + "@typescript-eslint/utils": "8.17.0", "debug": "^4.3.4", - "ts-api-utils": "^1.0.1" + "ts-api-utils": "^1.3.0" }, "engines": { - "node": "^16.0.0 || >=18.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^7.0.0 || ^8.0.0" + "eslint": "^8.57.0 || ^9.0.0" }, "peerDependenciesMeta": { "typescript": { @@ -4045,13 +4043,13 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.21.0.tgz", - "integrity": "sha512-1kFmZ1rOm5epu9NZEZm1kckCDGj5UJEf7P1kliH4LKu/RkwpsfqqGmY2OOcUs18lSlQBKLDYBOGxRVtrMN5lpg==", + "version": "8.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.17.0.tgz", + "integrity": "sha512-gY2TVzeve3z6crqh2Ic7Cr+CAv6pfb0Egee7J5UAVWCpVvDI/F71wNfolIim4FE6hT15EbpZFVUj9j5i38jYXA==", "dev": true, "license": "MIT", "engines": { - "node": "^16.0.0 || >=18.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", @@ -4059,23 +4057,23 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.21.0.tgz", - "integrity": "sha512-6npJTkZcO+y2/kr+z0hc4HwNfrrP4kNYh57ek7yCNlrBjWQ1Y0OS7jiZTkgumrvkX5HkEKXFZkkdFNkaW2wmUQ==", + "version": "8.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.17.0.tgz", + "integrity": "sha512-JqkOopc1nRKZpX+opvKqnM3XUlM7LpFMD0lYxTqOTKQfCWAmxw45e3qlOCsEqEB2yuacujivudOFpCnqkBDNMw==", "dev": true, "license": "BSD-2-Clause", "dependencies": { - "@typescript-eslint/types": "6.21.0", - "@typescript-eslint/visitor-keys": "6.21.0", + "@typescript-eslint/types": "8.17.0", + "@typescript-eslint/visitor-keys": "8.17.0", "debug": "^4.3.4", - "globby": "^11.1.0", + "fast-glob": "^3.3.2", "is-glob": "^4.0.3", - "minimatch": "9.0.3", - "semver": "^7.5.4", - "ts-api-utils": "^1.0.1" + "minimatch": "^9.0.4", + "semver": "^7.6.0", + "ts-api-utils": "^1.3.0" }, "engines": { - "node": "^16.0.0 || >=18.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", @@ -4088,53 +4086,68 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.21.0.tgz", - "integrity": "sha512-NfWVaC8HP9T8cbKQxHcsJBY5YE1O33+jpMwN45qzWWaPDZgLIbo12toGMWnmhvCpd3sIxkpDw3Wv1B3dYrbDQQ==", + "version": "8.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.17.0.tgz", + "integrity": "sha512-bQC8BnEkxqG8HBGKwG9wXlZqg37RKSMY7v/X8VEWD8JG2JuTHuNK0VFvMPMUKQcbk6B+tf05k+4AShAEtCtJ/w==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", - "@types/json-schema": "^7.0.12", - "@types/semver": "^7.5.0", - "@typescript-eslint/scope-manager": "6.21.0", - "@typescript-eslint/types": "6.21.0", - "@typescript-eslint/typescript-estree": "6.21.0", - "semver": "^7.5.4" + "@typescript-eslint/scope-manager": "8.17.0", + "@typescript-eslint/types": "8.17.0", + "@typescript-eslint/typescript-estree": "8.17.0" }, "engines": { - "node": "^16.0.0 || >=18.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^7.0.0 || ^8.0.0" + "eslint": "^8.57.0 || ^9.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.21.0.tgz", - "integrity": "sha512-JJtkDduxLi9bivAB+cYOVMtbkqdPOhZ+ZI5LC47MIRrDV4Yn2o+ZnW10Nkmr28xRpSpdJ6Sm42Hjf2+REYXm0A==", + "version": "8.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.17.0.tgz", + "integrity": "sha512-1Hm7THLpO6ww5QU6H/Qp+AusUUl+z/CAm3cNZZ0jQvon9yicgO7Rwd+/WWRpMKLYV6p2UvdbR27c86rzCPpreg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "6.21.0", - "eslint-visitor-keys": "^3.4.1" + "@typescript-eslint/types": "8.17.0", + "eslint-visitor-keys": "^4.2.0" }, "engines": { - "node": "^16.0.0 || >=18.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" } }, + "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", + "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, "node_modules/@ungap/structured-clone": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", - "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.1.tgz", + "integrity": "sha512-fEzPV3hSkSMltkw152tJKNARhOupqbH96MZWyRjNaYZOMIzbrTeQDG+MTc6Mr2pgzFQzFxAfmhGDNP5QK++2ZA==", "dev": true, "license": "ISC" }, @@ -4384,13 +4397,10 @@ } }, "node_modules/agent-base": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.1.tgz", - "integrity": "sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA==", + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.3.tgz", + "integrity": "sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw==", "license": "MIT", - "dependencies": { - "debug": "^4.3.4" - }, "engines": { "node": ">= 14" } @@ -5340,9 +5350,9 @@ } }, "node_modules/call-bind-apply-helpers": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.0.tgz", - "integrity": "sha512-CCKAP2tkPau7D3GE8+V8R6sQubA9R5foIzGp+85EXCVSCivuxBNAWqcpn72PKYiIcqoViv/kcUDpaEIMBVi1lQ==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.1.tgz", + "integrity": "sha512-BhYE+WDaywFg2TBWYNXAE+8B1ATnThNBqXHP5nQu0jWJdVvY2hvkpyB3qOmtmDePiS5/BDQ8wASEWGMWRG148g==", "license": "MIT", "dependencies": { "es-errors": "^1.3.0", @@ -6771,6 +6781,20 @@ "node": ">=12" } }, + "node_modules/dunder-proto": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.0.tgz", + "integrity": "sha512-9+Sj30DIu+4KvHqMfLUGLFYL2PkURSYMVXJyXe92nFRvlYq5hBjLEhblKB+vkd/WVlUYMWigiY07T91Fkk0+4A==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.0", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/eastasianwidth": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", @@ -6979,13 +7003,10 @@ } }, "node_modules/es-define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", - "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", "license": "MIT", - "dependencies": { - "get-intrinsic": "^1.2.4" - }, "engines": { "node": ">= 0.4" } @@ -7752,22 +7773,6 @@ "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/eslint-plugin-deprecation/node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/eslint-plugin-es": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/eslint-plugin-es/-/eslint-plugin-es-3.0.1.tgz", @@ -8289,20 +8294,14 @@ } }, "node_modules/eslint-plugin-unused-imports": { - "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==", + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/eslint-plugin-unused-imports/-/eslint-plugin-unused-imports-4.1.4.tgz", + "integrity": "sha512-YptD6IzQjDardkl0POxnnRBhU1OEePMV0nd6siHaRBbd+lyh6NAhFEobiznKU7kTsSsDeSD62Pe7kAM1b7dAZQ==", "dev": true, "license": "MIT", - "dependencies": { - "eslint-rule-composer": "^0.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, "peerDependencies": { - "@typescript-eslint/eslint-plugin": "6 - 7", - "eslint": "8" + "@typescript-eslint/eslint-plugin": "^8.0.0-0 || ^7.0.0 || ^6.0.0 || ^5.0.0", + "eslint": "^9.0.0 || ^8.0.0" }, "peerDependenciesMeta": { "@typescript-eslint/eslint-plugin": { @@ -8310,16 +8309,6 @@ } } }, - "node_modules/eslint-rule-composer": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/eslint-rule-composer/-/eslint-rule-composer-0.3.0.tgz", - "integrity": "sha512-bt+Sh8CtDmn2OajxvNO+BX7Wn4CIWMpTRm3MaiKPCQcnnlm0CS2mhui6QaoeQugs+3Kj2ESKEEGJUdVafwhiCg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4.0.0" - } - }, "node_modules/eslint-scope": { "version": "7.2.2", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", @@ -9428,16 +9417,19 @@ } }, "node_modules/get-intrinsic": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", - "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.5.tgz", + "integrity": "sha512-Y4+pKa7XeRUPWFNvOOYHkRYrfzW07oraURSvjDmRVOJ748OrVmeXtpE4+GCEHncjCjkTxPNRt8kEbxDhsn6VTg==", "license": "MIT", "dependencies": { + "call-bind-apply-helpers": "^1.0.0", + "dunder-proto": "^1.0.0", + "es-define-property": "^1.0.1", "es-errors": "^1.3.0", "function-bind": "^1.1.2", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "hasown": "^2.0.0" + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2" }, "engines": { "node": ">= 0.4" @@ -9580,21 +9572,6 @@ "dev": true, "license": "BSD-2-Clause" }, - "node_modules/glob/node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "license": "ISC", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/global-directory": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/global-directory/-/global-directory-4.0.1.tgz", @@ -9733,12 +9710,13 @@ } }, "node_modules/has-proto": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.1.0.tgz", - "integrity": "sha512-QLdzI9IIO1Jg7f9GT1gXpPpXArAn6cS31R1eEZqz08Gc+uQ8/XiqHWt17Fiw+2p6oTTIq5GXEpQkAlA88YRl/Q==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.2.0.tgz", + "integrity": "sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ==", + "dev": true, "license": "MIT", "dependencies": { - "call-bind": "^1.0.7" + "dunder-proto": "^1.0.0" }, "engines": { "node": ">= 0.4" @@ -9849,12 +9827,12 @@ } }, "node_modules/https-proxy-agent": { - "version": "7.0.5", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.5.tgz", - "integrity": "sha512-1e4Wqeblerz+tMKPIq2EMGiiWW1dIjZOksyHWSUm1rmuvw/how9hBHZ38lAGj5ID4Ik6EdkOw7NmWPy6LAwalw==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", + "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==", "license": "MIT", "dependencies": { - "agent-base": "^7.0.2", + "agent-base": "^7.1.2", "debug": "4" }, "engines": { @@ -13319,10 +13297,9 @@ } }, "node_modules/minimatch": { - "version": "9.0.3", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", - "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", - "dev": true, + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", "license": "ISC", "dependencies": { "brace-expansion": "^2.0.1" @@ -14756,19 +14733,20 @@ "license": "Apache-2.0" }, "node_modules/reflect.getprototypeof": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.7.tgz", - "integrity": "sha512-bMvFGIUKlc/eSfXNX+aZ+EL95/EgZzuwA0OBPTbZZDEJw/0AkentjMuM1oiRfwHrshqk4RzdgiTg5CcDalXN5g==", + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.8.tgz", + "integrity": "sha512-B5dj6usc5dkk8uFliwjwDHM8To5/QwdKz9JcBZ8Ic4G1f0YmeeJTtE/ZTdgRFPAfxZFiUaPhZ1Jcs4qeagItGQ==", "dev": true, "license": "MIT", "dependencies": { - "call-bind": "^1.0.7", + "call-bind": "^1.0.8", "define-properties": "^1.2.1", + "dunder-proto": "^1.0.0", "es-abstract": "^1.23.5", "es-errors": "^1.3.0", "get-intrinsic": "^1.2.4", - "gopd": "^1.0.1", - "which-builtin-type": "^1.1.4" + "gopd": "^1.2.0", + "which-builtin-type": "^1.2.0" }, "engines": { "node": ">= 0.4" diff --git a/package.json b/package.json index f0a55b5b..9f2b1979 100644 --- a/package.json +++ b/package.json @@ -6,20 +6,20 @@ "license": "MIT", "author": "UKEF", "scripts": { - "audit:fix": "npm audit --fix", "api-test": "jest --selectProjects=API", + "audit:fix": "npm audit --fix", "build": "nest build -p tsconfig.build.json", "housekeeping": "npm update --save --legacy-peer-deps && npm i --legacy-peer-deps && npm run type-check && npm run prettier:fix && npm run lint:fix && npm run validate:yml && npm run audit:fix && npm run spellcheck", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "prettier": "prettier --no-error-on-unmatched-pattern --check **/*.{ts,js}", "prettier:fix": "prettier --write **/*.{ts,js}", - "type-check": "tsc --noEmit --pretty", "spellcheck": "cspell lint --gitignore --no-must-find-files --unique --no-progress --show-suggestions --color '**/*'", "start": "nest start", "start:debug": "nest start --debug --watch", "start:dev": "nest start --tsc --watch", "start:prod": "node dist/src/main", + "type-check": "tsc --noEmit --pretty", "unit-test": "jest --selectProjects=Unit", "validate:all": "npm run lint:fix && npm run prettier:fix && npm run type-check && npm run validate:yml", "validate:yml": "npx yaml-lint **/*.yml --ignore=**/node_modules" @@ -87,8 +87,8 @@ "@types/lodash": "^4.17.13", "@types/node": "^22.10.1", "@types/supertest": "^6.0.2", - "@typescript-eslint/eslint-plugin": "^6.21.0", - "@typescript-eslint/parser": "^6.21.0", + "@typescript-eslint/eslint-plugin": "^8.17.0", + "@typescript-eslint/parser": "^8.17.0", "chance": "^1.1.12", "cspell": "^8.16.1", "eslint": "^8.57.1", @@ -108,7 +108,7 @@ "eslint-plugin-security": "^3.0.1", "eslint-plugin-simple-import-sort": "^12.1.1", "eslint-plugin-switch-case": "^1.1.2", - "eslint-plugin-unused-imports": "^3.2.0", + "eslint-plugin-unused-imports": "^4.1.4", "husky": "^9.1.7", "jest": "29.7.0", "jest-when": "^3.7.0", From 5ad702c460bb5e5437f0429a3085f7801c961d8a Mon Sep 17 00:00:00 2001 From: Abhi Markan Date: Mon, 9 Dec 2024 08:55:30 +0000 Subject: [PATCH 2/6] chore(deps): dependencies updates --- package-lock.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 975502bc..29d1d7a8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8740,7 +8740,7 @@ "methods": "~1.1.2", "on-finished": "2.4.1", "parseurl": "~1.3.3", - "path-to-regexp": "0.1.10", + "path-to-regexp": "0.1.12", "proxy-addr": "~2.0.7", "qs": "6.13.0", "range-parser": "~1.2.1", @@ -8782,9 +8782,9 @@ "license": "MIT" }, "node_modules/express/node_modules/path-to-regexp": { - "version": "0.1.10", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.10.tgz", - "integrity": "sha512-7lf7qcQidTku0Gu3YDPc8DJ1q7OOucfa/BSsIwjuh56VU7katFvuM8hULfkwB3Fns/rsVF7PwPKVw1sl5KQS9w==", + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz", + "integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==", "license": "MIT" }, "node_modules/external-editor": { From b7330a9d7c355050294fcf5e97c8672ed9ced0f6 Mon Sep 17 00:00:00 2001 From: Abhi Markan Date: Mon, 9 Dec 2024 09:15:27 +0000 Subject: [PATCH 3/6] chore(deps): dependencies updates --- .github/workflows/deployment.yml | 14 ++--- .github/workflows/github.yml | 2 +- .github/workflows/lint.yml | 90 ++++++++++++++++++++++++-------- .github/workflows/pr.yml | 12 ++--- .github/workflows/sca.yml | 2 +- .github/workflows/test.yml | 8 +-- 6 files changed, 86 insertions(+), 42 deletions(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 7f7fc9c7..dff9ad4c 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -28,13 +28,13 @@ on: - production paths: - - "src/**" - - "package.json" - - "package-lock.json" - - "Dockerfile" - - "tsconfig.json" - - "tsconfig.build.json" - - ".github/workflows/deployment.yml" + - 'src/**' + - 'package.json' + - 'package-lock.json' + - 'Dockerfile' + - 'tsconfig.json' + - 'tsconfig.build.json' + - '.github/workflows/deployment.yml' env: PRODUCT: apim diff --git a/.github/workflows/github.yml b/.github/workflows/github.yml index 2667ba83..c023dda5 100644 --- a/.github/workflows/github.yml +++ b/.github/workflows/github.yml @@ -12,7 +12,7 @@ on: branches: [main, main-*] env: - environment: "qa" + environment: 'qa' TIMEZONE: ${{ vars.TIMEZONE }} jobs: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index dbf46b58..550893c8 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -20,19 +20,8 @@ # Sets the timezone using the specified value. # Checks out the repository code. # Sets up the specified Node.js version. -# Installs dependencies using npm run ci:all. -# Runs linting using the command npm run lint -# -# Prettier: -# Name: Prettier -# Depends on: setup -# Runs on: ubuntu-latest -# Steps: -# Sets the timezone using the specified value. -# Checks out the repository code. -# Sets up the specified Node.js version. -# Installs dependencies using npm run ci:all. -# Runs prettier using the command npm run prettier. +# Installs dependencies using npm ci. +# Runs linting using the command npm run lint:all. # # Key Points: # The workflow focuses on linting, which checks code for potential errors, style issues, and adherence to best practices. @@ -46,14 +35,13 @@ run-name: 🎨 Lint checking on ${{ github.event.number }} on: pull_request: - branches: [main] - paths: - - "src/**" - - "test/**" + branches: + - main + - 'release-*' env: - environment: "qa" - TIMEZONE: ${{ vars.TIMEZONE }} + environment: 'qa' + timezone: ${{ vars.TIMEZONE }} jobs: # 1. Setup test infrastructure @@ -92,11 +80,11 @@ jobs: - name: Dependencies working-directory: ./ - run: npm ci --legacy-peer-deps + run: npm ci - name: Linting working-directory: ./ - run: npm run lint + run: npm run lint:all # 3. Prettier prettier: @@ -120,8 +108,64 @@ jobs: - name: Dependencies working-directory: ./ - run: npm ci --legacy-peer-deps + run: npm ci - name: Linting working-directory: ./ - run: npm run prettier + run: npm run prettier:all + + # 4. Type check + typecheck: + name: TypeScript ⌨️ + environment: + name: ${{ needs.setup.outputs.environment }} + runs-on: ubuntu-latest + steps: + - name: Timezone + uses: szenius/set-timezone@v2.0 + with: + timezoneLinux: ${{ needs.setup.outputs.timezone }} + + - name: Repository + uses: actions/checkout@v4 + + - name: Node + uses: actions/setup-node@v4 + with: + node-version: ${{ vars.NODE_VERSION }} + + - name: Dependencies + working-directory: ./ + run: npm ci + + - name: Validate + working-directory: ./ + run: npm run type-check:all + + # 5. YAML check + yaml: + name: YAML ⌨️ + environment: + name: ${{ needs.setup.outputs.environment }} + runs-on: ubuntu-latest + steps: + - name: Timezone + uses: szenius/set-timezone@v2.0 + with: + timezoneLinux: ${{ needs.setup.outputs.timezone }} + + - name: Repository + uses: actions/checkout@v4 + + - name: Node + uses: actions/setup-node@v4 + with: + node-version: ${{ vars.NODE_VERSION }} + + - name: Dependencies + working-directory: ./ + run: npm ci + + - name: Validate + working-directory: ./ + run: npm run validate:yml diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index e21bc544..0215061b 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -11,9 +11,9 @@ run-name: 🔎 Pull request analysis on ${{ github.event.number }} on: schedule: - - cron: "00 00 * * *" + - cron: '00 00 * * *' env: - environment: "qa" + environment: 'qa' TIMEZONE: ${{ vars.TIMEZONE }} jobs: @@ -46,8 +46,8 @@ jobs: uses: actions/stale@v9 with: days-before-pr-stale: ${{ vars.STALE_PR_DAYS }} - stale-pr-message: "Pull request marked as stale due to inactivity." - stale-pr-label: "Stale" + stale-pr-message: 'Pull request marked as stale due to inactivity.' + stale-pr-label: 'Stale' days-before-pr-close: ${{ vars.CLOSE_PR_DAYS }} - close-pr-message: "Pull request has been closed due to inactivity." - close-pr-label: "Closed" + close-pr-message: 'Pull request has been closed due to inactivity.' + close-pr-label: 'Closed' diff --git a/.github/workflows/sca.yml b/.github/workflows/sca.yml index 95007829..817b754c 100644 --- a/.github/workflows/sca.yml +++ b/.github/workflows/sca.yml @@ -14,7 +14,7 @@ on: branches: [main] env: - environment: "qa" + environment: 'qa' TIMEZONE: ${{ vars.TIMEZONE }} jobs: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ec6a0c50..6c02eaed 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,12 +10,12 @@ run-name: Executing test QA on ${{ github.repository }} 🚀 on: pull_request: - branches: [main] - paths: - - "**" + branches: + - main + - 'release-*' env: - environment: "qa" + environment: 'qa' TIMEZONE: ${{ vars.TIMEZONE }} jobs: From 7bb7c232eb68016520c11321b51acb9bf62e19ab Mon Sep 17 00:00:00 2001 From: Abhi Markan Date: Mon, 9 Dec 2024 09:25:31 +0000 Subject: [PATCH 4/6] chore(deps): dependencies updates --- .github/workflows/lint.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 550893c8..aa27c823 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -20,7 +20,7 @@ # Sets the timezone using the specified value. # Checks out the repository code. # Sets up the specified Node.js version. -# Installs dependencies using npm ci. +# Installs dependencies using npm ci --legacy-peer-deps. # Runs linting using the command npm run lint:all. # # Key Points: @@ -80,7 +80,7 @@ jobs: - name: Dependencies working-directory: ./ - run: npm ci + run: npm ci --legacy-peer-deps - name: Linting working-directory: ./ @@ -108,7 +108,7 @@ jobs: - name: Dependencies working-directory: ./ - run: npm ci + run: npm ci --legacy-peer-deps - name: Linting working-directory: ./ @@ -136,7 +136,7 @@ jobs: - name: Dependencies working-directory: ./ - run: npm ci + run: npm ci --legacy-peer-deps - name: Validate working-directory: ./ @@ -164,7 +164,7 @@ jobs: - name: Dependencies working-directory: ./ - run: npm ci + run: npm ci --legacy-peer-deps - name: Validate working-directory: ./ From ea16470f793e1cb7aca17b1d70c269e8fc15843f Mon Sep 17 00:00:00 2001 From: Abhi Markan Date: Mon, 9 Dec 2024 09:34:41 +0000 Subject: [PATCH 5/6] chore(deps): dependencies updates --- .github/workflows/lint.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index aa27c823..b74c68f7 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -84,7 +84,7 @@ jobs: - name: Linting working-directory: ./ - run: npm run lint:all + run: npm run lint # 3. Prettier prettier: @@ -112,7 +112,7 @@ jobs: - name: Linting working-directory: ./ - run: npm run prettier:all + run: npm run prettier # 4. Type check typecheck: @@ -140,7 +140,7 @@ jobs: - name: Validate working-directory: ./ - run: npm run type-check:all + run: npm run type-check # 5. YAML check yaml: From c48ca2ecedc21b470c56cf0fdb99ca22132fc1f5 Mon Sep 17 00:00:00 2001 From: Abhi Markan Date: Mon, 9 Dec 2024 10:38:44 +0000 Subject: [PATCH 6/6] chore(deps): lint fixes --- package-lock.json | 8 ++++---- .../govuk-notify/govuk-notify.service.test.ts | 4 ++-- .../ordnance-survey/ordnance-survey.service.test.ts | 7 +++---- .../get-company-by-registration-number.api-test.ts | 6 +++--- test/support/generator/post-emails-generator.ts | 2 +- 5 files changed, 13 insertions(+), 14 deletions(-) diff --git a/package-lock.json b/package-lock.json index 29d1d7a8..975502bc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8740,7 +8740,7 @@ "methods": "~1.1.2", "on-finished": "2.4.1", "parseurl": "~1.3.3", - "path-to-regexp": "0.1.12", + "path-to-regexp": "0.1.10", "proxy-addr": "~2.0.7", "qs": "6.13.0", "range-parser": "~1.2.1", @@ -8782,9 +8782,9 @@ "license": "MIT" }, "node_modules/express/node_modules/path-to-regexp": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz", - "integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==", + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.10.tgz", + "integrity": "sha512-7lf7qcQidTku0Gu3YDPc8DJ1q7OOucfa/BSsIwjuh56VU7katFvuM8hULfkwB3Fns/rsVF7PwPKVw1sl5KQS9w==", "license": "MIT" }, "node_modules/external-editor": { diff --git a/src/helper-modules/govuk-notify/govuk-notify.service.test.ts b/src/helper-modules/govuk-notify/govuk-notify.service.test.ts index 61390591..a2bb3730 100644 --- a/src/helper-modules/govuk-notify/govuk-notify.service.test.ts +++ b/src/helper-modules/govuk-notify/govuk-notify.service.test.ts @@ -1,11 +1,11 @@ -import { RandomValueGenerator } from '@ukef-test/support/generator/random-value-generator'; -import expectedResponse = require('./examples/example-response-for-send-emails.json'); import { BadRequestException, ForbiddenException, InternalServerErrorException, UnauthorizedException, UnprocessableEntityException } from '@nestjs/common'; import { GOVUK_NOTIFY } from '@ukef/constants'; +import { RandomValueGenerator } from '@ukef-test/support/generator/random-value-generator'; import { AxiosError, AxiosResponse } from 'axios'; import { PinoLogger } from 'nestjs-pino'; import { NotifyClient } from 'notifications-node-client'; +import expectedResponse from './examples/example-response-for-send-emails.json'; import { GovukNotifyService } from './govuk-notify.service'; jest.mock('notifications-node-client'); diff --git a/src/helper-modules/ordnance-survey/ordnance-survey.service.test.ts b/src/helper-modules/ordnance-survey/ordnance-survey.service.test.ts index fe3a1dbc..f7b7ca32 100644 --- a/src/helper-modules/ordnance-survey/ordnance-survey.service.test.ts +++ b/src/helper-modules/ordnance-survey/ordnance-survey.service.test.ts @@ -1,14 +1,13 @@ import { HttpService } from '@nestjs/axios'; import { ConfigService } from '@nestjs/config'; +import { GEOSPATIAL } from '@ukef/constants'; import { RandomValueGenerator } from '@ukef-test/support/generator/random-value-generator'; import { AxiosError } from 'axios'; import { when } from 'jest-when'; import { of, throwError } from 'rxjs'; -import expectedResponseData = require('./examples/example-response-for-search-places-v1-postcode.json'); -import noResultsResponseData = require('./examples/example-response-for-search-places-v1-postcode-no-results.json'); - -import { GEOSPATIAL } from '@ukef/constants'; +import expectedResponseData from './examples/example-response-for-search-places-v1-postcode.json'; +import noResultsResponseData from './examples/example-response-for-search-places-v1-postcode-no-results.json'; import { OrdnanceSurveyException } from './exception/ordnance-survey.exception'; import { OrdnanceSurveyService } from './ordnance-survey.service'; diff --git a/test/companies/get-company-by-registration-number.api-test.ts b/test/companies/get-company-by-registration-number.api-test.ts index a73dbbd2..4e2f5d6c 100644 --- a/test/companies/get-company-by-registration-number.api-test.ts +++ b/test/companies/get-company-by-registration-number.api-test.ts @@ -1,12 +1,12 @@ +import getCompanyCompaniesHouseResponse from '@ukef/helper-modules/companies-house/examples/example-response-for-get-company-by-registration-number.json'; +import getCompanyCompaniesHouseOverseasCompanyResponse from '@ukef/helper-modules/companies-house/examples/example-response-for-get-company-by-registration-number-overseas-company.json'; +import getCompanyResponse from '@ukef/modules/companies/examples/example-response-for-get-company-by-registration-number.json'; import { IncorrectAuthArg, withClientAuthenticationTests } from '@ukef-test/common-tests/client-authentication-api-tests'; import { Api } from '@ukef-test/support/api'; import { ENVIRONMENT_VARIABLES, TIME_EXCEEDING_COMPANIES_HOUSE_TIMEOUT } from '@ukef-test/support/environment-variables'; import { GetCompanyGenerator } from '@ukef-test/support/generator/get-company-generator'; import { RandomValueGenerator } from '@ukef-test/support/generator/random-value-generator'; import nock from 'nock'; -import getCompanyCompaniesHouseResponse = require('@ukef/helper-modules/companies-house/examples/example-response-for-get-company-by-registration-number.json'); -import getCompanyResponse = require('@ukef/modules/companies/examples/example-response-for-get-company-by-registration-number.json'); -import getCompanyCompaniesHouseOverseasCompanyResponse = require('@ukef/helper-modules/companies-house/examples/example-response-for-get-company-by-registration-number-overseas-company.json'); describe('GET /companies?registrationNumber=', () => { let api: Api; diff --git a/test/support/generator/post-emails-generator.ts b/test/support/generator/post-emails-generator.ts index 0651c5cd..a5e3a23b 100644 --- a/test/support/generator/post-emails-generator.ts +++ b/test/support/generator/post-emails-generator.ts @@ -82,7 +82,7 @@ interface PostEmailsValues { }; } -interface GenerateOptions {} +type GenerateOptions = object; interface GenerateResult { requests: PostEmailsRequestDto[];