tronweb
Version:
JavaScript SDK that encapsulates the TRON HTTP API
134 lines (133 loc) • 5.72 kB
JSON
{
"name": "tronweb",
"version": "6.0.2",
"description": "JavaScript SDK that encapsulates the TRON HTTP API",
"main": "./lib/commonjs/index.js",
"module": "./lib/esm/index.js",
"types": "./lib/esm/index.d.ts",
"files": [
"lib",
"dist",
"src"
],
"exports": {
".": {
"import": "./lib/esm/index.js",
"require": "./lib/commonjs/index.js"
},
"./utils": {
"import": "./lib/esm/utils/index.js",
"require": "./lib/commonjs/utils/index.js"
}
},
"keywords": [
"TRON",
"tronweb"
],
"scripts": {
"build:esm": "tsc --project tsconfig.esm.json && echo '{\"type\": \"module\"}' > ./lib/esm/package.json && npm run copy-protocol:esm",
"build:cjs": "tsc --project tsconfig.cjs.json && echo '{\"type\": \"commonjs\"}' > ./lib/commonjs/package.json && npm run copy-protocol:cjs",
"build:types": "tsc --project tsconfig.types.json",
"build:test": "tsc --project tsconfig.test.json && echo '{\"type\": \"commonjs\"}' > ./lib/commonjs/package.json && cp -R ./src/protocol ./lib/commonjs/src/",
"build:dist": "webpack --config webpack.config.js --progress --color",
"build:all": "npm run clean:all && npm run build:esm && npm run build:cjs && npm run build:dist",
"copy-protocol:cjs": "cp -R ./src/protocol ./lib/commonjs/",
"copy-protocol:esm": "cp -R ./src/protocol ./lib/esm/",
"prepare": "husky install && npm run build",
"build": "npm run clean && webpack --config webpack.config.js --progress --color",
"build:dev": "NODE_ENV=development npm run build",
"clean:all": "rimraf dist lib",
"clean": "rimraf dist",
"newaccount": "node scripts/test-node.js && node lib/commonjs/test/helpers/newAccounts 100",
"test": "npm run build:test && npm run-script newaccount && npx mocha 'lib/commonjs/test/**/*.test.js' --timeout 120000",
"test:esm": "npm run-script newaccount && npx mocha 'lib/esm/test/**/*.test.js' --timeout 120000",
"testAbi": "node scripts/test-node.js && node test/helpers/newAccounts 1 && npx mocha 'test/**/abi.test.js' --timeout 120000",
"testTx": "node scripts/test-node.js && node test/helpers/newAccounts 100 && npx mocha 'test/**/transaction.test.js' --timeout 120000",
"test-no-accounts": "node scripts/test-node.js && npx mocha 'test/**/*.test.js'",
"test:browser": "npm run-script newaccount && node scripts/test-browser.js && npx karma start --single-run --browsers ChromeHeadless",
"coverage": "npm run-script test:browser && npm run-script test",
"btest": "npm run build:dev && npm run test",
"format-all": "prettier --write ./src",
"lint": "eslint src",
"lint:fix": "eslint src --fix"
},
"husky": {
"hooks": {
"pre-commit": "node ./scripts/pre-commit.js"
}
},
"dependencies": {
"@babel/runtime": "^7.0.0",
"axios": "^1.8.3",
"bignumber.js": "^9.0.1",
"ethereum-cryptography": "^2.1.3",
"ethers": "^6.13.4",
"eventemitter3": "^3.1.0",
"google-protobuf": "^3.21.4",
"semver": "^5.6.0",
"validator": "^13.7.0"
},
"devDependencies": {
"@babel/core": "^7.21.0",
"@babel/plugin-transform-class-properties": "^7.23.3",
"@babel/plugin-transform-numeric-separator": "^7.23.3",
"@babel/plugin-transform-object-rest-spread": "^7.23.3",
"@babel/plugin-transform-private-methods": "^7.23.3",
"@babel/plugin-transform-private-property-in-object": "^7.23.3",
"@babel/plugin-transform-runtime": "^7.23.3",
"@babel/preset-env": "^7.23.3",
"@babel/preset-typescript": "^7.23.3",
"@types/chai": "^4.3.6",
"@types/estree": "^1.0.1",
"@types/json-schema": "^7.0.12",
"@types/lodash": "^4.14.197",
"@types/mocha": "^10.0.1",
"@types/node": "^20.4.2",
"@types/validator": "^13.7.17",
"@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.61.0",
"babel-loader": "^8.0.2",
"babel-plugin-istanbul": "^6.1.1",
"babel-plugin-source-map-support": "^2.1.3",
"buffer": "^6.0.3",
"chai": "^4.3.7",
"chalk": "^2.4.1",
"eslint": "^8.44.0",
"eslint-config-prettier": "^8.8.0",
"eslint-import-resolver-typescript": "^3.5.5",
"events": "^3.3.0",
"globby": "^13.1.3",
"husky": "^7.0.0",
"istanbul": "^0.4.5",
"json-schema": "^0.4.0",
"jsonwebtoken": "^9.0.0",
"karma": "^6.3.17",
"karma-chrome-launcher": "^2.2.0",
"karma-coverage": "^2.0.3",
"karma-coverage-istanbul-reporter": "^3.0.3",
"karma-edge-launcher": "^0.4.2",
"karma-firefox-launcher": "^1.1.0",
"karma-mocha": "^2.0.1",
"karma-sourcemap-loader": "^0.3.7",
"karma-spec-reporter": "^0.0.32",
"karma-webpack": "^5.0.0",
"mocha": "^10.2.0",
"prettier": "^2.8.8",
"puppeteer": "^22.11.2",
"querystring-es3": "^0.2.1",
"rimraf": "^3.0.2",
"source-map-support": "^0.5.19",
"ts-loader": "^9.4.3",
"typescript": "^5.5.4",
"webpack": "^5.94.0",
"webpack-cli": "^5.0.1",
"webpack-node-externals": "^3.0.0"
},
"author": {
"name": "Tron Protocol",
"url": "https://github.com/tronprotocol"
},
"homepage": "https://tronweb.network",
"license": "MIT",
"repository": "https://github.com/tronprotocol/tronweb.git"
}