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,10 +1,10 @@
// Copyright 2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { PhoneNumberUtil, PhoneNumberFormat } from 'google-libphonenumber';
import googleLibphonenumber from 'google-libphonenumber';
import * as moment from 'moment';
// @ts-expect-error -- no types
import 'moment/min/locales.min';
import 'moment/min/locales.min.js';
import { textsecure } from '../../textsecure/index.js';
import { initialize as initializeLogging } from '../../logging/set_up_renderer_logging.js';
@@ -15,6 +15,8 @@ import { createLogger } from '../../logging/log.js';
import { SignalContext } from '../context.js';
import * as Attachments from './attachments.js';
const { PhoneNumberUtil, PhoneNumberFormat } = googleLibphonenumber;
const log = createLogger('phase2-dependencies');
initializeLogging();