Skip to content

Commit 16bca47

Browse files
authored
chore: update shared eslint config to a stable version (#579)
1 parent a507021 commit 16bca47

21 files changed

+62
-61
lines changed

.github/scripts/before-beta-release.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
const { execSync } = require('child_process');
2-
const fs = require('fs');
3-
const path = require('path');
1+
const { execSync } = require('node:child_process');
2+
const fs = require('node:fs');
3+
const path = require('node:path');
44

55
const PKG_JSON_PATH = path.join(__dirname, '..', '..', 'package.json');
66

eslint.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import apify from '@apify/eslint-config';
1+
import apifyTypescriptConfig from '@apify/eslint-config/ts.js';
22

33
// eslint-disable-next-line import/no-default-export
44
export default [
55
{ ignores: ['**/dist', 'test'] }, // Ignores need to happen first
6-
...apify,
6+
...apifyTypescriptConfig,
77
{
88
languageOptions: {
99
sourceType: 'module',

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "proxy-chain",
3-
"version": "2.5.7",
3+
"version": "2.5.8",
44
"description": "Node.js implementation of a proxy server (think Squid) with support for SSL, authentication, upstream proxy chaining, and protocol tunneling.",
55
"main": "dist/index.js",
66
"keywords": [
@@ -44,7 +44,7 @@
4444
"node": ">=14"
4545
},
4646
"devDependencies": {
47-
"@apify/eslint-config": "^0.5.0-beta.2",
47+
"@apify/eslint-config": "^1.0.0",
4848
"@apify/tsconfig": "^0.1.0",
4949
"@types/jest": "^28.1.2",
5050
"@types/node": "^18.8.3",

src/anonymize_proxy.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import type { Buffer } from 'buffer';
2-
import type http from 'http';
3-
import type net from 'net';
4-
import { URL } from 'url';
1+
import type { Buffer } from 'node:buffer';
2+
import type http from 'node:http';
3+
import type net from 'node:net';
4+
import { URL } from 'node:url';
55

66
import { Server, SOCKS_PROTOCOLS } from './server';
77
import { nodeify } from './utils/nodeify';

src/chain.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import type { Buffer } from 'buffer';
2-
import type dns from 'dns';
3-
import type { EventEmitter } from 'events';
4-
import http from 'http';
5-
import https from 'https';
6-
import type { URL } from 'url';
1+
import type { Buffer } from 'node:buffer';
2+
import type dns from 'node:dns';
3+
import type { EventEmitter } from 'node:events';
4+
import http from 'node:http';
5+
import https from 'node:https';
6+
import type { URL } from 'node:url';
77

88
import type { Socket } from './socket';
99
import { badGatewayStatusCodes, createCustomStatusHttpResponse, errorCodeToStatusCode } from './statuses';

src/chain_socks.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import type { Buffer } from 'buffer';
2-
import type { EventEmitter } from 'events';
3-
import type http from 'http';
4-
import type net from 'net';
5-
import { URL } from 'url';
1+
import type { Buffer } from 'node:buffer';
2+
import type { EventEmitter } from 'node:events';
3+
import type http from 'node:http';
4+
import type net from 'node:net';
5+
import { URL } from 'node:url';
66

7-
import { type SocksClientError, SocksClient, type SocksProxy } from 'socks';
7+
import { SocksClient, type SocksClientError, type SocksProxy } from 'socks';
88

99
import type { Socket } from './socket';
1010
import { createCustomStatusHttpResponse, socksErrorMessageToStatusCode } from './statuses';

src/custom_connect.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import type http from 'http';
2-
import type net from 'net';
3-
import { promisify } from 'util';
1+
import type http from 'node:http';
2+
import type net from 'node:net';
3+
import { promisify } from 'node:util';
44

55
export const customConnect = async (socket: net.Socket, server: http.Server): Promise<void> => {
66
// `countTargetBytes(socket, socket)` is incorrect here since `socket` is not a target.

src/custom_response.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { Buffer } from 'buffer';
2-
import type http from 'http';
1+
import type { Buffer } from 'node:buffer';
2+
import type http from 'node:http';
33

44
export interface CustomResponse {
55
statusCode?: number;

src/direct.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import type { Buffer } from 'buffer';
2-
import type dns from 'dns';
3-
import type { EventEmitter } from 'events';
4-
import net from 'net';
5-
import { URL } from 'url';
1+
import type { Buffer } from 'node:buffer';
2+
import type dns from 'node:dns';
3+
import type { EventEmitter } from 'node:events';
4+
import net from 'node:net';
5+
import { URL } from 'node:url';
66

77
import type { Socket } from './socket';
88
import { countTargetBytes } from './utils/count_target_bytes';

src/forward.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import type dns from 'dns';
2-
import http from 'http';
3-
import https from 'https';
4-
import stream from 'stream';
5-
import type { URL } from 'url';
6-
import util from 'util';
1+
import type dns from 'node:dns';
2+
import http from 'node:http';
3+
import https from 'node:https';
4+
import stream from 'node:stream';
5+
import type { URL } from 'node:url';
6+
import util from 'node:util';
77

88
import { badGatewayStatusCodes, errorCodeToStatusCode } from './statuses';
99
import type { SocketWithPreviousStats } from './utils/count_target_bytes';

0 commit comments

Comments
 (0)