Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

don't wrap require('stream')

  • Loading branch information...
commit 5080729b3a4df4b2f9866f0734c818d3d8690770 1 parent 253ec10
@substack authored
Showing with 4 additions and 4 deletions.
  1. +3 −3 index.js
  2. +1 −1  package.json
View
6 index.js
@@ -1,6 +1,6 @@
-var Traverse = require('traverse');
+var traverse = require('traverse');
var EventEmitter = require('events').EventEmitter;
-var stream = process.title === 'browser' ? {} : require('stream');
+var stream = require('stream');
var json = typeof JSON === 'object' ? JSON : require('jsonify');
var exports = module.exports = function (wrapper) {
@@ -158,7 +158,7 @@ var Scrubber = exports.Scrubber = function (store) {
var paths = {};
var links = [];
- var args = Traverse(obj).map(function (node) {
+ var args = traverse(obj).map(function (node) {
if (typeof(node) == 'function') {
var i = store.indexOf(node);
if (i >= 0 && !(i in paths)) {
View
2  package.json
@@ -19,5 +19,5 @@
"scripts": {
"test": "tap test/*.js"
},
- "engines": { "node" : ">=0.2.0" }
+ "engines": { "node" : ">=0.4.0" }
}
Please sign in to comment.
Something went wrong with that request. Please try again.