Socket
Socket
Sign inDemoInstall

webrtc-signal-http

Package Overview
Dependencies
94
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.1 to 1.2.0

0

index.js

@@ -0,0 +0,0 @@ #!/usr/bin/env node

@@ -0,0 +0,0 @@ const express = require('express')

4

lib/peer-list.js

@@ -64,4 +64,4 @@ const Peer = require('./peer')

return `${e.name},${e.id},${e.status() ? 1 : 0}`
}).join('\n')
}).join('\n') + '\n'
}
}
}

@@ -0,0 +0,0 @@ module.exports = class Peer {

{
"name": "webrtc-signal-http",
"version": "1.1.1",
"version": "1.2.0",
"description": "opinionated webrtc signal provider using http as a protocol",

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

@@ -40,3 +40,3 @@ const assert = require('assert')

.expect('Content-Type', /text\/plain/)
.expect(200, `${expectedPeerName},1,1`, done)
.expect(200, `${expectedPeerName},1,1\n`, done)
})

@@ -53,3 +53,3 @@

.expect('Content-Type', /text\/plain/)
.expect(200, `${expectedPeerName},1,1`)
.expect(200, `${expectedPeerName},1,1\n`)
.then(() => {

@@ -61,3 +61,3 @@ return test

// expectedPeerName has a status 0, because supertest doesn't keep TCP open
.expect(200, `${expectedPeerName2},2,1\n${expectedPeerName},1,0`)
.expect(200, `${expectedPeerName2},2,1\n${expectedPeerName},1,0\n`)
.then(() => { /* on success, empty the chainable promise result */ })

@@ -145,3 +145,3 @@ })

.expect('Pragma', `${firstPeerId}`)
.expect(200, 'secondPeer,2,1\nfirstPeer,1,1')
.expect(200, 'secondPeer,2,1\nfirstPeer,1,1\n')
.then(() => { /* on success, empty the chainable promise result */ }),

@@ -171,3 +171,3 @@

.expect('Pragma', `${firstPeerId}`)
.expect(200, 'firstPeer,1,1')
.expect(200, 'firstPeer,1,1\n')
.then(() => { /* on success, empty the chainable promise result */ }),

@@ -249,7 +249,7 @@

assert.equal(instance.format(), 'test,1,0')
assert.equal(instance.format(), 'test,1,0\n')
instance.addPeer('test2', {obj: true})
assert.equal(instance.format(), 'test2,2,0\ntest,1,0')
assert.equal(instance.format(), 'test2,2,0\ntest,1,0\n')
})

@@ -256,0 +256,0 @@ })

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc