Comparing version 0.2.5 to 0.2.6
# PeerServer Changelog | ||
### 0.2.6 | ||
* Ensure 16 character IDs. | ||
### 0.2.5 | ||
@@ -4,0 +8,0 @@ |
@@ -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); | ||
}); | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25586