-
-
Notifications
You must be signed in to change notification settings - Fork 322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: updated webrtc implementation #519
Conversation
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: npm/@thaunknown/simple-peer@9.12.1, npm/ip@1.1.9, npm/semantic-release@21.1.2, npm/socks@2.8.3, npm/standard@17.1.0, npm/string2compact@2.0.1, npm/tape@5.7.5, npm/uint8-util@2.2.5, npm/undici@5.28.4, npm/unordered-array-remove@1.0.2, npm/utf-8-validate@5.0.10, npm/webtorrent-fixtures@2.0.2, npm/wrtc@0.4.7, npm/ws@8.17.0 |
🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎ To accept the risk, merge this PR and you will not be notified again.
Next stepsWhat is an install script?Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts. Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead. Take a deeper look at the dependencyTake a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev. Remove the packageIf you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency. Mark a package as acceptable riskTo ignore an alert, reply with a comment starting with
|
d88ba03
to
594307c
Compare
@SocketSecurity ignore npm/node-datachannel@0.7.0 |
e36e91d
to
68c3c05
Compare
🎉 This PR is included in version 11.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
It seems after this change which indirectly depends on npm/node-datachannel@0.7.0, the total dependency size has shot up substantially from this dependency alone (likely due to the new compilation steps)
In previous versions, I think it's a good idea to take note of this. EDIT:
For now, I'm adding this to my Docker image build process after running |
Hmm that's very weird, maybe it's only on OSes that require compilation or some sort (Alpine Linux in this case) Compilation seems to pulls the entire git repository of node-datachannel and that is where the bulk of the remnant files. I did notice there was a prebuilt folder in the node module folder maybe it's using that for Windows and compiles on Linux. |
I think this is something to bring up with node-datachannel, not webtorrent |
Yep do agree, will raise an issue there. |
Hi, Like said above, this PR adds I don't think |
it is used, ws trackers were always supported in node.js, simply webrtc wasn't, now that it is, ws trackers work correctly too |
I meant using the bittorrent-tracker by just importing the From what I can see |
right, but there's no package separation between server and client, anyways this isn't changing, it's staying ndc compiles just fine on alpine so idk what the issue is |
Unfortunately there are other build issues, on FreeBSD this time: Chocobozzz/PeerTube#6502 I'm not sure to understand why your Because the new bittorrent-tracker versions force every consumer to install a native dependency for a very specific use case (use the bittorrent-tracker in client mode, in a node.js ecosystem where webrtc is not available). What do you think of publishing another package that would not rely on |
What is the purpose of this pull request? (put an "X" next to item)
[ ] Documentation update
[ ] Bug fix
[x] New feature
[ ] Other, please explain:
What changes did you make? (Give an overview)
Include WebRTC on node, drop wrtc
Which issue (if any) does this pull request address?
Is there anything you'd like reviewers to focus on?