p2p icon indicating copy to clipboard operation
p2p copied to clipboard

fix: import peerjs correctly (for esinstall to work)

Open joust opened this issue 2 years ago • 2 comments

esinstall fails with the current version of p2p, because it imports Peer as default, whereas the official site doc states otherwise (see https://github.com/peers/peerjs usage). With this fix, esinstall works

joust avatar Aug 18 '23 05:08 joust

Pull Request Test Coverage Report for Build 5899132099

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 69.787%

Totals Coverage Status
Change from base Build 5760693037: 0.0%
Covered Lines: 124
Relevant Lines: 174

💛 - Coveralls

coveralls avatar Aug 18 '23 05:08 coveralls

Thanks for the PR @joust! I wonder if this also depends on the version of Peer JS that is installed 🤔 I know this import style worked previously — although it’s been a long time since I worked on this repo.

I can see in their docs for example that they switched to documenting the default export here: https://github.com/peers/peerjs/commit/d158ea82fa214b54401fd4123e387d1e2796ae4d, but then reverted that commit due to “instability”: https://github.com/peers/peerjs/commit/84e297a719f559ada787a481b2b48a2e7dcb58c7

Were you by any chance able to test that this change didn’t break usage in non-esinstall contexts?

delucis avatar Aug 18 '23 12:08 delucis