No, the twister-lib.js file contains all needed node_modules. the one in the git-repo starts with the bencode package for example: https://raw.githubusercontent.com/Tschaul/twister-lib-js/master/twister-lib.js . Are you trying to use another module loader on top like webpack or systemJS? This second bread of module loaders (AMD-module loaders) was not around at the time i did the setup. I can imagine that they are incompatible.
I setup a test site at
https://twister-proxy.tschaul.com/test.html where there is only
the twister-lib.js files included. If you put e.g.
Twister.getUser("tschaul").doProfile(x=>console.log(x.getAllFields()))
into the console you should get my profile information pulled
down. Maybe you can work your way back from there.
Am I right in understand that "twister-lib.js" is the browserify-d version of src/* ? But doesn't include anything from the node_modules?
--
You received this message because you are subscribed to the Google Groups "twister-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to twister-dev...@googlegroups.com.
To post to this group, send email to twist...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Exception: TypeError: undefined is not a constructor (evaluating 'new global.XMLHttpRequest()')
npm-remote-ls twister-lib-js
npm ll
No, both repos are resting since 3 years.
Greetings