mozilla / node-firefox

node.js modules for interacting with Firefox via the DevTools remote protocol
https://www.npmjs.org/package/firefox
Mozilla Public License 2.0
301 stars 18 forks source link

es6-Promise should be es6-promise #28

Closed aduros closed 9 years ago

aduros commented 9 years ago

Almost all of the node-firefox modules have lines like this:

var Promise = require('es6-Promise').Promise;

This fails on case-sensitive filesystems (Linux). The correct case is es6-promise.

After I made all the replacements, things seem to work surprisingly well on Linux! You might be able to update your support matrix after this change. ;)

(Example: https://github.com/mozilla/node-firefox-find-app/blob/master/index.js#L5)

tofumatt commented 9 years ago

Ah, thanks you! I recall this was caught someplace else but I guess not in every module. Thanks!

-tofumatt On 3 Mar 2015 22:45, "Bruno Garcia" notifications@github.com wrote:

Almost all of the node-firefox modules have lines like this:

var Promise = require('es6-Promise').Promise;

This fails on case-sensitive filesystems (Linux). The correct case is es6-promise.

After I made all the replacements, things seem to work surprisingly well on Linux! You might be able to update your support matrix after this change. ;)

(Example: https://github.com/mozilla/node-firefox-find-app/blob/master/index.js#L5)

— Reply to this email directly or view it on GitHub https://github.com/mozilla/node-firefox/issues/28.

lmorchard commented 9 years ago

This should be fixed. I'm going to try doing some full runs of the module stack on Linux later today / tomorrow, so that will expose any more we've missed.

aduros commented 9 years ago

Thanks for the quick fixes!

It looks like launch-app and uninstall-app still need updating.

lmorchard commented 9 years ago

Doh, premature close then :) Threw in a couple of PRs for those two...

https://github.com/mozilla/node-firefox-launch-app/pull/4 https://github.com/mozilla/node-firefox-uninstall-app/pull/2

tofumatt commented 9 years ago

Merged, so once these are released on npm we should close

tofumatt commented 9 years ago

Just pushed updates to git and npm for all the modules!