Qualify CJS-only module imports

Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
automated-signal 2025-09-19 23:25:57 -05:00 committed by GitHub
commit acbe5d0735
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
401 changed files with 1278 additions and 593 deletions

View file

@ -1,7 +1,7 @@
// Copyright 2023 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { noop } from 'lodash';
import lodash from 'lodash';
import SQL from '@signalapp/sqlcipher';
import type { ReadableDB, WritableDB } from '../../sql/Interface.js';
@ -9,6 +9,8 @@ import type { QueryTemplate } from '../../sql/util.js';
import { SCHEMA_VERSIONS } from '../../sql/migrations/index.js';
import { consoleLogger } from '../../util/consoleLogger.js';
const { noop } = lodash;
export function createDB(): WritableDB {
const db = new SQL(':memory:') as WritableDB;
db.initTokenizer();