Skip to content

Commit

Permalink
Change cjs javascript extension from .cjs to .js, v0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cdump committed Nov 25, 2023
1 parent c69e660 commit bfafc01
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) )
Expand Down
8 changes: 4 additions & 4 deletions js/package.json
Original file line number Diff line number Diff line change
@@ -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/",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit bfafc01

Please sign in to comment.