Qualify CJS-only module imports
This commit is contained in:
parent
140241b83f
commit
40eaf078cc
401 changed files with 1278 additions and 593 deletions
|
@ -9,7 +9,7 @@
|
|||
import type { RequestInit, Response } from 'node-fetch';
|
||||
import fetch from 'node-fetch';
|
||||
import type { Agent } from 'node:https';
|
||||
import { escapeRegExp, isNumber, isString, isObject, throttle } from 'lodash';
|
||||
import lodash from 'lodash';
|
||||
import PQueue from 'p-queue';
|
||||
import { v4 as getGuid } from 'uuid';
|
||||
import { z } from 'zod';
|
||||
|
@ -21,7 +21,7 @@ import type {
|
|||
Aci,
|
||||
Pni,
|
||||
} from '@signalapp/libsignal-client';
|
||||
import { AccountAttributes } from '@signalapp/libsignal-client/dist/net';
|
||||
import { AccountAttributes } from '@signalapp/libsignal-client/dist/net.js';
|
||||
|
||||
import { assertDev, strictAssert } from '../util/assert.js';
|
||||
import * as durations from '../util/durations/index.js';
|
||||
|
@ -101,6 +101,8 @@ import type { StripeDonationAmount, CardDetail } from '../types/Donations.js';
|
|||
import { badgeFromServerSchema } from '../badges/parseBadgesFromServer.js';
|
||||
import { ZERO_DECIMAL_CURRENCIES } from '../util/currency.js';
|
||||
|
||||
const { escapeRegExp, isNumber, isString, isObject, throttle } = lodash;
|
||||
|
||||
const log = createLogger('WebAPI');
|
||||
|
||||
// Note: this will break some code that expects to be able to use err.response when a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue