Closed scottbrady closed 9 years ago
I've installed it locally, ran the tests and it all passes (after changing the timeout for all of the tests to 5 seconds).
Patch itself looks good, I'd probably write getDeps as the following which is equivalent to Object.values, but it's just style.
return Object.keys(dep.deps).map(function (key) {
return dep.deps[key];
});
Nice work!
I agree we should re-write getDeps to look like Object.values. I'll fix that up after merge though.
@scottbrady: Would you like to be added as a collaborator on this project, to help review and merge pull requests?
Thanks for merging the patch so quickly. I'd be happy to help out with pull requests! Cheers.
I installed 5.0.1 and I'm now getting this error:
TypeError: Object.keys called on non-object
at Function.keys (native)
at objectValues (node_modules/browserify-middleware/lib/dynamic-cache.js:7:17)
at DynamicCache.<anonymous> (node_modules/browserify-middleware/lib/dynamic-cache.js:83:35)
at Object.oncomplete (fs.js:108:15)
I was able to fix the error by adding a type check to the objectValues function:
function objectValues(obj) {
if (typeof obj !== 'object') {
return [];
}
return Object.keys(obj).map(function (key) {
return obj[key];
});
}
Want me to submit another patch or can you take care of it?
Thanks.
done
Thanks @allain!
@ForbesLindesay Given that this has been fixed can you bump the version on npm?
When you bring in contributors, you really mean it. I just pushed to npm successfully.
@scottbrady just saw that I forgot to actually add you as a collaborator. Should be fixed now :)
Please follow these rules:
If you let me know your npm username I'll add you as an owner so you can release new versions :)
@allain Absolutely :+1:. Without help from people like you, these projects would eventually wither and die from lack of my time.
@ForbesLindesay I'm scottbrady on npm https://www.npmjs.com/~scottbrady
Great. I've added you on npm :)
This should fix https://github.com/ForbesLindesay/browserify-middleware/issues/72 and https://github.com/ForbesLindesay/browserify-middleware/issues/68