Merge pull request #7 from danfinlay/Transpile

Add ES5 transpilation to build
master
Dan Finlay 7 years ago committed by GitHub
commit 1c59af7686
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -20,3 +20,7 @@ var input = getUserInput()
var normalized = namehash.normalize(input) var normalized = namehash.normalize(input)
``` ```
## Development
This module supports advanced JavaScript syntax, but exports an ES5-compatible module. To re-build the exported module after making changes, run `npm run bundle` (must have [browserify](http://browserify.org/) installed).

4035
dist/index.js vendored

File diff suppressed because one or more lines are too long

@ -1,9 +1,10 @@
{ {
"name": "eth-ens-namehash", "name": "eth-ens-namehash",
"version": "2.0.0", "version": "2.0.1",
"description": "A simple module for generating ENS namehashes per spec https://github.com/ethereum/EIPs/issues/137", "description": "A simple module for generating ENS namehashes per spec https://github.com/ethereum/EIPs/issues/137",
"main": "index.js", "main": "dist/index.js",
"scripts": { "scripts": {
"bundle": "browserify -s EthEnsNamehash -e index.js -o dist/index.js",
"test": "node test" "test": "node test"
}, },
"repository": { "repository": {
@ -21,7 +22,10 @@
}, },
"homepage": "https://github.com/flyswatter/eth-ens-namehash#readme", "homepage": "https://github.com/flyswatter/eth-ens-namehash#readme",
"devDependencies": { "devDependencies": {
"tape": "^4.6.3" "tape": "^4.6.3",
"babel-preset-es2015": "^6.24.1",
"babel-preset-stage-0": "^6.24.1",
"browserify": "^14.0.0"
}, },
"dependencies": { "dependencies": {
"idna-uts46": "^1.0.1", "idna-uts46": "^1.0.1",

@ -1,5 +1,5 @@
const test = require('tape') const test = require('tape')
const namehash = require('../') const namehash = require('../dist')
// Test results specified in original ENS Proposal: // Test results specified in original ENS Proposal:
// https://github.com/ethereum/EIPs/issues/137 // https://github.com/ethereum/EIPs/issues/137

Loading…
Cancel
Save