drop ESM requirement

This commit is contained in:
Michele Balistreri 2020-05-08 12:54:42 +03:00
parent c42421b63f
commit 2ca995f033
No known key found for this signature in database
GPG Key ID: E9567DA33A4F791A
3 changed files with 5 additions and 11 deletions

View File

@ -19,7 +19,6 @@
"@types/react-router-dom": "^5.1.5",
"bn.js": "^5.1.1",
"connected-react-router": "^6.7.0",
"esm": "^3.2.25",
"eth-sig-util": "^2.5.3",
"history": "^4.10.1",
"minimist": "^1.2.3",

View File

@ -1,10 +1,10 @@
#!/usr/bin/env node
import Web3 from 'web3';
import parseArgs from 'minimist';
import fs from 'fs';
import { keccak256 } from 'js-sha3';
import BigNumber from 'bignumber.js'
const Web3 = require('web3');
const parseArgs = require('minimist');
const fs = require('fs');
const keccak256 = require('js-sha3').keccak256;
const BigNumber = require('bignumber.js');
const argv = parseArgs(process.argv.slice(2), {boolean: ["nft", "deploy-factory", "deploy-bucket"], string: ["sender", "factory", "bucket", "token"], default: {"endpoint": "ws://127.0.0.1:8546", "start-in-days": 0, "validity-days": 365, "max-tx-delay-blocks": 10, "amount-decimals": 18}});

View File

@ -7028,11 +7028,6 @@ eslint@~3.19.0:
text-table "~0.2.0"
user-home "^2.0.0"
esm@^3.2.25:
version "3.2.25"
resolved "https://registry.yarnpkg.com/esm/-/esm-3.2.25.tgz#342c18c29d56157688ba5ce31f8431fbb795cc10"
integrity sha512-U1suiZ2oDVWv4zPO56S0NcR5QriEahGtdN2OR6FiOG4WJvcjBVFB0qI4+eKoWFH483PKGuLuu6V8Z4T5g63UVA==
espree@^3.4.0:
version "3.5.4"
resolved "https://registry.yarnpkg.com/espree/-/espree-3.5.4.tgz#b0f447187c8a8bed944b815a660bddf5deb5d1a7"