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

@ -9,27 +9,27 @@ import type { ReadonlyDeep } from 'type-fest';
// Note: nothing imported here can come back and require Client.ts, and that includes
// their imports too. That circularity causes problems. Anything that would do that needs
// to be passed in, like cleanupMessages below.
import * as Bytes from '../Bytes';
import { createLogger } from '../logging/log';
import * as Errors from '../types/errors';
import * as Bytes from '../Bytes.js';
import { createLogger } from '../logging/log.js';
import * as Errors from '../types/errors.js';
import { deleteExternalFiles } from '../types/Conversation';
import { createBatcher } from '../util/batcher';
import { assertDev, softAssert } from '../util/assert';
import { mapObjectWithSpec } from '../util/mapObjectWithSpec';
import { cleanDataForIpc } from './cleanDataForIpc';
import createTaskWithTimeout from '../textsecure/TaskWithTimeout';
import { isValidUuid, isValidUuidV7 } from '../util/isValidUuid';
import { formatJobForInsert } from '../jobs/formatJobForInsert';
import { AccessType, ipcInvoke, doShutdown, removeDB } from './channels';
import { getMessageIdForLogging } from '../util/idForLogging';
import { incrementMessageCounter } from '../util/incrementMessageCounter';
import { generateSnippetAroundMention } from '../util/search';
import { drop } from '../util/drop';
import { deleteExternalFiles } from '../types/Conversation.js';
import { createBatcher } from '../util/batcher.js';
import { assertDev, softAssert } from '../util/assert.js';
import { mapObjectWithSpec } from '../util/mapObjectWithSpec.js';
import { cleanDataForIpc } from './cleanDataForIpc.js';
import createTaskWithTimeout from '../textsecure/TaskWithTimeout.js';
import { isValidUuid, isValidUuidV7 } from '../util/isValidUuid.js';
import { formatJobForInsert } from '../jobs/formatJobForInsert.js';
import { AccessType, ipcInvoke, doShutdown, removeDB } from './channels.js';
import { getMessageIdForLogging } from '../util/idForLogging.js';
import { incrementMessageCounter } from '../util/incrementMessageCounter.js';
import { generateSnippetAroundMention } from '../util/search.js';
import { drop } from '../util/drop.js';
import type { ObjectMappingSpecType } from '../util/mapObjectWithSpec';
import type { AciString, ServiceIdString } from '../types/ServiceId';
import type { StoredJob } from '../jobs/types';
import type { ObjectMappingSpecType } from '../util/mapObjectWithSpec.js';
import type { AciString, ServiceIdString } from '../types/ServiceId.js';
import type { StoredJob } from '../jobs/types.js';
import type {
ClientInterfaceWrap,
AdjacentMessagesByConversationOptionsType,
@ -60,14 +60,14 @@ import type {
StoredKyberPreKeyType,
ClientOnlyReadableInterface,
ClientOnlyWritableInterface,
} from './Interface';
import { AttachmentDownloadSource } from './Interface';
import type { MessageAttributesType } from '../model-types';
import type { AttachmentDownloadJobType } from '../types/AttachmentDownload';
} from './Interface.js';
import { AttachmentDownloadSource } from './Interface.js';
import type { MessageAttributesType } from '../model-types.js';
import type { AttachmentDownloadJobType } from '../types/AttachmentDownload.js';
import {
throttledUpdateBackupMediaDownloadProgress,
updateBackupMediaDownloadProgress,
} from '../util/updateBackupMediaDownloadProgress';
} from '../util/updateBackupMediaDownloadProgress.js';
const log = createLogger('Client');