[Pkg-javascript-commits] [node-sha.js] 168/237: Use inherits module instead of util

Bastien Roucariès rouca at moszumanska.debian.org
Fri May 5 09:03:51 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-sha.js.

commit aef9b82c629f6ebaf346dab15c2a9bd30fb05aa6
Author: Kagami Hiiragi <kagami at genshiken.org>
Date:   Sat Jan 10 15:22:27 2015 +0300

    Use inherits module instead of util
---
 package.json | 4 +++-
 sha1.js      | 2 +-
 sha224.js    | 2 +-
 sha256.js    | 2 +-
 sha384.js    | 2 +-
 sha512.js    | 2 +-
 6 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/package.json b/package.json
index de00d02..778eeb1 100644
--- a/package.json
+++ b/package.json
@@ -7,7 +7,9 @@
     "type": "git",
     "url": "git://github.com/dominictarr/sha.js.git"
   },
-  "dependencies": {},
+  "dependencies": {
+    "inherits": "^2.0.1"
+  },
   "devDependencies": {
     "buffer": "~2.3.2",
     "hash-test-vectors": "^1.3.1",
diff --git a/sha1.js b/sha1.js
index 81339b2..4e947a2 100644
--- a/sha1.js
+++ b/sha1.js
@@ -7,7 +7,7 @@
  * See http://pajhome.org.uk/crypt/md5 for details.
  */
 
-var inherits = require('util').inherits
+var inherits = require('inherits')
 
 var Hash = require('./hash')
 
diff --git a/sha224.js b/sha224.js
index 49ad815..852087c 100644
--- a/sha224.js
+++ b/sha224.js
@@ -7,7 +7,7 @@
  *
  */
 
-var inherits = require('util').inherits
+var inherits = require('inherits')
 var SHA256 = require('./sha256')
 var Hash = require('./hash')
 
diff --git a/sha256.js b/sha256.js
index 57459c0..0b7e800 100644
--- a/sha256.js
+++ b/sha256.js
@@ -7,7 +7,7 @@
  *
  */
 
-var inherits = require('util').inherits
+var inherits = require('inherits')
 
 var Hash = require('./hash')
 
diff --git a/sha384.js b/sha384.js
index bb9f3ad..0b07c99 100644
--- a/sha384.js
+++ b/sha384.js
@@ -1,4 +1,4 @@
-var inherits = require('util').inherits
+var inherits = require('inherits')
 var SHA512 = require('./sha512');
 var Hash = require('./hash')
 
diff --git a/sha512.js b/sha512.js
index 82b33f8..fa55df0 100644
--- a/sha512.js
+++ b/sha512.js
@@ -1,4 +1,4 @@
-var inherits = require('util').inherits
+var inherits = require('inherits')
 
 var Hash = require('./hash')
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-sha.js.git



More information about the Pkg-javascript-commits mailing list