Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove mmh3 for now

  • Loading branch information...
commit d0cc9782b9e66183f3e5cd42a1b0739aa158b51a 1 parent 55aa9c9
@temas temas authored
Showing with 7 additions and 5 deletions.
  1. +7 −4 idr.js
  2. +0 −1  package.json
View
11 idr.js
@@ -1,6 +1,6 @@
var url = require("url");
var crypto = require("crypto");
-var mmh = require("murmurhash3");
+//var mmh = require("murmurhash3");
// make sure it's parsed and clean up url-ish bits of the data we don't want
exports.parse = function(idrStr) {
@@ -69,15 +69,18 @@ exports.clone = function(idr) {
}
exports.hash = function(idr) {
- return mmh.murmur128HexSync(exports.toString(exports.parse(idr)));
+ return undefined;//mmh.murmur128HexSync(exports.toString(exports.parse(idr)));
}
exports.baseHash = function(idr) {
- return mmh.murmur128HexSync(exports.toString(exports.base(exports.parse(idr))));
+ return undefined;//mmh.murmur128HexSync(exports.toString(exports.base(exports.parse(idr))));
}
exports.id = function(idr) {
+ /*
var idh = exports.hash(idr);
var idb = mmh.murmur128HexSync(exports.pid(idr));
return idh + '_' + idb.substr(0,9);
-}
+ */
+ return undefined;
+}
View
1  package.json
@@ -5,7 +5,6 @@
"express": "<3.0",
"querystring": "*",
"request": "*",
- "murmurhash3": "*",
"sprintf": "*",
"node-native-zip": "*"
},
Please sign in to comment.
Something went wrong with that request. Please try again.