Qualify CJS-only module imports
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
parent
3f839434b2
commit
acbe5d0735
401 changed files with 1278 additions and 593 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue