Skip to content

Commit

Permalink
šŸ› fix: crypto-lib incorrect import (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
rustin01 authored Dec 17, 2024
1 parent fdfb41b commit 19c0a3a
Show file tree
Hide file tree
Showing 7 changed files with 361 additions and 2,260 deletions.
16 changes: 5 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,28 @@
"build:coin-dfinity": "turbo run @delandlabs/coin-dfinity#build",
"build:coin-solana": "turbo run @delandlabs/coin-solana#build",
"build:coin-tron": "turbo run @delandlabs/coin-tron#build",
"build:all": "turbo run build",
"test:all": "turbo run test",
"prepare": "husky install"
},
"workspaces": [
"packages/*"
],
"dependencies": {
"bignumber.js": "^9.1.2",
"crypto-js": "^4.2.0",
"dayjs": "^1.11.10",
"nanoid": "3"
"bignumber.js": "^9.1.2"
},
"devDependencies": {
"@types/crypto-js": "^4.2.2",
"@types/react": "^18.2.75",
"@types/react-dom": "^18.2.24",
"@vitejs/plugin-react-swc": "^3.6.0",
"dotenv": "^16.4.5",
"husky": "^9.0.0",
"lint-staged": "^15.2.2",
"prettier": "^3.2.5",
"punycode": "^1.4.1",
"turbo": "^2.0.9",
"typescript": "^5.4.5",
"vite": "^5.2.8",
"vite": "^6.0.3",
"vite-bundle-analyzer": "^0.10.0",
"vite-plugin-node-polyfills": "^0.22.0",
"vite-plugin-svgr": "^4.2.0",
"vitest": "^2.0.5"
"vitest": "^2.1.8"
},
"version": "1.0.0",
"packageManager": "[email protected]"
Expand Down
5 changes: 0 additions & 5 deletions packages/crypto-lib/jest.config.js

This file was deleted.

5 changes: 1 addition & 4 deletions packages/crypto-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"tsc:esm": "tsc -p tsconfig-esm.json",
"tsc:common": "tsc -p tsconfig.json",
"clean": "rimraf dist tsconfig.tsbuildinfo",
"test": "jest"
"test": "vitest"
},
"files": [
"dist"
Expand All @@ -18,14 +18,11 @@
"@types/bn.js": "^4.11.6",
"@types/create-hash": "1.2.2",
"@types/create-hmac": "1.1.0",
"@types/jest": "^27.5.1",
"@types/node": "^12.20.52",
"@types/randombytes": "2.0.0",
"jest": "^27.5.1",
"npm-run-all": "^4.1.5",
"prettier": "2.6.2",
"rimraf": "^3.0.2",
"ts-jest": "^27.1.4",
"ts-node": "^10.7.0",
"typescript": "^4.6.2"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/crypto-lib/src/bip32/bip32.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { base58check } from "@scure/base"
import {sha256} from "../base/hash";
const bytesCoder = base58check(sha256);

import * as api from './api';
import api from './api';
const typeforce = require('typeforce');
const wif = require('wif');

Expand Down
200 changes: 100 additions & 100 deletions packages/crypto-lib/tests/bip32.txt

Large diffs are not rendered by default.

200 changes: 100 additions & 100 deletions packages/crypto-lib/tests/hash.txt

Large diffs are not rendered by default.

Loading

0 comments on commit 19c0a3a

Please sign in to comment.