mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-18 23:49:20 +01:00
Bundle everything with rolldown
This commit is contained in:
@@ -2,33 +2,33 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { CallLinkRootKey } from '@signalapp/ringrtc';
|
||||
import * as Bytes from '../../Bytes.std.js';
|
||||
import * as Bytes from '../../Bytes.std.ts';
|
||||
import type {
|
||||
CallLinkRecord,
|
||||
CallLinkStateType,
|
||||
CallLinkType,
|
||||
DefunctCallLinkType,
|
||||
} from '../../types/CallLink.std.js';
|
||||
} from '../../types/CallLink.std.ts';
|
||||
import {
|
||||
callLinkRestrictionsSchema,
|
||||
callLinkRecordSchema,
|
||||
defunctCallLinkRecordSchema,
|
||||
} from '../../types/CallLink.std.js';
|
||||
import { toAdminKeyBytes } from '../../util/callLinks.std.js';
|
||||
} from '../../types/CallLink.std.ts';
|
||||
import { toAdminKeyBytes } from '../../util/callLinks.std.ts';
|
||||
import {
|
||||
callLinkToRecord,
|
||||
callLinkFromRecord,
|
||||
defunctCallLinkToRecord,
|
||||
defunctCallLinkFromRecord,
|
||||
} from '../../util/callLinksRingrtc.node.js';
|
||||
import type { ReadableDB, WritableDB } from '../Interface.std.js';
|
||||
import { sql } from '../util.std.js';
|
||||
import { strictAssert } from '../../util/assert.std.js';
|
||||
} from '../../util/callLinksRingrtc.node.ts';
|
||||
import type { ReadableDB, WritableDB } from '../Interface.std.ts';
|
||||
import { sql } from '../util.std.ts';
|
||||
import { strictAssert } from '../../util/assert.std.ts';
|
||||
import {
|
||||
CallStatusValue,
|
||||
DirectCallStatus,
|
||||
} from '../../types/CallDisposition.std.js';
|
||||
import { parseStrict, parseUnknown } from '../../util/schemas.std.js';
|
||||
} from '../../types/CallDisposition.std.ts';
|
||||
import { parseStrict, parseUnknown } from '../../util/schemas.std.ts';
|
||||
|
||||
export function callLinkExists(db: ReadableDB, roomId: string): boolean {
|
||||
const [query, params] = sql`
|
||||
|
||||
@@ -7,12 +7,12 @@ import {
|
||||
CHAT_FOLDER_DELETED_POSITION,
|
||||
ChatFolderType,
|
||||
ALL_CHATS_FOLDER_REQUIRED_PARAMS,
|
||||
} from '../../types/ChatFolder.std.js';
|
||||
import type { ReadableDB, WritableDB } from '../Interface.std.js';
|
||||
import { sql } from '../util.std.js';
|
||||
import { strictAssert } from '../../util/assert.std.js';
|
||||
import type { CurrentChatFolder } from '../../types/CurrentChatFolders.std.js';
|
||||
import { isCurrentChatFolder } from '../../types/CurrentChatFolders.std.js';
|
||||
} from '../../types/ChatFolder.std.ts';
|
||||
import type { ReadableDB, WritableDB } from '../Interface.std.ts';
|
||||
import { sql } from '../util.std.ts';
|
||||
import { strictAssert } from '../../util/assert.std.ts';
|
||||
import type { CurrentChatFolder } from '../../types/CurrentChatFolders.std.ts';
|
||||
import { isCurrentChatFolder } from '../../types/CurrentChatFolders.std.ts';
|
||||
|
||||
export type ChatFolderRow = Readonly<
|
||||
Omit<
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
// Copyright 2025 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { sql } from '../util.std.js';
|
||||
import { sql } from '../util.std.ts';
|
||||
|
||||
import type { DonationReceipt } from '../../types/Donations.std.js';
|
||||
import type { ReadableDB, WritableDB } from '../Interface.std.js';
|
||||
import type { DonationReceipt } from '../../types/Donations.std.ts';
|
||||
import type { ReadableDB, WritableDB } from '../Interface.std.ts';
|
||||
|
||||
export function getAllDonationReceipts(db: ReadableDB): Array<DonationReceipt> {
|
||||
const donationReceipts = db
|
||||
|
||||
@@ -5,17 +5,17 @@ import type {
|
||||
GroupSendCombinedEndorsementRecord,
|
||||
GroupSendEndorsementsData,
|
||||
GroupSendMemberEndorsementRecord,
|
||||
} from '../../types/GroupSendEndorsements.std.js';
|
||||
} from '../../types/GroupSendEndorsements.std.ts';
|
||||
import {
|
||||
groupSendEndorsementExpirationSchema,
|
||||
groupSendMemberEndorsementSchema,
|
||||
groupSendEndorsementsDataSchema,
|
||||
} from '../../types/GroupSendEndorsements.std.js';
|
||||
import type { ReadableDB, WritableDB } from '../Interface.std.js';
|
||||
import { sql } from '../util.std.js';
|
||||
import type { AciString } from '../../types/ServiceId.std.js';
|
||||
import { strictAssert } from '../../util/assert.std.js';
|
||||
import { parseLoose, parseUnknown } from '../../util/schemas.std.js';
|
||||
} from '../../types/GroupSendEndorsements.std.ts';
|
||||
import type { ReadableDB, WritableDB } from '../Interface.std.ts';
|
||||
import { sql } from '../util.std.ts';
|
||||
import type { AciString } from '../../types/ServiceId.std.ts';
|
||||
import { strictAssert } from '../../util/assert.std.ts';
|
||||
import { parseLoose, parseUnknown } from '../../util/schemas.std.ts';
|
||||
|
||||
/**
|
||||
* We don't need to store more than one endorsement per group or per member.
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// Copyright 2026 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
import type { AciString } from '../../types/ServiceId.std.js';
|
||||
import type { ReadableDB, WritableDB } from '../Interface.std.js';
|
||||
import { sql } from '../util.std.js';
|
||||
import type { AciString } from '../../types/ServiceId.std.ts';
|
||||
import type { ReadableDB, WritableDB } from '../Interface.std.ts';
|
||||
import { sql } from '../util.std.ts';
|
||||
|
||||
export function getAllKTAcis(db: ReadableDB): Array<AciString> {
|
||||
const [query, params] = sql`
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
// Copyright 2025 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
import type { ReadableDB, WritableDB } from '../Interface.std.js';
|
||||
import { sql } from '../util.std.js';
|
||||
import type { ReadableDB, WritableDB } from '../Interface.std.ts';
|
||||
import { sql } from '../util.std.ts';
|
||||
import type {
|
||||
RemoteMegaphoneId,
|
||||
RemoteMegaphoneType,
|
||||
} from '../../types/Megaphone.std.js';
|
||||
import { strictAssert } from '../../util/assert.std.js';
|
||||
} from '../../types/Megaphone.std.ts';
|
||||
import { strictAssert } from '../../util/assert.std.ts';
|
||||
|
||||
type MegaphoneRow = Readonly<
|
||||
Omit<
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { z } from 'zod';
|
||||
import { convertUndefinedToNull } from '../../util/dropNull.std.js';
|
||||
import { messageAttachmentTypeSchema } from '../../types/AttachmentDownload.std.js';
|
||||
import { APPLICATION_OCTET_STREAM } from '../../types/MIME.std.js';
|
||||
import type { MessageAttachmentDBType } from '../Interface.std.js';
|
||||
import { convertUndefinedToNull } from '../../util/dropNull.std.ts';
|
||||
import { messageAttachmentTypeSchema } from '../../types/AttachmentDownload.std.ts';
|
||||
import { APPLICATION_OCTET_STREAM } from '../../types/MIME.std.ts';
|
||||
import type { MessageAttachmentDBType } from '../Interface.std.ts';
|
||||
|
||||
const permissiveStringOrNull = z
|
||||
.string()
|
||||
|
||||
@@ -6,16 +6,16 @@ import type {
|
||||
PinnedMessageId,
|
||||
PinnedMessageParams,
|
||||
PinnedMessagePreloadData,
|
||||
} from '../../types/PinnedMessage.std.js';
|
||||
import { strictAssert } from '../../util/assert.std.js';
|
||||
import { hydrateMessage } from '../hydration.std.js';
|
||||
} from '../../types/PinnedMessage.std.ts';
|
||||
import { strictAssert } from '../../util/assert.std.ts';
|
||||
import { hydrateMessage } from '../hydration.std.ts';
|
||||
import type {
|
||||
MessageTypeUnhydrated,
|
||||
MessageType,
|
||||
ReadableDB,
|
||||
WritableDB,
|
||||
} from '../Interface.std.js';
|
||||
import { sql } from '../util.std.js';
|
||||
} from '../Interface.std.ts';
|
||||
import { sql } from '../util.std.ts';
|
||||
|
||||
function _getMessageById(
|
||||
db: ReadableDB,
|
||||
|
||||
Reference in New Issue
Block a user