Skip to content

Commit

Permalink
should work with browserify
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinmetcalf committed Dec 18, 2014
1 parent e8698a3 commit f65bda1
Show file tree
Hide file tree
Showing 3 changed files with 29,974 additions and 3 deletions.
4 changes: 2 additions & 2 deletions create-view.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
'use strict';

var upsert = require('./upsert');
var crypto = require('crypto');
var sha = require('sha.js');
var Promise = require('lie');

function hash(string) {
return crypto.createHash('sha224').update(string).digest('hex');
return new sha.sha224().update(string).digest('hex');
}


Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"dependencies": {
"async-rtree": "^1.1.1",
"geojson-bounding-volume": "^0.2.2",
"lie": "^2.8.0"
"lie": "^2.8.0",
"sha.js": "^2.3.0"
},
"devDependencies": {
"browserify": "^7.0.0",
Expand Down
Loading

0 comments on commit f65bda1

Please sign in to comment.