You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.
It seems it currently does not work in the browser, but if it would, that would be awesome, because I would love to use it.
Other than that - one feature I'd love to use it to prompt a user for a token so that it's possible to actually publish data to npm from the browser (think: in-browser Javascript IDE)
I would also try to implement it myself, but dont know what kind of requests I would need to make or how I can learn about it and on top of that if it's even possible regarding maybe CORS settings.
The text was updated successfully, but these errors were encountered:
cacache can never be used, so opts.cache needs to be ignored in browser mode.
figure out how to get a test suite working on the browser
go through deps-of-deps and make sure nothing is strictly tied to node: I haven't made any such analysis.
I'm concerned that these changes might possibly involve way too many browser-specific changes to be manageable/maintainable. I am totally fine with someone exploring this and using any of the code in pacote/m-f-h/cacache/etc to see if they can build something browser-specific.
But getting pacote working on browsers is not a priority for me in the foreseeable future.
So that leaves you, and I have two suggestions, and it's up to you which one you prefer (or maybe you come up with a better one?):
fork pacote into your own pacote-browser package which tears out everything incompatible with browsers and uses native browser fetch instead of make-fetch-happen (m-f-h mostly matches the fetch API). Maintain the fork separately in your own time.
figure out a (minimal?) patch that will allow a browser-specific (and browser-testable) build of pacote.
Some days ago on twitter https://twitter.com/serapath/status/856908380731916288
Now I just stumbled upon the module.
It seems it currently does not work in the browser, but if it would, that would be awesome, because I would love to use it.
Other than that - one feature I'd love to use it to prompt a user for a token so that it's possible to actually publish data to npm from the browser (think: in-browser Javascript IDE)
I would also try to implement it myself, but dont know what kind of requests I would need to make or how I can learn about it and on top of that if it's even possible regarding maybe CORS settings.
The text was updated successfully, but these errors were encountered: