Skip to content
This repository was archived by the owner on Jul 6, 2022. It is now read-only.

Commit 7bee9b5

Browse files
author
Victor Wiebe
committed
fix: import issue with @types/semver and esModuleInterop
1 parent 43420ff commit 7bee9b5

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
"@0x/types": "^2.4.0",
8585
"@0x/typescript-typings": "^4.2.3",
8686
"@polymathnetwork/abi-wrappers": "3.0.0-beta.4",
87+
"@types/semver": "^6.0.1",
8788
"ethereumjs-blockstream": "6.0.0",
8889
"ethereumjs-util": "^6.1.0",
8990
"js-sha3": "^0.8.0",

src/contract_wrappers/modules/module_factory_wrapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ import {
1212
TxData,
1313
Web3Wrapper,
1414
} from '@polymathnetwork/abi-wrappers';
15+
import semver from 'semver';
1516
import { schemas } from '@0x/json-schemas';
1617
import assert from '../../utils/assert';
17-
import * as semver from 'semver';
1818
import ContractWrapper from '../contract_wrapper';
1919
import {
2020
BoundType,

src/utils/filter_utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as ethUtil from 'ethereumjs-util';
22
import * as jsSHA3 from 'js-sha3';
33
import * as _ from 'lodash';
4-
import * as uuid from 'uuid/v4';
4+
import uuid from 'uuid/v4';
55

66
import { ContractAbi, FilterObject, EventAbi, LogEntry } from '@polymathnetwork/abi-wrappers';
77
import { BlockRange, ContractEvents, IndexedFilterValues } from '../types';

tsconfig-dev.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"outDir": "lib",
1616
"rootDir": ".",
1717
"resolveJsonModule": true,
18-
"baseUrl": "."
18+
"baseUrl": ".",
19+
"esModuleInterop": true
1920
}
2021
}

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"outDir": "lib",
1616
"rootDir": "src",
1717
"resolveJsonModule": true,
18-
"baseUrl": "src"
18+
"baseUrl": "src",
19+
"esModuleInterop": true
1920
},
2021
"exclude": ["node_modules", "lib", "examples", "sandbox.ts"]
2122
}

0 commit comments

Comments
 (0)