From 7e5287ccff6eca5aaaad6ee1b5a651a5c3fc1c8f Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Mon, 27 Nov 2017 09:26:36 -0800 Subject: [PATCH 1/2] Fix typo --- dist/index.js | 2 +- index.js | 1 + test/index.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 24b1507..e8b3ab2 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2662,7 +2662,7 @@ function namehash (inputName) { } } - return `0x${node}` + return '0x' + node } function normalize(name) { diff --git a/index.js b/index.js index 759433c..939e751 100644 --- a/index.js +++ b/index.js @@ -20,6 +20,7 @@ function namehash (inputName) { } return '0x' + node +} function normalize(name) { return name ? uts46.toUnicode(name, {useStd3ASCII: true, transitional: false}) : name diff --git a/test/index.js b/test/index.js index 3191e91..6d93725 100644 --- a/test/index.js +++ b/test/index.js @@ -1,5 +1,5 @@ const test = require('tape') -const namehash = require('../dist') +const namehash = require('../') // Test results specified in original ENS Proposal: // https://github.com/ethereum/EIPs/issues/137 From c6db987197962785fe809052303a5fedce61328e Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Mon, 27 Nov 2017 09:27:08 -0800 Subject: [PATCH 2/2] Version 2.0.8 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4ec4efd..fdc4045 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eth-ens-namehash", - "version": "2.0.7", + "version": "2.0.8", "description": "A simple module for generating ENS namehashes per spec https://github.com/ethereum/EIPs/issues/137", "main": "index.js", "scripts": {