Skip to content

Commit 4fd75cf

Browse files
committed
use inherits instead of util
1 parent 17a4377 commit 4fd75cf

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

create-hash.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var createHash = require('sha.js')
44
var md5 = require('./md5')
55
var rmd160 = require('ripemd160')
66
var Transform = require('stream').Transform;
7-
var inherits = require('util').inherits
7+
var inherits = require('inherits')
88

99
module.exports = function (alg) {
1010
if('md5' === alg) return new HashNoConstructor(md5)

create-hmac.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22
var createHash = require('./create-hash')
33
var Transform = require('stream').Transform;
4-
var inherits = require('util').inherits
4+
var inherits = require('inherits')
55
var zeroBuffer = new Buffer(128)
66
zeroBuffer.fill(0)
77

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"create-ecdh": "1.0.3",
2121
"diffie-hellman": "2.2.3",
2222
"browserify-sign": "2.7.5",
23+
"inherits": "^2.0.1",
2324
"pbkdf2-compat": "2.0.1",
2425
"public-encrypt": "1.1.2",
2526
"ripemd160": "0.2.0",

0 commit comments

Comments
 (0)