Skip to content

Commit

Permalink
fix more issues
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyapotti committed Aug 10, 2023
1 parent 4181270 commit 732729d
Show file tree
Hide file tree
Showing 7 changed files with 74 additions and 135 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
ignorePatterns: ["*.config.js", ".eslintrc.js"],
parserOptions: {
sourceType: "module",
ecmaVersion: 11,
ecmaVersion: 2022,
project: "./tsconfig.json",
},
};
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ This module is distributed in 4 formats
- `esm` build `dist/torusUtils.esm.js` in es6 format
- `commonjs` build `dist/torusUtils.cjs.js` in es5 format
- `umd` build `dist/torusUtils.umd.min.js` in es5 format without polyfilling corejs minified
- `nodejs` build `dist/torusUtils-node.js` in es5 format

By default, the appropriate format is used for your specified usecase
You can use a different format (if you know what you're doing eg. node) by referencing the correct file
Expand Down
139 changes: 58 additions & 81 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 12 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,22 @@
"@babel/runtime": "7.x"
},
"dependencies": {
"@toruslabs/constants": "^11.0.0",
"@toruslabs/eccrypto": "^3.0.0",
"@toruslabs/http-helpers": "^4.0.0",
"@toruslabs/constants": "^13.0.0",
"@toruslabs/eccrypto": "^4.0.0",
"@toruslabs/http-helpers": "^5.0.0",
"bn.js": "^5.2.1",
"elliptic": "^6.5.4",
"ethereum-cryptography": "^2.0.0",
"ethereum-cryptography": "^2.1.2",
"json-stable-stringify": "^1.0.2",
"loglevel": "^1.8.1"
},
"devDependencies": {
"@babel/register": "^7.22.5",
"@babel/runtime": "^7.22.6",
"@toruslabs/config": "file:../torus-cli/packages/config/toruslabs-config-1.0.0.tgz",
"@toruslabs/eslint-config-typescript": "file:../torus-cli/packages/eslint-config-typescript/toruslabs-eslint-config-typescript-2.0.0.tgz",
"@toruslabs/fetch-node-details": "^11.0.1",
"@toruslabs/torus-scripts": "file:../torus-cli/packages/torus-scripts/toruslabs-torus-scripts-4.0.0.tgz",
"@babel/runtime": "^7.22.10",
"@toruslabs/config": "^2.0.1",
"@toruslabs/eslint-config-typescript": "^3.0.0",
"@toruslabs/fetch-node-details": "^13.0.0",
"@toruslabs/torus-scripts": "^5.0.2",
"@types/chai": "^4.3.5",
"@types/elliptic": "^6.4.14",
"@types/faker": "^5.5.3",
Expand All @@ -49,18 +49,16 @@
"chai": "^4.3.7",
"cross-env": "^7.0.3",
"dotenv": "^16.3.1",
"eslint": "^8.44.0",
"eslint": "^8.46.0",
"faker": "^5.5.3",
"husky": "^8.0.3",
"jsonwebtoken": "^9.0.0",
"jsonwebtoken": "^9.0.1",
"lint-staged": "^13.2.3",
"mocha": "^10.2.0",
"node-fetch": "^3.3.1",
"prettier": "^3.0.1",
"rimraf": "^5.0.1",
"ts-node": "^10.9.1",
"typescript": "^5.1.6",
"webpack-node-externals": "^3.0.0"
"typescript": "^5.1.6"
},
"repository": {
"type": "git",
Expand Down
5 changes: 1 addition & 4 deletions test/setup.mjs
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
import Register from "@babel/register";
import fetch from "node-fetch";
import path from "path";
import { register } from "ts-node";

register({
project: path.resolve(".", "tsconfig.json"),
transpileOnly: true,
compilerOptions: { module: "commonjs" },
compilerOptions: { module: "esnext" },
});

Register({
extensions: [".ts", ".js"],
rootMode: "upward",
});

globalThis.fetch = fetch;
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"extends": "@toruslabs/config/tsconfig.default.json",
"include": ["src", "test"]
"include": ["src", "test"],
"compilerOptions": {}
}
33 changes: 0 additions & 33 deletions webpack.config.js

This file was deleted.

0 comments on commit 732729d

Please sign in to comment.