New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

normalice

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

normalice - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

index.js

@@ -44,2 +44,4 @@ /**

output.username = input.username;
output.credential = input.credential;
// if we have an authentication part, then set the credentials

@@ -46,0 +48,0 @@ if (parts.length > 1) {

2

package.json
{
"name": "normalice",
"version": "1.0.0",
"version": "1.0.1",
"description": "Normalize an ice server (stun,turn) configuration object or string into a consistent format usable by browsers",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -9,3 +9,4 @@ exports.stun = [

{ url: 'turn:tmp@example.org', credential: 'test' },
{ url: 'turn:tmp@example.org?transport=tcp', credential: 'test' }
{ url: 'turn:tmp@example.org?transport=tcp', credential: 'test' },
{ url: 'turn:example.org?transport=tcp', username: 'tmp', credential: 'test' }
];

@@ -53,1 +53,13 @@ var test = require('tape');

test('normalizing an already normalized turn url object', function (t) {
var serverObjs = require('./data/servers-url');
var server;
t.plan(5);
t.ok(server = normalice(serverObjs.turn[4]));
t.equal(server.url, 'turn:example.org?transport=tcp');
t.deepEqual(server.urls, ['turn:example.org?transport=tcp']);
t.equal(server.username, 'tmp');
t.equal(server.credential, 'test');
});
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