Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Sep 30, 2023
1 parent 5923589 commit aaebfa4
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ module.exports = {
'no-restricted-globals': [
'error',
// https://github.com/TooTallNate/proxy-agents/pull/242
{ name: 'URL', message: 'Use `URL` from the Node.js "url" module instead.' },
{
name: 'URL',
message:
'Use `URL` from the Node.js "url" module instead.',
},
],
},
},
Expand Down
5 changes: 4 additions & 1 deletion packages/degenerator/test/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ import fs from 'fs';
import path from 'path';
import assert from 'assert';
import { degenerator, compile } from '../src';
import { getQuickJS, type QuickJSWASMModule } from '@tootallnate/quickjs-emscripten';
import {
getQuickJS,
type QuickJSWASMModule,
} from '@tootallnate/quickjs-emscripten';

describe('degenerator()', () => {
it('should support "async" output functions', () => {
Expand Down
6 changes: 4 additions & 2 deletions packages/https-proxy-agent/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,12 @@ export class HttpsProxyAgent<Uri extends string> extends Agent {
let socket: net.Socket;
if (proxy.protocol === 'https:') {
debug('Creating `tls.Socket`: %o', this.connectOpts);
const servername = this.connectOpts.servername || this.connectOpts.host;
const servername =
this.connectOpts.servername || this.connectOpts.host;
socket = tls.connect({
...this.connectOpts,
servername: servername && net.isIP(servername) ? undefined : servername
servername:
servername && net.isIP(servername) ? undefined : servername,
});
} else {
debug('Creating `net.Socket`: %o', this.connectOpts);
Expand Down
5 changes: 4 additions & 1 deletion packages/pac-resolver/test/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ import assert from 'assert';
import { resolve } from 'path';
import { readFileSync } from 'fs';
import { createPacResolver } from '../src';
import { getQuickJS, type QuickJSWASMModule } from '@tootallnate/quickjs-emscripten';
import {
getQuickJS,
type QuickJSWASMModule,
} from '@tootallnate/quickjs-emscripten';

type FindProxyForURLFn = ReturnType<typeof createPacResolver>;

Expand Down

1 comment on commit aaebfa4

@vercel
Copy link

@vercel vercel bot commented on aaebfa4 Sep 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.