[Pkg-javascript-commits] [node-sha.js] 106/237: remove bops

Bastien Roucariès rouca at moszumanska.debian.org
Fri May 5 09:03:44 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 4d9fb4d8fd8332d69b055e9d1dd1ba5aad5ebb8c
Author: Dominic Tarr <dominic.tarr at gmail.com>
Date:   Wed Jan 15 16:20:48 2014 +0700

    remove bops
---
 hash.js      | 2 +-
 package.json | 2 +-
 sha256.js    | 1 -
 3 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/hash.js b/hash.js
index 26315e7..a022df2 100644
--- a/hash.js
+++ b/hash.js
@@ -82,7 +82,7 @@ module.exports = function (Buffer) {
 
     var hash = this._update(this._block) || this._hash()
     if(enc == null) return hash
-    return u.toString(hash, enc)
+    return hash.toString(enc)
   }
 
   Hash.prototype._update = function () {
diff --git a/package.json b/package.json
index 34d76fe..a722b40 100644
--- a/package.json
+++ b/package.json
@@ -8,7 +8,7 @@
     "url": "git://github.com/dominictarr/sha.js.git"
   },
   "dependencies": {
-    "bops": "~0.1.1"
+    "native-buffer-browserify": "~2.0.8"
   },
   "devDependencies": {
     "tape": "~2.3.2"
diff --git a/sha256.js b/sha256.js
index 21d0622..2faf574 100644
--- a/sha256.js
+++ b/sha256.js
@@ -11,7 +11,6 @@ var inherits = require('util').inherits
 var BE       = false
 var LE       = true
 var hexpp    = require('./hexpp')
-var to       = require('bops/typedarray/from')
 var u        = require('./util')
 
 module.exports = function (Buffer, 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