Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(sdk-api): enable esModuleInterop #4978

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions modules/sdk-api/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
* @prettier
*/
import Debug from 'debug';
import * as eol from 'eol';
import * as _ from 'lodash';
import * as sanitizeHtml from 'sanitize-html';
import * as superagent from 'superagent';
import * as urlLib from 'url';
import * as querystring from 'querystring';
import eol from 'eol';
import _ from 'lodash';
import sanitizeHtml from 'sanitize-html';
import superagent from 'superagent';
import urlLib from 'url';
import querystring from 'querystring';

import { ApiResponseError, BitGoRequest } from '@bitgo/sdk-core';

Expand Down
4 changes: 2 additions & 2 deletions modules/sdk-api/src/v1/blockchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// Copyright 2014, BitGo, Inc. All Rights Reserved.
//

import * as Bluebird from 'bluebird';
import * as _ from 'lodash';
import Bluebird from 'bluebird';
import _ from 'lodash';

import { common } from '@bitgo/sdk-core';

Expand Down
2 changes: 1 addition & 1 deletion modules/sdk-api/src/v1/keychains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { bip32 } from '@bitgo/utxo-lib';
import { randomBytes } from 'crypto';
import { common, Util, sanitizeLegacyPath } from '@bitgo/sdk-core';
const _ = require('lodash');
import * as Bluebird from 'bluebird';
import Bluebird from 'bluebird';
const co = Bluebird.coroutine;

//
Expand Down
2 changes: 1 addition & 1 deletion modules/sdk-api/src/v1/markets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// Copyright 2015, BitGo, Inc. All Rights Reserved.
//

import * as Bluebird from 'bluebird';
import Bluebird from 'bluebird';

import { common } from '@bitgo/sdk-core';

Expand Down
4 changes: 2 additions & 2 deletions modules/sdk-api/src/v1/pendingapproval.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
import { common } from '@bitgo/sdk-core';
import * as utxolib from '@bitgo/utxo-lib';

import * as Bluebird from 'bluebird';
import * as _ from 'lodash';
import Bluebird from 'bluebird';
import _ from 'lodash';

//
// Constructor
Expand Down
2 changes: 1 addition & 1 deletion modules/sdk-api/src/v1/pendingapprovals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// Copyright 2015, BitGo, Inc. All Rights Reserved.
//

import * as Bluebird from 'bluebird';
import Bluebird from 'bluebird';
import * as _ from 'lodash';

import { common } from '@bitgo/sdk-core';
Expand Down
2 changes: 1 addition & 1 deletion modules/sdk-api/src/v1/signPsbt.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as utxolib from '@bitgo/utxo-lib';

import * as buildDebug from 'debug';
import buildDebug from 'debug';

const debug = buildDebug('bitgo:v1:txb');

Expand Down
4 changes: 2 additions & 2 deletions modules/sdk-api/src/v1/transactionBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
//

import { bip32 } from '@bitgo/utxo-lib';
import * as Bluebird from 'bluebird';
import Bluebird from 'bluebird';
import * as utxolib from '@bitgo/utxo-lib';
import * as _ from 'lodash';
import _ from 'lodash';
import { VirtualSizes } from '@bitgo/unspents';
import debugLib = require('debug');
const debug = debugLib('bitgo:v1:txb');
Expand Down
4 changes: 2 additions & 2 deletions modules/sdk-api/src/v1/travelRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
import { common, getNetwork, getSharedSecret, makeRandomKey, sanitizeLegacyPath } from '@bitgo/sdk-core';
import { bip32, BIP32Interface } from '@bitgo/utxo-lib';
import * as utxolib from '@bitgo/utxo-lib';
import * as Bluebird from 'bluebird';
import * as _ from 'lodash';
import Bluebird from 'bluebird';
import _ from 'lodash';

interface DecryptReceivedTravelRuleOptions {
tx?: {
Expand Down
6 changes: 3 additions & 3 deletions modules/sdk-api/src/v1/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//

import { VirtualSizes } from '@bitgo/unspents';
import * as assert from 'assert';
import assert from 'assert';

import * as utxolib from '@bitgo/utxo-lib';
import { bip32 } from '@bitgo/utxo-lib';
Expand All @@ -24,8 +24,8 @@ import {
makeRandomKey,
sanitizeLegacyPath,
} from '@bitgo/sdk-core';
import * as Bluebird from 'bluebird';
import * as _ from 'lodash';
import Bluebird from 'bluebird';
import _ from 'lodash';
import { signPsbtRequest } from './signPsbt';

const TransactionBuilder = require('./transactionBuilder');
Expand Down
4 changes: 2 additions & 2 deletions modules/sdk-api/src/v1/wallets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import {
} from '@bitgo/sdk-core';
import { bip32 } from '@bitgo/utxo-lib';
import * as utxolib from '@bitgo/utxo-lib';
import * as _ from 'lodash';
import * as Bluebird from 'bluebird';
import _ from 'lodash';
import Bluebird from 'bluebird';
const co = Bluebird.coroutine;
const Wallet = require('./wallet');

Expand Down
2 changes: 1 addition & 1 deletion modules/sdk-api/test/unit/encrypt.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as assert from 'assert';
import assert from 'assert';
import { randomBytes } from 'crypto';

import { decrypt, encrypt } from '../../src';
Expand Down
2 changes: 1 addition & 1 deletion modules/sdk-api/test/unit/v1/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import * as _ from 'lodash';
import { common } from '@bitgo/sdk-core';
import * as utxolib from '@bitgo/utxo-lib';
import * as should from 'should';
import * as nock from 'nock';
import nock from 'nock';
import * as sinon from 'sinon';

import { getFixtures } from './fixtures/accelerate-tx';
Expand Down
2 changes: 1 addition & 1 deletion modules/sdk-api/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compilerOptions": {
"outDir": "./dist",
"rootDir": ".",
"esModuleInterop": false,
"esModuleInterop": true,
"typeRoots": ["../../types", "./node_modules/@types", "../../node_modules/@types"]
},
"include": ["src/**/*", "package.json", "test/**/*"],
Expand Down
Loading