Skip to content

Commit

Permalink
Scrap broquire in favor of browser field in package.json
Browse files Browse the repository at this point in the history
This gets rid of a dependency while still preventing browserify from including
the Node.js crypto shim that we don't want.

Closes #3
  • Loading branch information
kenany committed Sep 5, 2014
1 parent 1e858a3 commit b10db1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
var broquire = require('broquire')(require);
var window = require('global/window');

var nodeCrypto = broquire('crypto', null);
var nodeCrypto = require('crypto');

function getRandomValues(buf) {
if (window.crypto && window.crypto.getRandomValues) {
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@
"test": "tape test/*.js"
},
"dependencies": {
"broquire": "^0.3.0",
"global": "^4.2.1"
},
"devDependencies": {
"lodash.foreach": "^2.4.1",
"lodash.isfunction": "^2.4.1",
"tape": "^2.14.0"
},
"browser": {
"crypto": false
}
}

0 comments on commit b10db1c

Please sign in to comment.