Enforce node: schema for builtins, import extensions

This commit is contained in:
Fedor Indutny 2025-09-16 17:39:03 -07:00 committed by GitHub
commit c02565eaa8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2096 changed files with 14955 additions and 14023 deletions

View file

@ -1,26 +1,26 @@
// Copyright 2023 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { Agent as HTTPSAgent } from 'https';
import type { AgentOptions, RequestOptions } from 'https';
import type { LookupAddress } from 'dns';
import type net from 'net';
import tls from 'tls';
import type { ConnectionOptions } from 'tls';
import { callbackify, promisify } from 'util';
import { Agent as HTTPSAgent } from 'node:https';
import type { AgentOptions, RequestOptions } from 'node:https';
import type { LookupAddress } from 'node:dns';
import type net from 'node:net';
import tls from 'node:tls';
import type { ConnectionOptions } from 'node:tls';
import { callbackify, promisify } from 'node:util';
import pTimeout from 'p-timeout';
import { createLogger } from '../logging/log';
import { createLogger } from '../logging/log.js';
import {
electronLookup as electronLookupWithCb,
interleaveAddresses,
} from './dns';
import { strictAssert } from './assert';
import { parseIntOrThrow } from './parseIntOrThrow';
import { sleep } from './sleep';
import { SECOND } from './durations';
import { dropNull } from './dropNull';
import { explodePromise } from './explodePromise';
} from './dns.js';
import { strictAssert } from './assert.js';
import { parseIntOrThrow } from './parseIntOrThrow.js';
import { sleep } from './sleep.js';
import { SECOND } from './durations/index.js';
import { dropNull } from './dropNull.js';
import { explodePromise } from './explodePromise.js';
const log = createLogger('createHTTPSAgent');