Skip to content
This repository has been archived by the owner on Nov 8, 2017. It is now read-only.

Difference between source code and archives/npmjs versions #72

Open
thfontaine opened this issue Aug 5, 2016 · 2 comments
Open

Difference between source code and archives/npmjs versions #72

thfontaine opened this issue Aug 5, 2016 · 2 comments

Comments

@thfontaine
Copy link

thfontaine commented Aug 5, 2016

Hey !
I encounter an issue with your (great !) library.
When i install jwerty using npm, it download me a file with :

(function (global, exports) {
...
}(this, ...));

This doesn't work with my project, because the global isn't set to window
But when i'm looking to your source code, i see :

(function (global, exports) {
...
}(typeof global !== 'undefined' && global.window || this, ...));

which works well.
Can you explain me why there is a difference between these two (same ?) files ?
Thank you in advance =)

@keithamus
Copy link
Owner

@thfontaine master has some fixes in it which have yet to be published. It is on my todo list to publish this soon. In the meantime you can use the master version by doing the following in your package.json:

"dependencies": {
  "jwerty": "keithamus/jwerty#master",
}

@thfontaine
Copy link
Author

Ok, thank you for your answer !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants