diff --git a/README.md b/README.md index c061c57..b69c91c 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ $ npm i evmole ``` ```javascript import {functionSelectors} from 'evmole' +// Also supported: const e = require('evmole'); e.functionSelectors(); const code = '0x6080604052600436106025575f3560e01c8063b69ef8a8146029578063d0e30db014604d575b5f80fd5b3480156033575f80fd5b50603b5f5481565b60405190815260200160405180910390f35b60536055565b005b345f8082825460639190606a565b9091555050565b80820180821115608857634e487b7160e01b5f52601160045260245ffd5b9291505056fea2646970667358221220354240f63068d555e9b817619001b0dff6ea630d137edc1a640dae8e3ebb959864736f6c63430008170033' console.log( functionSelectors(code) ) diff --git a/js/package.json b/js/package.json index d4326e1..bf1c1f8 100644 --- a/js/package.json +++ b/js/package.json @@ -1,17 +1,17 @@ { "name": "evmole", - "version": "0.1.0", + "version": "0.1.1", "description": "Extracts function selectors from EVM bytecode", - "main": "dist/index.cjs", + "main": "dist/index.js", "module": "dist/index.esm.js", "types": "dist/index.d.ts", "type": "module", "exports": { "import": "./dist/index.esm.js", - "require": "./dist/index.cjs" + "require": "./dist/index.js" }, "scripts": { - "build-cjs": "npx esbuild ./src/ --bundle --minify --sourcemap --format=cjs --outfile=dist/index.cjs", + "build-cjs": "npx esbuild ./src/ --bundle --minify --sourcemap --format=cjs --outfile=dist/index.js", "build-esm": "npx esbuild ./src/ --bundle --minify --sourcemap --format=esm --outfile=dist/index.esm.js", "build": "rm -rf dist/ && npm run build-cjs && npm run build-esm && cp ./src/index.d.ts dist/", "lint": "npx eslint ./src/", diff --git a/pyproject.toml b/pyproject.toml index f4c649b..57b3cd1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "evmole" -version = "0.1.0" +version = "0.1.1" description = "Extracts function selectors from EVM bytecode" authors = ["Maxim Andreev "] license = "MIT"