Qualify CJS-only module imports

This commit is contained in:
Fedor Indutny
2025-09-19 13:05:51 -07:00
committed by GitHub
parent 140241b83f
commit 40eaf078cc
401 changed files with 1278 additions and 593 deletions

View File

@@ -1,7 +1,7 @@
// Copyright 2019 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { throttle } from 'lodash';
import lodash from 'lodash';
import { LRUCache } from 'lru-cache';
import { createLogger } from '../logging/log.js';
@@ -18,6 +18,8 @@ import type { MessageAttributesType } from '../model-types.d.ts';
import type { SendStateByConversationId } from '../messages/MessageSendState.js';
import type { StoredJob } from '../jobs/types.js';
const { throttle } = lodash;
const log = createLogger('MessageCache');
const MAX_THROTTLED_REDUX_UPDATERS = 200;