From 96795c5a616711c200cb3bf9f449887fb4590a1c Mon Sep 17 00:00:00 2001 From: Vlad Frangu Date: Mon, 2 Oct 2023 16:27:02 +0300 Subject: [PATCH] chore: requested changes --- .eslintrc.json | 11 ++--------- package-lock.json | 2 +- package.json | 2 +- src/resolve-protocol.ts | 1 - test/alpn.test.ts | 1 + 5 files changed, 5 insertions(+), 12 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 5072ec3..f62bb23 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -6,15 +6,8 @@ "project": "tsconfig.eslint.json", "ecmaVersion": 2022 }, - "overrides": [ - { - "files": ["./test/**/*.ts"], - "rules": { - "@typescript-eslint/no-explicit-any": "off" - } - } - ], "rules": { - "@typescript-eslint/no-explicit-any": "warn" + "@typescript-eslint/no-explicit-any": "off", + "no-void": "off" } } diff --git a/package-lock.json b/package-lock.json index 11c4236..f413aab 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "3.2.16", "license": "Apache-2.0", "dependencies": { - "got": "13.0.0", + "got": "^13.0.0", "header-generator": "^2.1.41", "http2-wrapper": "^2.2.0", "mimic-response": "^4.0.0", diff --git a/package.json b/package.json index c9e767c..6ec3177 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "types": "./dist/index.d.ts", "type": "module", "dependencies": { - "got": "13.0.0", + "got": "^13.0.0", "header-generator": "^2.1.41", "http2-wrapper": "^2.2.0", "mimic-response": "^4.0.0", diff --git a/src/resolve-protocol.ts b/src/resolve-protocol.ts index 958b135..6d31fb3 100644 --- a/src/resolve-protocol.ts +++ b/src/resolve-protocol.ts @@ -12,7 +12,6 @@ const connect = async (proxyUrl: string, options: tls.ConnectionOptions, callbac host = `[${options.host}]:${options.port}`; } - // eslint-disable-next-line no-void void (async () => { try { const headers: Headers = { diff --git a/test/alpn.test.ts b/test/alpn.test.ts index be1fd0c..65e56cd 100644 --- a/test/alpn.test.ts +++ b/test/alpn.test.ts @@ -22,6 +22,7 @@ describe('ALPN negotiation', () => { await proxyPromise; + // eslint-disable-next-line no-console console.log('dns', dnsQueries); expect(dnsQueries.includes('api.apify.com')).toBe(false);