Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

peer

Package Overview
Dependencies
Maintainers
2
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

peer - npm Package Compare versions

Comparing version 0.2.5 to 0.2.6

4

changelog.md
# PeerServer Changelog
### 0.2.6
* Ensure 16 character IDs.
### 0.2.5

@@ -4,0 +8,0 @@

2

lib/util.js

@@ -25,3 +25,3 @@

randomId: function () {
return Math.random().toString(36).substr(2);
return (Math.random().toString(36) + '0000000000000000000').substr(2, 16);
},

@@ -28,0 +28,0 @@ prettyError: function (msg) {

{
"name": "peer",
"version": "0.2.5",
"version": "0.2.6",
"description": "PeerJS server component",

@@ -5,0 +5,0 @@ "main": "lib/server.js",

@@ -209,5 +209,5 @@ var PeerServer = require('../').PeerServer;

it('should generate a 16-character ID', function() {
expect(p._generateClientId('anykey').length).to.be.within(15, 16);
expect(p._generateClientId('anykey').length).to.be(16);
});
});
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc