Created
January 8, 2014 23:58
-
-
Save terinjokes/8327056 to your computer and use it in GitHub Desktop.
dgraph@0.12.0 fails when someone downstream modifies the deps object
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return require('util'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var mdeps = require('dgraph'), | |
insertGlobals = require('insert-module-globals'), | |
JSONStream = require('JSONStream'); | |
mdeps({ | |
id: 'entry.js', | |
package: require(__dirname + '/package.json'), | |
entry: true | |
}, { | |
modules: require('browserify/lib/builtins') | |
}) | |
.pipe(insertGlobals()) // comment this line out | |
.pipe(JSONStream.stringify()) | |
.pipe(process.stdout); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "streamingfailures", | |
"dependencies": { | |
"insert-module-globals": "~2.3.0", | |
"dgraph": "~0.12.0", | |
"browserify": "~3.19.1", | |
"JSONStream": "~0.7.1" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment